Skip to content

Commit 62bdc49

Browse files
committed
Run check-audit from npm-audit-resolver in preversion
When preparing a release, make sure that the lock file is valid and does not contain any unreviewed security issues. Signed-off-by: Kevin Locke <[email protected]>
1 parent b1fd4ea commit 62bdc49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
"lint-js": "eslint . && echo ESLint passed.",
3030
"postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md && echo until skywinder/github-changelog-generator#56 is fixed.",
3131
"postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"",
32-
"preversion": "depcheck --ignores eslint-plugin-import,greenkeeper-lockfile --ignore-dirs doc && david -i eslint && git-branch-is master && travis-status -b master -c -wx && appveyor-status -b master -c -w && istanbul check-coverage --statements 95 coverage/coverage.json",
32+
"preversion": "check-audit && depcheck --ignores eslint-plugin-import,greenkeeper-lockfile --ignore-dirs doc && david -i eslint && git-branch-is master && travis-status -b master -c -wx && appveyor-status -b master -c -w && istanbul check-coverage --statements 95 coverage/coverage.json",
3333
"start": "supervisor --quiet --no-restart-on exit --extensions js,json --ignore test --poll-interval 2000 server.js",
3434
"test": "npm run lint && npm run test-unit",
3535
"test-cov": "npm run lint && npm run test-unit-cov",
3636
"test-unit": "mocha --recursive test",
3737
"test-unit-cov": "istanbul cover _mocha -- --recursive test",
3838
"upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info",
3939
"version": "github_changelog_generator -t \"$npm_config_gcg_github_token\" --future-release \"$npm_package_version\" && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && $npm_config_shell && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md",
40-
"version-deps": "npm install david depcheck git-branch-is travis-status"
40+
"version-deps": "npm install david depcheck git-branch-is npm-audit-resolver travis-status"
4141
},
4242
"dependencies": {},
4343
"devDependencies": {

0 commit comments

Comments
 (0)