Skip to content

Commit

Permalink
fix(types): updates package.json for type resolution (#55)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tbhesswebber authored Nov 18, 2023
1 parent 3671a51 commit 7679e01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"description": "A micro-package to convert style objects to css strings. Inspired by extensive usage of styled-components.",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/main.d.ts"
"types": "./dist/index.d.ts"
},
"./parsers": {
"require": "./dist/parsers/index.cjs",
Expand Down

0 comments on commit 7679e01

Please sign in to comment.