Skip to content

Commit

Permalink
Add typeVersions for type definitions fixes #462 (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevenleone authored Jun 30, 2022
1 parent e6bed57 commit 3b48da6
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,31 @@
"type": "module",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"typesVersions": {
"*": {
".": [
"./build/index.d.ts"
],
"globals": [
"./build/globals.d.ts"
],
"experimental": [
"./build/experimental.d.ts"
],
"cli": [
"./build/cli.d.ts"
],
"core": [
"./build/core.d.ts"
]
}
},
"exports": {
".": {
"types": "./build/index.d.ts",
"import": "./build/index.js"
},
"./globals": {
"types": "./build/globals.d.ts",
"import": "./build/globals.js"
},
"./experimental": {
"types": "./build/experimental.d.ts",
"import": "./build/experimental.js"
},
"./cli": {
"types": "./build/cli.d.ts",
"import": "./build/cli.js"
},
"./core": {
"types": "./build/core.d.ts",
"import": "./build/core.js"
},
".": "./build/index.js",
"./globals": "./build/globals.js",
"./experimental": "./build/experimental.js",
"./cli": "./build/cli.js",
"./core": "./build/core.js",
"./package.json": "./package.json"
},
"bin": {
Expand Down

0 comments on commit 3b48da6

Please sign in to comment.