From b712f895807377dec2f38b821726e46f27444dfe Mon Sep 17 00:00:00 2001 From: Advait Paliwal Date: Tue, 24 Mar 2026 10:56:38 -0700 Subject: [PATCH] Avoid Windows prune in native bundle build --- scripts/build-native-bundle.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-native-bundle.mjs b/scripts/build-native-bundle.mjs index 46099d7..4bc5707 100644 --- a/scripts/build-native-bundle.mjs +++ b/scripts/build-native-bundle.mjs @@ -124,6 +124,9 @@ function copyPackageFiles(appDir) { function installAppDependencies(appDir) { if (existsSync(rootNodeModulesPath)) { cpSync(rootNodeModulesPath, resolve(appDir, "node_modules"), { recursive: true }); + if (process.platform === "win32") { + return; + } run("npm", ["prune", "--omit=dev", "--ignore-scripts", "--no-audit", "--no-fund", "--loglevel", "error"], { cwd: appDir, });