Skip to content

Commit 306df88

Browse files
Merge pull request #100 from One-com/feature/windows-fixes
Windows fixes
2 parents a0fc725 + 10ea132 commit 306df88

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"lib"
99
],
1010
"scripts": {
11-
"compile": "mkdir lib; babel ./src --out-file ./lib/Truncate.js && BABEL_ENV=CommonJS babel ./src --out-file ./lib/Truncate.CommonJS.js",
11+
"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",
1212
"coverage": "nyc npm test && nyc report --reporter=text-lcov",
1313
"lint": "eslint .",
14-
"prepublish": "rm -rf ./lib && npm run compile",
14+
"prepublish": "shx rm -rf ./lib && npm run compile",
1515
"preversion": "npm run test",
1616
"report-coverage": "npm run coverage | coveralls",
17-
"test": "BABEL_ENV=test mocha --require babel-polyfill --require babel-core/register",
17+
"test": "cross-env BABEL_ENV=test mocha --require babel-polyfill --require babel-core/register",
1818
"travis": "npm run lint && npm run compile && npm run test"
1919
},
2020
"repository": {
@@ -47,6 +47,7 @@
4747
"canvas": "^1.6.7",
4848
"common-tags": "^1.4.0",
4949
"coveralls": "^3.0.0",
50+
"cross-env": "^5.2.0",
5051
"eslint": "^4.8.0",
5152
"eslint-config-onelint": "^2.0.0",
5253
"eslint-config-onelint-react": "^2.0.1",
@@ -59,6 +60,7 @@
5960
"react": "^16.0.0",
6061
"react-dom": "^16.0.0",
6162
"react-test-renderer": "^16.0.0",
63+
"shx": "^0.3.2",
6264
"sinon": "^4.0.1",
6365
"unexpected": "^10.36.0",
6466
"unexpected-dom": "^4.0.0",

0 commit comments

Comments
 (0)