From d7ea151d9a22dc369ed97ffee4de206559062cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Tue, 14 Apr 2020 16:57:57 +0200 Subject: [PATCH 1/2] [generator] Use `npx` for consistency All docs and upstream templates always prefix `react-native` invocations with `npx`. --- vnext/local-cli/generator-windows/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnext/local-cli/generator-windows/index.js b/vnext/local-cli/generator-windows/index.js index 722c71f97d0..c2b34815ac1 100644 --- a/vnext/local-cli/generator-windows/index.js +++ b/vnext/local-cli/generator-windows/index.js @@ -128,7 +128,7 @@ function copyProjectTemplateAndReplace( copyAndReplaceAll(path.join(srcPath, 'src'), destPath, path.join(windowsDir, newProjectName), templateVars, options.overwrite); console.log(chalk.white.bold('To run your app on UWP:')); - console.log(chalk.white(' react-native run-windows')); + console.log(chalk.white(' npx react-native run-windows')); } function installDependencies(options) { From 17dd21fc9d2da4fc18987053a2548ef89e78ceb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Tue, 14 Apr 2020 16:58:37 +0200 Subject: [PATCH 2/2] Change files --- ...s-2020-04-14-16-58-37-consistency-in-instructions.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 change/react-native-windows-2020-04-14-16-58-37-consistency-in-instructions.json diff --git a/change/react-native-windows-2020-04-14-16-58-37-consistency-in-instructions.json b/change/react-native-windows-2020-04-14-16-58-37-consistency-in-instructions.json new file mode 100644 index 00000000000..c703b6894e5 --- /dev/null +++ b/change/react-native-windows-2020-04-14-16-58-37-consistency-in-instructions.json @@ -0,0 +1,8 @@ +{ + "type": "prerelease", + "comment": "[generator] Use `npx` for consistency", + "packageName": "react-native-windows", + "email": "eloy.de.enige@gmail.com", + "dependentChangeType": "patch", + "date": "2020-04-14T14:58:37.541Z" +} \ No newline at end of file