Skip to content

Commit

Permalink
[global-cli] Bump version to 0.1.9
Browse files Browse the repository at this point in the history
To release a new version with the fix for Windows:
#5171

Thanks a lot @tdzl2003!

Tweaked the platform check to use `process.platform`
as that's more common in the codebase. No strong preference,
just for consistency.
  • Loading branch information
Martin Konicek committed Jan 7, 2016
1 parent 749f32b commit 811079e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-native-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function run(root, projectName, logLevel) {
spawnArgs = {stdio: 'inherit'};
}
var proc;
if (os.platform() === 'win32'){
if (/^win/.test(process.platform)) {
args.unshift('npm');
args.unshift('/c');
proc = spawn('cmd', args, spawnArgs);
Expand Down
2 changes: 1 addition & 1 deletion react-native-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-cli",
"version": "0.1.8",
"version": "0.1.9",
"license" : "BSD-3-Clause",
"description": "The React Native CLI tools",
"main": "index.js",
Expand Down

0 comments on commit 811079e

Please sign in to comment.