Skip to content

Commit

Permalink
Setup cross-env to support environment variables on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav-olsen-groupone committed Sep 11, 2018
1 parent c3ed1e8 commit 10ea132
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"lib"
],
"scripts": {
"compile": "shx mkdir -p lib && babel ./src --out-file ./lib/Truncate.js && BABEL_ENV=CommonJS babel ./src --out-file ./lib/Truncate.CommonJS.js",
"compile": "shx mkdir -p lib && babel ./src --out-file ./lib/Truncate.js && cross-env BABEL_ENV=CommonJS babel ./src --out-file ./lib/Truncate.CommonJS.js",
"coverage": "nyc npm test && nyc report --reporter=text-lcov",
"lint": "eslint .",
"prepublish": "shx rm -rf ./lib && npm run compile",
"preversion": "npm run test",
"report-coverage": "npm run coverage | coveralls",
"test": "BABEL_ENV=test mocha --require babel-polyfill --require babel-core/register",
"test": "cross-env BABEL_ENV=test mocha --require babel-polyfill --require babel-core/register",
"travis": "npm run lint && npm run compile && npm run test"
},
"repository": {
Expand Down Expand Up @@ -47,6 +47,7 @@
"canvas": "^1.6.7",
"common-tags": "^1.4.0",
"coveralls": "^3.0.0",
"cross-env": "^5.2.0",
"eslint": "^4.8.0",
"eslint-config-onelint": "^2.0.0",
"eslint-config-onelint-react": "^2.0.1",
Expand Down

0 comments on commit 10ea132

Please sign in to comment.