Skip to content

Commit

Permalink
Clean target directory before compiling overlay (facebook#3102)
Browse files Browse the repository at this point in the history
* Clean target directory before compiling overlay

* Use rimraf
  • Loading branch information
Timer authored and thongdong7 committed Sep 24, 2017
1 parent 25f6a72 commit b25fbfe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react-error-overlay/package.json
Expand Up @@ -5,10 +5,10 @@
"main": "lib/index.js",
"scripts": {
"prepublishOnly": "npm run build:prod && npm test",
"start": "cross-env NODE_ENV=development npm run build -- --watch",
"start": "rimraf lib/ && cross-env NODE_ENV=development npm run build -- --watch",
"test": "flow && jest",
"build": "babel src/ -d lib/",
"build:prod": "cross-env NODE_ENV=production babel src/ -d lib/"
"build": "rimraf lib/ && babel src/ -d lib/",
"build:prod": "rimraf lib/ && cross-env NODE_ENV=production babel src/ -d lib/"
},
"repository": "facebookincubator/create-react-app",
"license": "BSD-3-Clause",
Expand Down Expand Up @@ -53,7 +53,8 @@
"eslint-plugin-react": "7.1.0",
"flow-bin": "0.52.0",
"jest": "20.0.4",
"jest-fetch-mock": "1.2.1"
"jest-fetch-mock": "1.2.1",
"rimraf": "^2.6.1"
},
"jest": {
"setupFiles": [
Expand Down

0 comments on commit b25fbfe

Please sign in to comment.