Skip to content

Commit 9eb65f0

Browse files
chrisfitkinjaredpalmer
authored andcommitted
fix: Escape inline start script for PowerShell (#171)
Single quotes inside the NPM start script throws the following error when running "npm start" from Windows PowerShell: ``` Error: Cannot find module ''babel-register'' ``` (note the duplicated single quotes) Replacing the single quotes with escaped double quotes allows starting the application from PowerShell.
1 parent fcd505a commit 9eb65f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "cross-env NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register --recursive",
77
"test:watch": "npm test -- --watch",
88
"coverage": "nyc npm test",
9-
"start": "cross-env NODE_ENV=development node -r 'babel-register' ./server",
9+
"start": "cross-env NODE_ENV=development node -r \"babel-register\" ./server",
1010
"start:prod": "cross-env NODE_ENV=production node ./build/server.js",
1111
"heroku-postbuild": "npm run build",
1212
"build": "webpack -p --config ./tools/webpack.client.prod.js && webpack -p --config ./tools/webpack.server.prod.js",

0 commit comments

Comments
 (0)