mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
fix allow native module builds in spec workspace
This commit is contained in:
@@ -419,7 +419,7 @@ async function installSpecModules (dir) {
|
|||||||
if (fs.existsSync(path.resolve(dir, 'node_modules'))) {
|
if (fs.existsSync(path.resolve(dir, 'node_modules'))) {
|
||||||
await fs.promises.rm(path.resolve(dir, 'node_modules'), { force: true, recursive: true });
|
await fs.promises.rm(path.resolve(dir, 'node_modules'), { force: true, recursive: true });
|
||||||
}
|
}
|
||||||
const yarnArgs = [YARN_SCRIPT_PATH, 'install', '--immutable'];
|
const yarnArgs = [YARN_SCRIPT_PATH, 'install'];
|
||||||
const { status } = childProcess.spawnSync(process.execPath, yarnArgs, {
|
const { status } = childProcess.spawnSync(process.execPath, yarnArgs, {
|
||||||
env,
|
env,
|
||||||
cwd: dir,
|
cwd: dir,
|
||||||
|
|||||||
Reference in New Issue
Block a user