Skip to content

Commit

Permalink
fix(babel): reset babel-loader cache to prevent preval returning stal…
Browse files Browse the repository at this point in the history
  • Loading branch information
topheman committed Sep 27, 2018
1 parent 068091a commit e4f5069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"route-parser": "0.0.5"
},
"scripts": {
"prestart": "npm run clear:babel-cache",
"start": "react-app-rewired --require ./bin/expand-metadatas.js start",
"prebuild": "npm run clear:babel-cache",
"build": "react-app-rewired --require ./bin/expand-metadatas.js build && cp build/index.html build/200.html",
"test": "npm-run-all --parallel --silent test:unit test:cypress",
"test:travis": "npm-run-all --parallel --silent test:unit test:cypress:travis",
Expand All @@ -56,6 +58,7 @@
"test:precommit": "npm run test:unit",
"eject": "react-scripts eject",
"lint": "npx eslint .",
"clear:babel-cache": "rimraf -rf ./node_modules/.cache/babel-loader/*",
"generate-changelog": "./bin/generate-changelog.js",
"pretty": "npx prettier --write '**/*.{js,jsx,json,css,scss}'",
"serve": "npx serve --no-clipboard --single --listen 5000 build"
Expand Down Expand Up @@ -86,6 +89,7 @@
"preval.macro": "^3.0.0",
"react-app-rewired": "^1.6.2",
"react-testing-library": "^5.1.0",
"rimraf": "^2.6.2",
"serve": "^10.0.2",
"start-server-and-test": "^1.7.1"
},
Expand Down

0 comments on commit e4f5069

Please sign in to comment.