fix allow native module builds in spec workspace

This commit is contained in:
Alice Zhao
2025-11-23 23:42:42 -08:00
parent ea830139af
commit ffda3be98c

View File

@@ -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,