2 echo "Executing yarnConfigHook"
4 # Use a constant HOME directory
7 if [[ -n "$yarnOfflineCache" ]]; then
8 offlineCache
="$yarnOfflineCache"
10 if [[ -z "$offlineCache" ]]; then
11 echo yarnConfigHook
: No yarnOfflineCache or offlineCache were defined\
! >&2
14 yarn config
--offline set yarn-offline-mirror
"$offlineCache"
15 fixup-yarn-lock yarn.lock
27 # TODO: Check if this is really needed
28 patchShebangs node_modules
30 echo "finished yarnConfigHook"
33 if [[ -z "${dontYarnInstallDeps-}" ]]; then
34 postConfigureHooks
+=(yarnConfigHook
)