Skip to content

Commit

Permalink
Let bundle be generated by rollup as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Jan 16, 2025
1 parent 1819c61 commit f40ca51
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 920 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@
"@biomejs/biome": "^1.7.3",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"axios": "^0.29.0",
"browserify": "^17.0.0",
"chokidar-cli": "^3.0.0",
"exorcist": "^2.0.0",
"into-stream": "^6.0.0",
"jasmine": "^5.1.0",
"jasmine-ajax": "^4.0.0",
Expand Down Expand Up @@ -97,7 +94,7 @@
"scripts": {
"clean": "rm -rf dist lib.cjs lib.esm",
"build-test-bundle": "mkdir -p dist && rollup test/spec/browser-index.js --format iife --sourcemap --plugin node-resolve --plugin commonjs --file dist/browser-test-bundle.js",
"build-bundle": "mkdir -p dist && browserify lib.cjs/browser/index.js -s tus -d | exorcist ./dist/tus.js.map > dist/tus.js",
"build-bundle": "mkdir -p dist && rollup lib.esm/browser/index.js --format umd --name tus --plugin node-resolve --plugin commonjs --file ./dist/tus.js --sourcemap --sourcemapFile ./dist/tus.js.map",
"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": "tsc --project tsconfig-esm.json && echo '{\"type\":\"module\"}' > lib.esm/package.json",
"build-transpile-cjs": "tsc --project tsconfig-cjs.json && echo '{\"type\":\"commonjs\"}' > lib.cjs/package.json",
Expand Down
Loading

0 comments on commit f40ca51

Please sign in to comment.