diff --git a/package-lock.json b/package-lock.json index 6605c76f..fefdd2c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "release-it": "^14.12.5", + "rimraf": "^3.0.2", "rollup": "^2.70.1", "rollup-plugin-livereload": "^2.0.5", "rollup-plugin-postcss": "^4.0.2", diff --git a/package.json b/package.json index caa50b9e..7505c2f0 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "url": "https://github.com/wbkd/react-flow.git" }, "scripts": { - "build": "rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist", + "build": "rimraf dist && rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist", "start": "rollup -w -c", "start:examples": "cd example && npm start", "build:examples": "cd example && npm run build", @@ -69,6 +69,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "release-it": "^14.12.5", + "rimraf": "^3.0.2", "rollup": "^2.70.1", "rollup-plugin-livereload": "^2.0.5", "rollup-plugin-postcss": "^4.0.2",