npm脚本未按系列运行

npm脚本未按系列运行,npm,Npm,我希望将eslint作为启动前脚本运行,因此如果失败,它将不会运行构建脚本,但即使当eslint返回“clean”结果时,它仍然会停止以下脚本的运行。 因此,正如您在下面的示例中所看到的,测试没有运行。 我甚至尝试替换顺序并首先运行测试,但是lint脚本没有运行 有什么想法吗 "scripts": { "prestart": "npm run lint:watch && npm run test:watch", "start": "open:src", "open:src": "

我希望将eslint作为启动前脚本运行,因此如果失败,它将不会运行构建脚本,但即使当eslint返回“clean”结果时,它仍然会停止以下脚本的运行。 因此,正如您在下面的示例中所看到的,测试没有运行。 我甚至尝试替换顺序并首先运行测试,但是lint脚本没有运行

有什么想法吗

"scripts": {
"prestart": "npm run lint:watch && npm run test:watch",
"start": "open:src",
"open:src": "nodemon --watch server --exec babel-node --debug=5858 --inspect server/srcServer.js --delay 2",
"lint": "node_modules/.bin/esw webpack.config.* --cache --max-warnings 0 src server",
"lint:watch": "npm run lint -- --watch",
"test": "mocha --reporter progress server/testSetup.js 'src/**/*.test.js'",
"test:watch": "npm run test -- --watch"
},

现在我知道了哑巴的感觉:)
测试中的“watch”和lint导致它停止,因为它没有退出。
非常感谢我解决了我的问题