Skip to content

Commit

Permalink
fix(types): Support dual module type.d in TS >= 4.7
Browse files Browse the repository at this point in the history
Support TypeScript >= 4.7 "node16"/"nodenext" moduleResolution

Fix #2952
Close #2953
  • Loading branch information
josundt authored and netil committed Nov 14, 2022
1 parent d663532 commit 143e491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ Chunmyong Park <[email protected]>
neilnaveen <https://github.com/neilnaveen>
Frank Tackitt <[email protected]>
jongwooo <[email protected]>
Jørn Andre Sundt <[email protected]>
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist-esm/billboard.js",
"require": "./dist/billboard.pkgd.js"
},
"./dist/plugin/*": {
"types": "./types/plugin/*.d.ts",
"import": "./dist-esm/plugin/*.js",
"require": "./dist/plugin/pkgd/*.js"
},
Expand Down

0 comments on commit 143e491

Please sign in to comment.