diff options
Diffstat (limited to 'deps/npm/lib/run-script.js')
-rw-r--r-- | deps/npm/lib/run-script.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/run-script.js b/deps/npm/lib/run-script.js index 4d27e8eed9..568a5712f6 100644 --- a/deps/npm/lib/run-script.js +++ b/deps/npm/lib/run-script.js @@ -1,4 +1,5 @@ const run = require('@npmcli/run-script') +const { isServerPackage } = run const npm = require('./npm.js') const readJson = require('read-package-json-fast') const { resolve } = require('path') @@ -45,7 +46,7 @@ const runScript = async (args) => { pkg.scripts = scripts - if (!scripts[event]) { + if (!scripts[event] && !(event === 'start' && await isServerPackage(path))) { if (npm.config.get('if-present')) return |