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 e9b44d2 commit 7b89576Copy full SHA for 7b89576
lib/run-script.js
@@ -46,7 +46,7 @@ const runScript = async (args) => {
46
47
pkg.scripts = scripts
48
49
- if (!scripts[event] && !(event === 'start' && await isServerPackage(path))) {
+ if (!Object.prototype.hasOwnProperty.call(scripts, event) && !(event === 'start' && await isServerPackage(path))) {
50
if (npm.config.get('if-present'))
51
return
52
0 commit comments