From 951a2e3870f13a960e39384e5e90e8bc73944226 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Mon, 30 Sep 2024 19:58:06 -0400 Subject: [PATCH] fix(expo): pnpm+workspace build --- packages/expo/src/executors/build/build.impl.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/expo/src/executors/build/build.impl.ts b/packages/expo/src/executors/build/build.impl.ts index f93b5914a1f3c..b417de3fcb990 100644 --- a/packages/expo/src/executors/build/build.impl.ts +++ b/packages/expo/src/executors/build/build.impl.ts @@ -114,7 +114,7 @@ function copyPackageJsonAndLock( packageManager: PackageManager, workspaceRoot: string, projectRoot: string -) { +): () => void { const packageJson = pathResolve(workspaceRoot, 'package.json'); const rootPackageJson = readJsonFile(packageJson); // do not copy package.json and lock file if workspaces are enabled @@ -123,7 +123,8 @@ function copyPackageJsonAndLock( existsSync(pathResolve(workspaceRoot, 'pnpm-workspace.yaml'))) || rootPackageJson.workspaces ) { - return; + // no resource taken, no resource cleaned up + return () => {}; } const packageJsonProject = pathResolve(projectRoot, 'package.json');