We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7192553 commit d6e7114Copy full SHA for d6e7114
release.js
@@ -113,7 +113,7 @@ if (!yargs.argv.dryrun) {
113
// Publish to NPM and push to github
114
if (!yargs.argv.dryrun) {
115
const distDir = packageJson.distDir || '.';
116
- if (distDir !== '.' && packageJson.prepublishOnly) {
+ if (distDir !== '.' && packageJson.scripts && packageJson.scripts.prepublishOnly) {
117
_exec('npm run prepublishOnly')
118
}
119
shelljs.pushd(distDir);
0 commit comments