Skip to content

Commit

Permalink
chore: add "types" conditions for typescript "nodenext" resolver (luk…
Browse files Browse the repository at this point in the history
…eed#20)

* Specify type definitions for tsc node12 imports

* Re-order exports keys to keep "types" first.
  • Loading branch information
willstott101 authored Jul 11, 2022
1 parent 9aa7318 commit f99ec70
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 @@ -29,10 +29,12 @@
],
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./lite": {
"types": "./index.d.ts",
"import": "./lite/index.mjs",
"require": "./lite/index.js"
},
Expand Down

0 comments on commit f99ec70

Please sign in to comment.