Skip to content

Commit

Permalink
fix: support TS resolution for .mjs
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Regan <alex.regan@alexregan.com>

See here for explanation of problem and solution:

https://stackoverflow.com/questions/72457791/typescript-packages-that-ship-with-mjs-and-d-ts-but-without-d-mts-how-to-i
  • Loading branch information
alexsasharegan committed Sep 23, 2022
1 parent 70a26d3 commit ffa7a19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exports": {
".": {
"require": "./index.js",
"types": "./index.d.ts",
"import": "./index.mjs"
},
"./aws": "./lib/aws/index.js",
Expand Down

0 comments on commit ffa7a19

Please sign in to comment.