Skip to content

Commit

Permalink
fix: Use cross-env to enable Windows + non-cygwin environments to build
Browse files Browse the repository at this point in the history
related to issue #86
  • Loading branch information
ssysm authored and tmcw committed Jun 3, 2018
1 parent c452fa2 commit 511bc62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "npm run test-unit && eslint src && npm run prerender -- /dev/null && rm -rf lib",
"test-unit": "mocha --compilers js:babel-register test",
"prerender": "babel src --out-dir lib && node lib/render.js",
"build": "NODE_ENV=production browserify src/index.js | uglifyjs -c -m > bundle.js && npm run prerender -- index.html",
"build": "cross-env NODE_ENV=production browserify src/index.js | uglifyjs -c -m > bundle.js && npm run prerender -- index.html",
"release": "standard-version && git push --follow-tags origin master; npm publish"
},
"browserify": {
Expand Down Expand Up @@ -59,6 +59,7 @@
"devDependencies": {
"babel-register": "^6.3.13",
"budo": "^11.0.0",
"cross-env": "^5.1.6",
"cz-conventional-changelog": "2.1.0",
"expect": "^23.0.1",
"mocha": "^5.0.0",
Expand Down

0 comments on commit 511bc62

Please sign in to comment.