Skip to content

Commit

Permalink
[Tests] use npm audit instead of nsp
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 28, 2018
1 parent 6145b4e commit 3a93636
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
audit-level=high
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,4 @@ matrix:
- os: osx
- env: TEST=true ALLOW_FAILURE=true
- env: COVERAGE=true
- env: POSTTEST=true
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npm run --silent security",
"posttest": "npm run audit",
"tests-only": "npm run --silent test:native && npm run --silent test:why && npm run --silent test:shimmed && npm run --silent test:corejs",
"test:native": "node test/native",
"test:why": "node test/why",
Expand All @@ -17,7 +17,9 @@
"coverage": "covert test/native test/why",
"coverage-quiet": "covert test/native.js --quiet",
"lint": "eslint *.js test/*.js",
"security": "nsp check"
"preaudit": "npm install --package-lock --package-lock-only",
"audit": "npm audit",
"postaudit": "rm package-lock.json"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 3a93636

Please sign in to comment.