Skip to content

Commit

Permalink
improve audit script
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor committed Sep 7, 2019
1 parent bc0943d commit ec8b7b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/audit-client-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ cd "$(dirname "$0")"
# this could be a separate, reusable check in futue

cd ../packages/client
yarn link
echo "Packing package"
npm pack
mv codechecks-client-*.tgz /tmp/codechecks-client.tgz

echo "Creating dummy client package and reinstalling client"
rm -rf /tmp/codechecks-client-audit
mkdir -p /tmp/codechecks-client-audit
cd /tmp/codechecks-client-audit

yarn init -y
yarn add @codechecks/client
yarn add /tmp/codechecks-client.tgz

echo "Conducting audit..."
yarn audit

0 comments on commit ec8b7b6

Please sign in to comment.