Skip to content

Commit 1d25adc

Browse files
committed
add export and detail
1 parent d793776 commit 1d25adc

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

package.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
11
{
22
"name": "elysia-http-exception",
3-
"version": "1.0.0",
3+
"description": "Elysia plugin for handling HTTP 4xx and 5xx errors with structured exception classes and automatic error responses",
4+
"version": "0.1.0",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/codev911/elysia-http-exception"
8+
},
9+
"keywords": [
10+
"elysia",
11+
"http",
12+
"exception",
13+
"plugin"
14+
],
15+
"license": "MIT",
416
"type": "module",
517
"main": "./dist/index.js",
6-
"types": "./dist/index.d.ts",
718
"exports": {
8-
".": {
9-
"import": "./dist/index.js",
10-
"types": "./dist/index.d.ts"
11-
}
19+
"require": "./dist/index.js",
20+
"import": "./dist/index.js",
21+
"node": "./dist/index.js",
22+
"default": "./dist/index.js"
1223
},
24+
"types": "./dist/index.d.ts",
1325
"files": [
1426
"dist"
1527
],
1628
"scripts": {
1729
"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"
30+
"format": "prettier --write '**/*.ts' --ignore-path .gitignore"
2031
},
2132
"devDependencies": {
2233
"@types/bun": "latest",

0 commit comments

Comments
 (0)