Skip to content

Commit aca90fb

Browse files
Akkumalukeed
andauthored
chore: add "types" conditions for TS "nodenext" resolution (#40)
* fix: TS .d.ts resolution (#1) There are types at '/node_modules/dset/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'dset' library may need to update its package.json or typings.ts(7016) * Update package.json (#2) * Simplified package exports * Updated back to original repo * Update package.json --------- Co-authored-by: Luke Edwards <[email protected]>
1 parent 740b3ae commit aca90fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
"license": "MIT",
1212
"exports": {
1313
".": {
14+
"types": "./index.d.ts",
1415
"import": "./dist/index.mjs",
1516
"require": "./dist/index.js"
1617
},
1718
"./merge": {
19+
"types": "./merge/index.d.ts",
1820
"import": "./merge/index.mjs",
1921
"require": "./merge/index.js"
2022
},

0 commit comments

Comments
 (0)