mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 07:30:04 +03:00
yarnConfigHook: apply as a postConfigure hook (#338093)
This commit is contained in:
commit
c03c988aac
@ -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