Skip to content

Commit b0381b0

Browse files
authored
Merge pull request #131 from CampbellReid/npminstallfailurewindows
Added configuration to fix breaking change for latest node versions on windows cve-2024-27980
2 parents d578829 + 33c85ce commit b0381b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prepare.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const OVERRIDES_DIR = path.join(__dirname, 'overrides');
2929

3030
await spawn(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['ci', '--production'], {
3131
cwd: path.join(OVERRIDES_DIR, 'js'),
32-
stdio: 'inherit'
32+
stdio: 'inherit',
33+
shell: process.platform === 'win32', // Required for .cmd files due to CVE-2024-27980
3334
});
3435

3536
const files: Array<{

0 commit comments

Comments
 (0)