Skip to content

Commit bfef3f9

Browse files
committed
[Tests] run aud
1 parent 0f99ce0 commit bfef3f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ before_script:
1515
script:
1616
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
1717
- 'if [ -n "${TEST-}" ]; then npm run unit-test ; fi'
18+
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
1819
- 'if [ -n "${README-}" ]; then npm run generate-list-of-rules:check ; fi'
1920
env:
2021
global:
@@ -31,6 +32,8 @@ matrix:
3132
include:
3233
- node_js: 'lts/*'
3334
env: PRETEST=true
35+
- node_js: 'lts/*'
36+
env: POSTTEST=true
3437
- node_js: 'lts/*'
3538
env: README=true
3639
exclude:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"postlint": "npm run type-check",
1111
"pretest": "npm run lint",
1212
"test": "npm run unit-test",
13+
"posttest": "aud --production",
1314
"type-check": "tsc",
1415
"unit-test": "istanbul cover node_modules/mocha/bin/_mocha tests/lib/**/*.js tests/util/**/*.js tests/index.js",
1516
"generate-list-of-rules": "md-magic --path README.md",
@@ -45,6 +46,7 @@
4546
"@types/estree": "0.0.45",
4647
"@types/node": "^14.11.2",
4748
"@typescript-eslint/parser": "^2.34.0",
49+
"aud": "^1.1.2",
4850
"babel-eslint": "^8.2.6",
4951
"coveralls": "^3.1.0",
5052
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",

0 commit comments

Comments
 (0)