yarn-berry.yarnBerryConfigHook: Add patchShebangs and separate rebuild step

This commit is contained in:
Yureka
2025-04-26 12:14:16 +02:00
committed by Yureka
parent 79a1c6ff35
commit 42bb244ece
@@ -75,7 +75,14 @@ yarnBerryConfigHook() {
export npm_config_nodedir="@nodeSrc@"
export npm_config_node_gyp="@nodeGyp@"
YARN_IGNORE_PATH=1 @yarn_offline@ install --inline-builds
YARN_IGNORE_PATH=1 @yarn_offline@ install --mode=skip-build
if [[ -z "${dontYarnBerryPatchShebangs-}" ]]; then
echo "Running patchShebangs in between the Link and the Build step..."
patchShebangs node_modules
fi
if ! [[ "$YARN_ENABLE_SCRIPTS" == "0" || "$YARN_ENABLE_SCRIPTS" == "false" ]]; then
YARN_IGNORE_PATH=1 @yarn_offline@ install --inline-builds
fi
echo "finished yarnBerryConfigHook"
}