Skip to content

Commit cbca0e2

Browse files
committed
Fix windows build
1 parent 4fd202c commit cbca0e2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tools/gutenberg/build-gutenberg.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function exec( command, args, options = {} ) {
3737
const child = spawn( command, args, {
3838
cwd: options.cwd || rootDir,
3939
stdio: [ 'ignore', 'pipe', 'pipe' ],
40+
shell: process.platform === 'win32', // Use shell on Windows to find .cmd files
4041
...options,
4142
} );
4243

tools/gutenberg/checkout-gutenberg.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function exec( command, args, options = {} ) {
4444
const child = spawn( command, args, {
4545
cwd: options.cwd || rootDir,
4646
stdio: [ 'ignore', 'pipe', 'pipe' ],
47+
shell: process.platform === 'win32', // Use shell on Windows to find .cmd files
4748
...options,
4849
} );
4950

@@ -93,6 +94,7 @@ function execOutput( command, args, options = {} ) {
9394
return new Promise( ( resolve, reject ) => {
9495
const child = spawn( command, args, {
9596
cwd: options.cwd || rootDir,
97+
shell: process.platform === 'win32', // Use shell on Windows to find .cmd files
9698
...options,
9799
} );
98100

0 commit comments

Comments
 (0)