From d41bd880ab2ed058dd8acc31ffe568567635f8aa Mon Sep 17 00:00:00 2001 From: Kyle Finley Date: Mon, 14 Sep 2020 11:20:24 -0700 Subject: [PATCH] fix `npx runway ` (npm) not recognized on Windows --- CHANGELOG.md | 1 + npm/postinstall.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c54d5c187..7b937fce2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - fixed a python 3 compatibility issue in `runway.cfngin.blueprints.testutil.YamlDirTestGenerator` - fixed an issue causing static sites to be inaccessible when deployed to regions other than us-east-1 +- fixed an issue where `npx runway ` (installed from npm) would not work on Windows ## [1.12.0] - 2020-09-11 ### Changed diff --git a/npm/postinstall.js b/npm/postinstall.js index 18ad74b7a..e10cf8e05 100755 --- a/npm/postinstall.js +++ b/npm/postinstall.js @@ -94,7 +94,7 @@ fs.mkdir(`${moduleDir}/runway`, { recursive: true }, (err, data) => { } // symlink does not work for windows so we need to use a bat file // this will overwrite the file if it already exists so no fancy error handling needed - fs.writeFile(binPath, `@"${moduleDir}/runway/runway-cli.exe %*"`, (err, data) => { + fs.writeFile(binPath, `@"${moduleDir}/runway/runway-cli.exe" %*`, (err, data) => { if (err) throw err; }) }