Skip to content

Commit 4559253

Browse files
committed
Use rimraf in build's clean step instead of rm -rf (to work cross-platform)
Fix for #14
1 parent 451985c commit 4559253

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

package-lock.json

Lines changed: 10 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"scripts": {
110110
"build": "npm run clean && ./node_modules/.bin/webpack --env=production --colors --display-optimization-bailout --profile --progress && BABEL_ENV=production babel src/server --out-dir dist/server && BABEL_ENV=production babel src/shared/utils/jest.jsx --out-file dist/shared/utils/jest.js && BABEL_ENV=production babel src/client/init.js --out-file dist/client/init.js",
111111
"build:dev": "npm run clean && (./node_modules/.bin/webpack --env=development --bail --colors --display-optimization-bailout --profile --progress --watch | BABEL_ENV=development babel src/server --out-dir dist/server --watch | BABEL_ENV=development babel src/shared/utils/jest.jsx --out-file dist/shared/utils/jest.js --watch | BABEL_ENV=development babel src/client/init.js --out-file dist/client/init.js --watch)",
112-
"clean": "rm -rf dist && mkdir -p dist/shared/utils && mkdir -p dist/client",
112+
"clean": "./node_modules/.bin/rimraf dist && mkdir -p dist/shared/utils && mkdir -p dist/client",
113113
"jest": "NODE_CONFIG_ENV=test jest --no-cache --maxWorkers=4 --config config/jest/default.js",
114114
"lint": "npm run lint:js && npm run lint:scss",
115115
"lint:js": "eslint --ext .js,.jsx .",

0 commit comments

Comments
 (0)