Skip to content

Commit 8bac4d4

Browse files
dsonetsatya164
authored andcommitted
fix: can't run yarn command under Windows
1 parent 981448d commit 8bac4d4

File tree

1 file changed

+5
-0
lines changed
  • packages/create-react-native-library/templates/common/scripts

1 file changed

+5
-0
lines changed

packages/create-react-native-library/templates/common/scripts/bootstrap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const os = require('os');
12
const path = require('path');
23
const child_process = require('child_process');
34

@@ -10,6 +11,10 @@ const options = {
1011
encoding: 'utf-8',
1112
};
1213

14+
if (os.type() === 'Windows_NT') {
15+
options.shell = true
16+
}
17+
1318
let result;
1419

1520
if (process.cwd() !== root || args.length) {

0 commit comments

Comments
 (0)