Skip to content

Commit b25fbfe

Browse files
Timerthongdong7
authored andcommitted
Clean target directory before compiling overlay (facebook#3102)
* Clean target directory before compiling overlay * Use rimraf
1 parent 25f6a72 commit b25fbfe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/react-error-overlay/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"prepublishOnly": "npm run build:prod && npm test",
8-
"start": "cross-env NODE_ENV=development npm run build -- --watch",
8+
"start": "rimraf lib/ && cross-env NODE_ENV=development npm run build -- --watch",
99
"test": "flow && jest",
10-
"build": "babel src/ -d lib/",
11-
"build:prod": "cross-env NODE_ENV=production babel src/ -d lib/"
10+
"build": "rimraf lib/ && babel src/ -d lib/",
11+
"build:prod": "rimraf lib/ && cross-env NODE_ENV=production babel src/ -d lib/"
1212
},
1313
"repository": "facebookincubator/create-react-app",
1414
"license": "BSD-3-Clause",
@@ -53,7 +53,8 @@
5353
"eslint-plugin-react": "7.1.0",
5454
"flow-bin": "0.52.0",
5555
"jest": "20.0.4",
56-
"jest-fetch-mock": "1.2.1"
56+
"jest-fetch-mock": "1.2.1",
57+
"rimraf": "^2.6.1"
5758
},
5859
"jest": {
5960
"setupFiles": [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy