Skip to content

Commit 180c7b5

Browse files
author
Lucas Bento
committed
Run with shell: true on Windows
1 parent 4f16b34 commit 180c7b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/rn-update-deprecated-modules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ if (!commandExists.sync('jscodeshift')) {
77
return console.log('Please run `yarn global add jscodeshift` first.');
88
}
99

10+
const isPlatformWindows = process.platform === 'win32';
11+
1012
execFileSync('jscodeshift', ['-t', __dirname + '/../src/codemod.js', ...process.argv.slice(2)], {
1113
stdio: [process.stdin, process.stdout, process.stderr],
14+
shell: isPlatformWindows,
1215
});
1316

1417
require('../src/showPackagesToInstall');

0 commit comments

Comments
 (0)