Skip to content

Commit

Permalink
chore: added typesVersions
Browse files Browse the repository at this point in the history
- This helps `tsc` resolve types when using `module: commonjs` and `moduleResolution: node`.
  • Loading branch information
webdeveric committed Mar 6, 2024
1 parent 178182a commit c10dc7b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"node": ">=18.0.0"
},
"type": "module",
"main": "./dist/mjs/plugin.js",
"types": "./dist/types/plugin.d.ts",
"exports": {
".": {
Expand All @@ -47,6 +46,22 @@
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"helpers": [
"./dist/types/helpers.d.ts"
],
"options-schema": [
"dist/types/options-schema.d.ts"
],
"type-predicate": [
"dist/types/type-predicate.d.ts"
],
"types": [
"dist/types/types.d.ts"
]
}
},
"files": [
"dist"
],
Expand Down

0 comments on commit c10dc7b

Please sign in to comment.