Skip to content

Commit 150c1fe

Browse files
committed
build: update types exports
1 parent ead082c commit 150c1fe

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@
66
"license": "MIT",
77
"sideEffects": false,
88
"type": "module",
9-
"bin": {
10-
"giget": "./dist/cli.mjs"
11-
},
129
"exports": {
1310
".": {
14-
"import": "./dist/index.mjs",
15-
"types": "./dist/index.d.ts",
16-
"require": "./dist/index.cjs"
11+
"import": {
12+
"types": "./dist/index.d.mts",
13+
"default": "./dist/index.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/index.d.cts",
17+
"require": "./dist/index.cjs"
18+
}
1719
}
1820
},
1921
"main": "./dist/index.cjs",
2022
"module": "./dist/index.mjs",
2123
"types": "./dist/index.d.ts",
24+
"bin": {
25+
"giget": "./dist/cli.mjs"
26+
},
2227
"files": [
2328
"dist"
2429
],
@@ -56,4 +61,4 @@
5661
"vitest": "^1.1.0"
5762
},
5863
"packageManager": "pnpm@8.12.1"
59-
}
64+
}

0 commit comments

Comments
 (0)