Avoid Windows prune in native bundle build

This commit is contained in:
Advait Paliwal
2026-03-24 10:56:38 -07:00
parent 31d71f3bdf
commit b712f89580

View File

@@ -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,
});