The action as it is currently set up, is not suitable for a mono-repo where the dependency lock file exists at the top-level of the repo and the target directory where the contracts live is nested because of
|
pushd "$TARGET" >/dev/null |
|
|
|
# JS dependencies |
|
if [[ -f package-lock.json ]]; then |
|
echo "[-] Installing dependencies from package-lock.json" |
|
npm ci |
|
elif [[ -f yarn.lock ]]; then |
|
echo "[-] Installing dependencies from yarn.lock" |
|
npm install -g yarn |
|
yarn install --frozen-lockfile |
|
elif [[ -f package.json ]]; then |
|
echo "[-] Did not detect a package-lock.json or yarn.lock in $TARGET, consider locking your dependencies!" |
|
echo "[-] Proceeding with 'npm i' to install dependencies" |
|
npm i |
.
The action as it is currently set up, is not suitable for a mono-repo where the dependency lock file exists at the top-level of the repo and the target directory where the contracts live is nested because of
slither-action/entrypoint.sh
Lines 113 to 126 in 68ad243