storj/scripts/check-package-lock.sh
Egon Elbre 5f39f20766 web/: add check for change to eslint import
Change-Id: Idf94c8e0c92d34e840db549e9e704eb3373762ac
2021-12-21 15:59:23 +00:00

16 lines
343 B
Bash
Executable File

#!/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