Skip to content

Commit 302d152

Browse files
committed
fix: Move "nsp check" to npm "test"
"npm postinstall" is executed not only, when this module is built, but on every installation in other modules.
1 parent 40329db commit 302d152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"node": ">= 4"
2727
},
2828
"scripts": {
29-
"postinstall": "test `node --version | cut -c 2` -ne 4 && nsp check || echo 'No vulnerabilities check possible on Node.js 4'",
30-
"test": "grunt",
29+
"security": "test `node --version | cut -c 2` -ne 4 && nsp check || echo 'No vulnerabilities check possible on Node.js 4'",
30+
"test": "npm run security && grunt",
3131
"coverage": "grunt instrument && GRUNT_HTML_DOM_SNAPSHOT_COVERAGE=1 grunt",
3232
"coveralls": "test `node --version | cut -c 2` -eq 8 && npm run coverage && grunt coveralls",
3333
"semantic-release": "semantic-release"

0 commit comments

Comments
 (0)