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
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user