storj/scripts/check-package-lock.sh

16 lines
343 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ueo pipefail
set +x
exitcode=0
for component in "satellite" "storagenode" "multinode"
do
if grep -q "eslint-plugin-storj@github:storj/eslint-storj" "./web/$component/package-lock.json"; then
echo "$component/package-lock.json import for eslint-storj should not be changed."
exitcode=-1
fi
done
exit $exitcode