From 9a88ea8906328103e28af62be3dfaeccf9bff39e Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Fri, 1 Nov 2024 14:50:47 -0400 Subject: [PATCH] fix(expo): allow yarn 4 to install for build local (#28603) ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes https://github.com/nrwl/nx/issues/28121 --- packages/expo/src/executors/build/build.impl.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/expo/src/executors/build/build.impl.ts b/packages/expo/src/executors/build/build.impl.ts index 314969873d232..d20cbd2f25339 100644 --- a/packages/expo/src/executors/build/build.impl.ts +++ b/packages/expo/src/executors/build/build.impl.ts @@ -59,7 +59,10 @@ function runCliBuild( ['build', ...createBuildOptions(options)], { cwd: pathResolve(workspaceRoot, projectRoot), - env: process.env, + env: { + ...(options.local ? { YARN_ENABLE_IMMUTABLE_INSTALLS: 'false' } : {}), + ...process.env, + }, } );