Skip to content

Commit 8c2fbac

Browse files
committed
build(package.json): update exports structure and add types definition
1 parent 14ce715 commit 8c2fbac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
"author": "Kévin Dunglas",
1010
"sideEffects": false,
1111
"type": "module",
12-
"exports": "./lib/index.js",
12+
"exports": {
13+
".": {
14+
"types": "./lib/index.d.ts",
15+
"import": "./lib/index.js",
16+
"default": "./lib/index.js"
17+
},
18+
"./package.json": "./package.json"
19+
},
1320
"main": "./lib/index.js",
21+
"types": "./lib/index.d.ts",
1422
"files": [
1523
"*.md",
1624
"lib",

0 commit comments

Comments
 (0)