Skip to content

Commit 106bdfc

Browse files
committed
feat: enhance package.json with module type, description, license, homepage, keywords, and export configurations
1 parent 4993b41 commit 106bdfc

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
11
{
22
"name": "htttp-server",
3+
"type": "module",
34
"version": "0.0.0",
5+
"description": "A TypeScript implement of http-server",
46
"author": {
57
"name": "tinywaves",
68
"email": "dhzhme@gmail.com"
79
},
10+
"license": "MIT",
11+
"homepage": "https://github.com/tinywaves/htttp-server",
12+
"keywords": [
13+
"typescript",
14+
"http-server"
15+
],
16+
"exports": {
17+
".": {
18+
"import": "./dist/index.js",
19+
"require": "./dist/index.cjs"
20+
}
21+
},
22+
"main": "./dist/index.js",
23+
"types": "./dist/index.d.ts",
24+
"files": ["dist"],
825
"scripts": {
926
"build": "tsup",
1027
"build:dev": "tsup --watch",
1128
"dev": "tsx watch --clear-screen=false src/index.ts",
12-
"release": "bumpp"
29+
"release": "bumpp",
30+
"release:publish": "pnpm release && pnpm publish"
1331
},
1432
"devDependencies": {
1533
"@dhzh/eslint-config": "^0.15.1",

0 commit comments

Comments
 (0)