Skip to content

Commit d793776

Browse files
committed
add build for distribute
1 parent 854fff4 commit d793776

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
{
22
"name": "elysia-http-exception",
3+
"version": "1.0.0",
34
"type": "module",
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"import": "./dist/index.js",
10+
"types": "./dist/index.d.ts"
11+
}
12+
},
13+
"files": [
14+
"dist"
15+
],
416
"scripts": {
5-
"format": "prettier --write '**/*.ts' --ignore-path .gitignore"
17+
"build": "rm -rf dist && bun build src/index.ts --outdir ./dist --target bun --minify --external elysia && tsc",
18+
"format": "prettier --write '**/*.ts' --ignore-path .gitignore",
19+
"prepublishOnly": "bun run build"
620
},
721
"devDependencies": {
822
"@types/bun": "latest",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"moduleResolution": "bundler",
99
"allowImportingTsExtensions": true,
1010
"verbatimModuleSyntax": true,
11-
"noEmit": true,
11+
"noEmit": false,
1212
"strict": true,
1313
"skipLibCheck": true,
1414
"noFallthroughCasesInSwitch": true,

0 commit comments

Comments
 (0)