Avoid Windows prune in native bundle build
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user