Skip to content

Commit c3ed1e8

Browse files
Add shx to make unix shell commands work on windows
1 parent a0fc725 commit c3ed1e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
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 && 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",
1717
"test": "BABEL_ENV=test mocha --require babel-polyfill --require babel-core/register",
@@ -59,6 +59,7 @@
5959
"react": "^16.0.0",
6060
"react-dom": "^16.0.0",
6161
"react-test-renderer": "^16.0.0",
62+
"shx": "^0.3.2",
6263
"sinon": "^4.0.1",
6364
"unexpected": "^10.36.0",
6465
"unexpected-dom": "^4.0.0",

0 commit comments

Comments
 (0)