Skip to content

Commit 7679e01

Browse files
authored
fix(types): updates package.json for type resolution (#55)
The `types` field was missing and `exports["."].types` fields pointed to the legacy filename still. This PR updates both to point at the proper file in the distributed files.
1 parent 3671a51 commit 7679e01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
"description": "A micro-package to convert style objects to css strings. Inspired by extensive usage of styled-components.",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.ts",
78
"exports": {
89
".": {
910
"require": "./dist/index.cjs",
1011
"import": "./dist/index.mjs",
11-
"types": "./dist/main.d.ts"
12+
"types": "./dist/index.d.ts"
1213
},
1314
"./parsers": {
1415
"require": "./dist/parsers/index.cjs",

0 commit comments

Comments
 (0)