@radhya/mach 1.4.17 → 1.4.19
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -295,7 +295,9 @@ if [ -f "$HOME/.bashrc" ]; then source "$HOME/.bashrc"; fi
|
|
|
295
295
|
set -e
|
|
296
296
|
|
|
297
297
|
# 3. Node version switch (must happen before any npm/node usage)
|
|
298
|
+
set +e
|
|
298
299
|
{{NODE_VERSION_SETUP}}
|
|
300
|
+
set -e
|
|
299
301
|
|
|
300
302
|
# 4. Forward environment variables (includes PRESIGNED_* URLs + project secrets)
|
|
301
303
|
{{ENV_VARS}}
|
|
@@ -374,13 +376,13 @@ fi
|
|
|
374
376
|
echo "[NODE] Active: $(node -v) | $(which node)"
|
|
375
377
|
if [ -f "yarn.lock" ]; then
|
|
376
378
|
echo "Running yarn install..."
|
|
377
|
-
yarn install --
|
|
379
|
+
yarn install --prefer-offline || exit 1
|
|
378
380
|
elif [ -f "package-lock.json" ]; then
|
|
379
381
|
echo "Running npm install..."
|
|
380
|
-
npm install --
|
|
382
|
+
npm install --prefer-offline || exit 1
|
|
381
383
|
else
|
|
382
384
|
echo "No lockfile detected. Trying yarn then npm..."
|
|
383
|
-
yarn install
|
|
385
|
+
yarn install || npm install || exit 1
|
|
384
386
|
fi
|
|
385
387
|
|
|
386
388
|
# Save node_modules cache via presigned URL
|