diff --git a/lib/run-script.js b/lib/run-script.js index 568a5712f6ac7..c095e6decd403 100644 --- a/lib/run-script.js +++ b/lib/run-script.js @@ -46,7 +46,7 @@ const runScript = async (args) => { pkg.scripts = scripts - if (!scripts[event] && !(event === 'start' && await isServerPackage(path))) { + if (!Object.prototype.hasOwnProperty.call(scripts, event) && !(event === 'start' && await isServerPackage(path))) { if (npm.config.get('if-present')) return