From bdc8e159e80a347846806022dcdec6dae1c62190 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Tue, 20 Feb 2018 16:30:40 +0000 Subject: [PATCH] feat(package): Move nsp check from prepare step to an optional script. * prepare will now output a message telling the user how to run nsp. fixes #77 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 24543549..3bc04dd2 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "tape test/*.js | tap-spec", "lint": "eslint test/*.js app.js bin/*", - "prepare": "nsp check", + "prepare": "echo 'To confirm CVE compliance, run \"npm run security-check\"' ", + "security-check": "nsp check", "coverage": "nyc npm test", "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls", "ci": "npm run lint && npm run coveralls",