Skip to content

Commit 73582e4

Browse files
authored
chore(volar): add types to volar subpackage exports (#722)
1 parent 969ae2c commit 73582e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@
8383
"require": "./dist/data-loaders/pinia-colada.cjs"
8484
},
8585
"./volar/sfc-route-blocks": {
86-
"require": "./dist/volar/sfc-route-blocks.cjs"
86+
"types": "./dist/volar/sfc-route-blocks.d.cts",
87+
"default": "./dist/volar/sfc-route-blocks.cjs"
8788
},
8889
"./volar/sfc-typed-router": {
89-
"require": "./dist/volar/sfc-typed-router.cjs"
90+
"types": "./dist/volar/sfc-typed-router.d.cts",
91+
"default": "./dist/volar/sfc-typed-router.cjs"
9092
},
9193
"./client": {
9294
"types": "./client.d.ts"
@@ -103,6 +105,12 @@
103105
"data-loaders/pinia-colada": [
104106
"./dist/data-loaders/pinia-colada.d.ts"
105107
],
108+
"volar/sfc-route-blocks": [
109+
"./dist/volar/sfc-route-blocks.d.cts"
110+
],
111+
"volar/sfc-typed-router": [
112+
"./dist/volar/sfc-typed-router.d.cts"
113+
],
106114
"*": [
107115
"./dist/*",
108116
"./*"

0 commit comments

Comments
 (0)