Skip to content

Commit 216e8c4

Browse files
Adding a clean script
1 parent 246c87e commit 216e8c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
],
1919
"main": "index.js",
2020
"scripts": {
21-
"build": "webpack -p; babel src --out-dir dist -s; cp ./types/* README.md LICENSE package.json dist; cd dist && npm install --only=production && cd -",
22-
"pub": "npm run build && npm publish dist"
21+
"clean": "rm -rf ./dist",
22+
"build": "webpack -p && babel src --out-dir dist -s && cp ./types/* README.md LICENSE package.json dist && cd dist && npm install --only=production && cd -",
23+
"pub": "npm run clean && npm run build && npm publish dist"
2324
},
2425
"author": "Google",
2526
"repository": {

0 commit comments

Comments
 (0)