Skip to content

Commit a139f08

Browse files
committed
chore(security): Enables nsp checks
- Adds nsp devDependency - Execute nsp check in postcover script
1 parent f2e5f81 commit a139f08

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"less-loader": "^2.0.0",
5050
"mocha": "^2.3.4",
5151
"mocha-lcov-reporter": "^1.0.0",
52+
"nsp": "^2.6.1",
5253
"raw-loader": "~0.5.0",
5354
"react": "^15.2.1",
5455
"react-dom": "^15.2.1",
@@ -85,9 +86,10 @@
8586
"travis": "npm run cover -- --report lcovonly",
8687
"appveyor": "mocha --harmony --full-trace",
8788
"lint": "eslint lib bin hot",
89+
"nsp": "nsp check --output summary",
8890
"beautify-lint": "beautify-lint lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
8991
"beautify": "beautify-rewrite lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
90-
"postcover": "npm run lint && npm run beautify-lint",
92+
"postcover": "npm run lint && npm run beautify-lint && npm run nsp",
9193
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
9294
"publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish"
9395
}

0 commit comments

Comments
 (0)