Skip to content

Commit 5d4b95b

Browse files
committed
[Tests] use npx aud instead of nsp or npm audit with hoops
1 parent d82b801 commit 5d4b95b

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
package-lock=false
2-
audit-level=high

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,3 @@ matrix:
274274
- os: osx
275275
- env: TEST=true ALLOW_FAILURE=true
276276
- env: COVERAGE=true
277-
- env: POSTTEST=true

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,11 @@
3535
"scripts": {
3636
"pretest": "npm run --silent lint",
3737
"test": "npm run --silent tests-only",
38-
"posttest": "npm run --silent audit",
38+
"posttest": "npx aud",
3939
"tests-only": "node test/index.js",
4040
"coverage": "covert test/*.js",
4141
"coverage-quiet": "covert test/*.js --quiet",
42-
"lint": "eslint .",
43-
"preaudit": "npm install --package-lock --package-lock-only",
44-
"audit": "npm audit",
45-
"postaudit": "rm package-lock.json"
42+
"lint": "eslint ."
4643
},
4744
"repository": {
4845
"type": "git",

0 commit comments

Comments
 (0)