From 811079ede2dd32bca4b5891ea42c27dbdb488da0 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Thu, 7 Jan 2016 17:03:45 +0000 Subject: [PATCH] [global-cli] Bump version to 0.1.9 To release a new version with the fix for Windows: https://github.com/facebook/react-native/pull/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. --- react-native-cli/index.js | 2 +- react-native-cli/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index 306191bcc..83d0a6bc9 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -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); diff --git a/react-native-cli/package.json b/react-native-cli/package.json index 7b76d4e79..3195fc426 100644 --- a/react-native-cli/package.json +++ b/react-native-cli/package.json @@ -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",