Skip to content

Commit 08415b1

Browse files
authored
Add types to exports fields
Add this field to support Typescript with the new Node16 module resolution. https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing
1 parent f706a80 commit 08415b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "./dist/index.js",
66
"exports": {
77
".": {
8+
"types": "./dist/index.d.ts",
89
"require": "./dist/index.js",
910
"import": "./dist/index.mjs"
1011
},

0 commit comments

Comments
 (0)