Skip to content

Commit

Permalink
chore: add "types" conditions for TS "nodenext" resolution (#40)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Akkuma and lukeed authored Oct 25, 2023
1 parent 740b3ae commit aca90fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"license": "MIT",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./merge": {
"types": "./merge/index.d.ts",
"import": "./merge/index.mjs",
"require": "./merge/index.js"
},
Expand Down

0 comments on commit aca90fb

Please sign in to comment.