Skip to content

Commit

Permalink
fix(types): maybe fix ts resolutions with typesVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 30, 2022
1 parent 2ecab95 commit c23928b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/schema-org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,28 @@
"import": "./dist/webpack.mjs"
}
},
"typesVersions": {
"*": {
"runtime": [
"dist/runtime-simple/index.d.ts"
],
"runtime-simple": [
"dist/runtime-simple/index.d.ts"
],
"runtime-schema-dts": [
"dist/runtime-schema-dts/index.d.ts"
],
"vite": [
"dist/vite.d.ts"
],
"webpack": [
"dist/webpack.d.ts"
]
}
},
"engines": {
"node": ">=14.0.0"
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
19 changes: 19 additions & 0 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@
"import": "./dist/iles-module.mjs"
}
},
"typesVersions": {
"*": {
"vite": [
"dist/vite.d.ts"
],
"vitesse": [
"dist/vitesse.d.ts"
],
"vitepress": [
"dist/vitepress.d.ts"
],
"iles-app": [
"dist/iles-app.d.ts"
],
"iles-module": [
"dist/iles-module.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit c23928b

Please sign in to comment.