diff options
Diffstat (limited to '.circleci/scripts/npm-audit')
-rwxr-xr-x | .circleci/scripts/npm-audit | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.circleci/scripts/npm-audit b/.circleci/scripts/npm-audit new file mode 100755 index 000000000..00a6876ff --- /dev/null +++ b/.circleci/scripts/npm-audit @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +set -u +set -o pipefail + +if ! npm audit +then + ! npm audit --json > audit.json + printf '%s\n' '' + node .circleci/scripts/npm-audit-check.js +fi |