Skip to content

Commit

Permalink
Fix build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed May 17, 2024
1 parent 4620b9c commit 3407b9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"build-test-bundle": "mkdir -p dist && browserify test/spec/browser-index.cjs -d -o dist/browser-test-bundle.js",
"build-bundle": "mkdir -p dist && browserify lib.es5/browser/index.js -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": "tsc --project tsconfig-esm.json && echo '{\"type\":\"commonjs\"}' > lib.es5/package.json",
"build-transpile-cjs": "tsc --project tsconfig-cjs.json && echo '{\"type\":\"module\"}' > lib.esm/package.json",
"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.es5/package.json",
"build-transpile": "npm-run-all build-transpile-esm build-transpile-cjs",
"build": "npm-run-all build-transpile build-bundle build-minify build-test-bundle",
"watch-bundle": "chokidar --initial \"lib/**/*\" -c \"npm run build-bundle\"",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"module": "commonjs",
"moduleResolution": null,
// TODO: Rename to lib.cjs
"outDir": "lib.es5"
"outDir": "lib.es5/"
}
}

0 comments on commit 3407b9b

Please sign in to comment.