File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6363 "url-parse" : " ^1.5.7"
6464 },
6565 "scripts" : {
66+ "clean" : " rm -rf dist lib.es5 lib.esm" ,
6667 "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" ,
6768 "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" ,
6869 "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'\" " ,
6970 "build-transpile-esm" : " babel -d lib.esm/ lib/" ,
7071 "build-transpile-cjs" : " babel --no-babelrc --plugins @babel/transform-modules-commonjs -d lib.es5/ lib.esm/" ,
7172 "build-transpile" : " npm-run-all build-transpile-esm build-transpile-cjs" ,
72- "build" : " npm-run-all build-bundle build-minify build-transpile build-test-bundle" ,
73+ "build" : " npm-run-all clean build-bundle build-minify build-transpile build-test-bundle" ,
7374 "watch-bundle" : " chokidar --initial \" lib/**/*\" -c \" npm run build-bundle\" " ,
7475 "watch-test-bundle" : " chokidar --initial \" test/spec/**/*\" -c \" npm run build-test-bundle\" " ,
7576 "watch-transpile" : " chokidar --initial \" lib/**/*\" -c \" npm run build-transpile\" " ,
You can’t perform that action at this time.
0 commit comments