Skip to content

Commit

Permalink
Ensure build output is cleaned before building
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Jan 16, 2025
1 parent 783deaf commit f20f84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@
"url-parse": "^1.5.7"
},
"scripts": {
"clean": "rm -rf dist lib.es5 lib.esm",
"build-test-bundle": "mkdir -p dist && browserify test/spec/browser-index.js -t [ babelify --plugins [ @babel/transform-modules-commonjs ] ] -d -o dist/browser-test-bundle.js",
"build-bundle": "mkdir -p dist && browserify lib/browser/index.js -t [ babelify --plugins [ @babel/transform-modules-commonjs ] ] -s tus -d | exorcist ./dist/tus.js.map > dist/tus.js",
"build-minify": "uglifyjs ./dist/tus.js -o ./dist/tus.min.js --compress --mangle --source-map \"content='./dist/tus.js.map',url='tus.min.js.map'\"",
"build-transpile-esm": "babel -d lib.esm/ lib/",
"build-transpile-cjs": "babel --no-babelrc --plugins @babel/transform-modules-commonjs -d lib.es5/ lib.esm/",
"build-transpile": "npm-run-all build-transpile-esm build-transpile-cjs",
"build": "npm-run-all build-bundle build-minify build-transpile build-test-bundle",
"build": "npm-run-all clean build-bundle build-minify build-transpile build-test-bundle",
"watch-bundle": "chokidar --initial \"lib/**/*\" -c \"npm run build-bundle\"",
"watch-test-bundle": "chokidar --initial \"test/spec/**/*\" -c \"npm run build-test-bundle\"",
"watch-transpile": "chokidar --initial \"lib/**/*\" -c \"npm run build-transpile\"",
Expand Down

0 comments on commit f20f84e

Please sign in to comment.