diff --git a/package.json b/package.json index 01a271bc8..e2affee15 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,13 @@ "scripts": { "postinstall": "./bin/cli plugins reconcile --skip-remote", "generate-introspection": "WEBPACK=TRUE NODE_ENV=test ./scripts/generateIntrospectionResult.js", - "watch": "npm-run-all generate-introspection --parallel watch:*", + "clean": "rm -rf dist client/coral-framework/graphql/introspection.json", + "watch": "npm-run-all clean generate-introspection --parallel watch:*", "watch:client": "NODE_ENV=development webpack --progress --watch", "watch:server": "nodemon --config .nodemon.json", "start:development": "NODE_ENV=development ./bin/cli -c .env serve -j -w", "start:production": "NODE_ENV=production ./bin/cli serve -j -w", + "prebuild": "npm-run-all clean generate-introspection", "build": "NODE_ENV=production webpack -p --bail", "lint:yaml": "yamllint locales/*.yml", "lint:js": "eslint --ext=.js --ext=.json bin/* .",