Unverified Commit 278e1bfb authored by seth's avatar seth
Browse files

yarnConfigHook: apply as a postConfigure hook

This follows in this example of npmConfigHook and allows for using this
hook alongside others that may override configurePhase
parent da55d2e2
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