Skip to content

Commit 3415278

Browse files
Add typescript support for "exports" (porsager#439)
Allows typescript to properly resolve the types for this package when using the new Node.js’ ECMAScript Module Support https://www.typescriptlang.org/tsconfig#moduleResolution
1 parent 3e47f0a commit 3415278

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"module": "src/index.js",
77
"main": "cjs/src/index.js",
88
"exports": {
9+
"types": "./types/index.d.ts",
910
"import": "./src/index.js",
1011
"default": "./cjs/src/index.js"
1112
},

0 commit comments

Comments
 (0)