Unverified Commit c03c988a authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

yarnConfigHook: apply as a postConfigure hook (#338093)

parents 0e22d5e9 278e1bfb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
yarnConfigHook(){
    runHook preConfigure
    echo "Executing yarnConfigHook"

    # Use a constant HOME directory
@@ -29,9 +28,8 @@ yarnConfigHook(){
    patchShebangs node_modules

    echo "finished yarnConfigHook"
    runHook postConfigure
}

if [[ -z "${dontYarnInstallDeps-}" && -z "${configurePhase-}" ]]; then
    configurePhase=yarnConfigHook
if [[ -z "${dontYarnInstallDeps-}" ]]; then
    postConfigureHooks+=(yarnConfigHook)
fi