Avoid Windows prune in native bundle build
This commit is contained in:
@@ -124,6 +124,9 @@ function copyPackageFiles(appDir) {
|
|||||||
function installAppDependencies(appDir) {
|
function installAppDependencies(appDir) {
|
||||||
if (existsSync(rootNodeModulesPath)) {
|
if (existsSync(rootNodeModulesPath)) {
|
||||||
cpSync(rootNodeModulesPath, resolve(appDir, "node_modules"), { recursive: true });
|
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"], {
|
run("npm", ["prune", "--omit=dev", "--ignore-scripts", "--no-audit", "--no-fund", "--loglevel", "error"], {
|
||||||
cwd: appDir,
|
cwd: appDir,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user