Skip to content

Commit

Permalink
fix: Escape inline start script for PowerShell (#171)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisfitkin authored and jaredpalmer committed Dec 7, 2016
1 parent fcd505a commit 9eb65f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "cross-env NODE_ENV=test ./node_modules/mocha/bin/mocha --compilers js:babel-core/register --recursive",
"test:watch": "npm test -- --watch",
"coverage": "nyc npm test",
"start": "cross-env NODE_ENV=development node -r 'babel-register' ./server",
"start": "cross-env NODE_ENV=development node -r \"babel-register\" ./server",
"start:prod": "cross-env NODE_ENV=production node ./build/server.js",
"heroku-postbuild": "npm run build",
"build": "webpack -p --config ./tools/webpack.client.prod.js && webpack -p --config ./tools/webpack.server.prod.js",
Expand Down

0 comments on commit 9eb65f0

Please sign in to comment.