isaacscript 3.4.11 → 3.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,15 +33,18 @@ if test -d "$NODE_MODULES"; then
|
|
|
33
33
|
echo "Successfully deleted: $NODE_MODULES"
|
|
34
34
|
fi
|
|
35
35
|
|
|
36
|
-
if [[
|
|
36
|
+
if [[ -z "$NPM_LOCK_EXISTS" && -z "$YARN_LOCK_EXISTS" && -z "$PNPM_LOCK_EXISTS" ]]; then
|
|
37
|
+
echo "No package manager lock files were found. You should manually invoke the package manager that you want to use for this project. e.g. \"npm install\""
|
|
38
|
+
exit 1
|
|
39
|
+
elif [[ ! -z "$NPM_LOCK_EXISTS" && -z "$YARN_LOCK_EXISTS" && -z "$PNPM_LOCK_EXISTS" ]]; then
|
|
37
40
|
npm install
|
|
38
41
|
elif [[ -z "$NPM_LOCK_EXISTS" && ! -z "$YARN_LOCK_EXISTS" && -z "$PNPM_LOCK_EXISTS" ]]; then
|
|
39
42
|
yarn install
|
|
40
43
|
elif [[ -z "$NPM_LOCK_EXISTS" && -z "$YARN_LOCK_EXISTS" && ! -z "$PNPM_LOCK_EXISTS" ]]; then
|
|
41
44
|
pnpm install
|
|
42
|
-
|
|
43
|
-
echo "Error: Multiple different kinds of package manager lock files were found. You should manually invoke the package manager that you want to use for this project."
|
|
45
|
+
else
|
|
46
|
+
echo "Error: Multiple different kinds of package manager lock files were found. You should manually invoke the package manager that you want to use for this project. e.g. \"npm install\""
|
|
44
47
|
exit 1
|
|
45
|
-
|
|
48
|
+
fi
|
|
46
49
|
|
|
47
50
|
echo "Successfully reinstalled Node dependencies."
|