@radhya/mach 1.4.17 → 1.4.18
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.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -374,13 +374,13 @@ fi
|
|
|
374
374
|
echo "[NODE] Active: $(node -v) | $(which node)"
|
|
375
375
|
if [ -f "yarn.lock" ]; then
|
|
376
376
|
echo "Running yarn install..."
|
|
377
|
-
yarn install --
|
|
377
|
+
yarn install --prefer-offline || exit 1
|
|
378
378
|
elif [ -f "package-lock.json" ]; then
|
|
379
379
|
echo "Running npm install..."
|
|
380
|
-
npm install --
|
|
380
|
+
npm install --prefer-offline || exit 1
|
|
381
381
|
else
|
|
382
382
|
echo "No lockfile detected. Trying yarn then npm..."
|
|
383
|
-
yarn install
|
|
383
|
+
yarn install || npm install || exit 1
|
|
384
384
|
fi
|
|
385
385
|
|
|
386
386
|
# Save node_modules cache via presigned URL
|