Skip to content

Commit

Permalink
fix: minified build does not work with elysia v1.1.3 (#34)
Browse files Browse the repository at this point in the history
* build non-minified code with license

* add preview script
  • Loading branch information
cybercoder-naj authored Jul 20, 2024
1 parent 6586e59 commit 88128b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
"module": "src/index.ts",
"type": "module",
"scripts": {
"build": "rimraf dist && bun build src/index.ts --outdir dist --target bun --minify -e elysia && tsc",
"build": "rimraf dist && bun build src/index.ts --outdir dist --target bun -e elysia && tsc",
"test": "bun test",
"prepublishOnly": "bun run build"
"preview": "bun run --cwd preview dev",
"prepublishOnly": "bun run build && { echo '/*'; cat LICENSE; echo '*/'; cat dist/index.js; } > /tmp/index.js && mv /tmp/index.js dist/index.js"
},
"peerDependencies": {
"typescript": "^5.0.0",
Expand Down

0 comments on commit 88128b9

Please sign in to comment.