Skip to content

Commit

Permalink
[Tests] switch from nsp to npm audit
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 19, 2018
1 parent ddf3670 commit b7239be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -1 +1,2 @@
package-lock=false
audit-level=high
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -260,3 +260,4 @@ matrix:
- os: osx
- env: TEST=true ALLOW_FAILURE=true
- env: COVERAGE=true
- env: POSTTEST=true
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -9,12 +9,14 @@
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "node --harmony --es-staging test.js",
"posttest": "npm run security",
"posttest": "npm run audit",
"coverage": "covert test.js",
"coverage-quiet": "covert test.js --quiet",
"lint": "eslint test.js *.js",
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
"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 b7239be

Please sign in to comment.