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:
parent
da55d2e252
commit
278e1bfb89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user