Skip to content

Commit f3682a8

Browse files
committed
build(package.json): update exports structure and add types definition
1 parent 05a037f commit f3682a8

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

package.json

Lines changed: 10 additions & 3 deletions
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",
@@ -29,8 +37,7 @@
2937
"inflection": "^3.0.0",
3038
"jsonld": "^8.3.2",
3139
"jsonref": "^9.0.0",
32-
"lodash.get": "^4.4.0",
33-
"tslib": "^2.0.0"
40+
"lodash.get": "^4.4.0"
3441
},
3542
"devDependencies": {
3643
"@eslint/compat": "^1.2.5",

pnpm-lock.yaml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)