Skip to content

Commit 1bd842a

Browse files
committed
fix: cleanup dist folder before build
1 parent 4b85c45 commit 1bd842a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": "standard-changelog && git add CHANGELOG.md",
1717
"postversion": "git push && git push --tags && npm publish",
1818
"pretest": "npm run lint",
19-
"prepare": "babel src -d dist",
19+
"prepare": "del dist && babel src -d dist",
2020
"nodejs-test": "tape -r @babel/register \"spec/**/*.spec.js\" | tap-dot",
2121
"coverage": "nyc --reporter=lcov tape -r @babel/register \"spec/**/*.spec.js\" | tap-dot",
2222
"browser-test": "browserify -t babelify spec/all-browser-spec.js | tape-run | tap-dot",
@@ -57,6 +57,7 @@
5757
"babel-eslint": "^10.0.1",
5858
"babelify": "^10.0.0",
5959
"browserify": "^16.2.3",
60+
"del-cli": "^1.1.0",
6061
"eslint": "^5.9.0",
6162
"nyc": "^13.1.0",
6263
"standard-changelog": "^2.0.6",

0 commit comments

Comments
 (0)