Skip to content

Commit 33c85ce

Browse files
CampbellReidpimterry
authored andcommitted
Added npm prepare configuration to fix windows breakage in latest node
1 parent d578829 commit 33c85ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prepare.ts

+2-1
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)