Skip to content

Commit 06f28e0

Browse files
calebebylukeed
andauthoredJun 26, 2022
chore: add "types" export conditions (#57)
* Add types to export map * Put types first in exports map * oops extra comma * chore: keep `"types"` key Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
1 parent 598f24c commit 06f28e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
"license": "MIT",
1010
"exports": {
1111
".": {
12+
"types": "./index.d.ts",
1213
"import": "./index.mjs",
1314
"require": "./index.js"
1415
},
1516
"./colors": {
17+
"types": "./colors.d.ts",
1618
"import": "./colors.mjs",
1719
"require": "./colors.js"
1820
}

0 commit comments

Comments
 (0)
Please sign in to comment.