Skip to content

Commit 88128b9

Browse files
fix: minified build does not work with elysia v1.1.3 (#34)
* build non-minified code with license * add preview script
1 parent 6586e59 commit 88128b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"module": "src/index.ts",
2525
"type": "module",
2626
"scripts": {
27-
"build": "rimraf dist && bun build src/index.ts --outdir dist --target bun --minify -e elysia && tsc",
27+
"build": "rimraf dist && bun build src/index.ts --outdir dist --target bun -e elysia && tsc",
2828
"test": "bun test",
29-
"prepublishOnly": "bun run build"
29+
"preview": "bun run --cwd preview dev",
30+
"prepublishOnly": "bun run build && { echo '/*'; cat LICENSE; echo '*/'; cat dist/index.js; } > /tmp/index.js && mv /tmp/index.js dist/index.js"
3031
},
3132
"peerDependencies": {
3233
"typescript": "^5.0.0",

0 commit comments

Comments
 (0)