Skip to content

Commit 620ee6a

Browse files
authored
chore: bump deps, fix dts generation (vuejs#3856)
1 parent 9b2dd50 commit 620ee6a

9 files changed

+392
-394
lines changed

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,20 @@
104104
"dependencies": {
105105
"@docsearch/css": "^3.6.0",
106106
"@docsearch/js": "^3.6.0",
107-
"@shikijs/core": "^1.3.0",
108-
"@shikijs/transformers": "^1.3.0",
109-
"@types/markdown-it": "^14.0.1",
107+
"@shikijs/core": "^1.4.0",
108+
"@shikijs/transformers": "^1.4.0",
109+
"@types/markdown-it": "^14.1.1",
110110
"@vitejs/plugin-vue": "^5.0.4",
111111
"@vue/devtools-api": "^7.0.27",
112+
"@vue/shared": "^3.4.26",
112113
"@vueuse/core": "^10.9.0",
113114
"@vueuse/integrations": "^10.9.0",
114115
"focus-trap": "^7.5.4",
115116
"mark.js": "8.11.1",
116117
"minisearch": "^6.3.0",
117-
"shiki": "^1.3.0",
118-
"vite": "^5.2.10",
119-
"vue": "^3.4.25"
118+
"shiki": "^1.4.0",
119+
"vite": "^5.2.11",
120+
"vue": "^3.4.26"
120121
},
121122
"devDependencies": {
122123
"@clack/prompts": "^0.7.0",
@@ -141,13 +142,12 @@
141142
"@types/mark.js": "^8.11.12",
142143
"@types/markdown-it-attrs": "^4.1.3",
143144
"@types/markdown-it-container": "^2.0.10",
144-
"@types/markdown-it-emoji": "^2.0.5",
145+
"@types/markdown-it-emoji": "^3.0.1",
145146
"@types/micromatch": "^4.0.7",
146147
"@types/minimist": "^1.2.5",
147-
"@types/node": "^20.12.7",
148+
"@types/node": "^20.12.8",
148149
"@types/postcss-prefix-selector": "^1.16.3",
149150
"@types/prompts": "^2.4.9",
150-
"@vue/shared": "^3.4.25",
151151
"chokidar": "^3.6.0",
152152
"conventional-changelog-cli": "^4.1.0",
153153
"cross-spawn": "^7.0.3",
@@ -161,7 +161,7 @@
161161
"gray-matter": "^4.0.3",
162162
"lint-staged": "^15.2.2",
163163
"lodash.template": "^4.5.0",
164-
"lru-cache": "^10.2.1",
164+
"lru-cache": "^10.2.2",
165165
"markdown-it": "^14.1.0",
166166
"markdown-it-anchor": "^8.6.7",
167167
"markdown-it-attrs": "^4.1.6",
@@ -184,7 +184,7 @@
184184
"prompts": "^2.4.2",
185185
"punycode": "^2.3.1",
186186
"rimraf": "^5.0.5",
187-
"rollup": "^4.17.0",
187+
"rollup": "^4.17.2",
188188
"rollup-plugin-dts": "^6.1.0",
189189
"rollup-plugin-esbuild": "^6.1.1",
190190
"semver": "^7.6.0",
@@ -194,8 +194,8 @@
194194
"sort-package-json": "^2.10.0",
195195
"supports-color": "^9.4.0",
196196
"typescript": "^5.4.5",
197-
"vitest": "^1.5.2",
198-
"vue-tsc": "^2.0.14",
197+
"vitest": "^1.5.3",
198+
"vue-tsc": "2.0.14",
199199
"wait-on": "^7.2.0"
200200
},
201201
"peerDependencies": {
@@ -223,8 +223,8 @@
223223
"ora>string-width": "^5"
224224
},
225225
"patchedDependencies": {
226-
"@types/markdown-it@14.0.1": "patches/@types__markdown-it@14.0.1.patch",
227-
226+
"markdown-it[email protected]": "patches/markdown-it[email protected].patch",
227+
228228
}
229229
}
230230
}

patches/@[email protected]

-13
This file was deleted.

patches/[email protected]

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/rollup-plugin-dts.mjs b/dist/rollup-plugin-dts.mjs
2+
index 4a9412285c48c37d03340a086c771f8e61fd82ac..c73cba3bf47550f69011366e37d2ae974f0c9fc0 100644
3+
--- a/dist/rollup-plugin-dts.mjs
4+
+++ b/dist/rollup-plugin-dts.mjs
5+
@@ -675,6 +675,8 @@ function preProcess({ sourceFile }) {
6+
const nextToken = children[idx + 1];
7+
const isPunctuation = nextToken.kind >= ts.SyntaxKind.FirstPunctuation && nextToken.kind <= ts.SyntaxKind.LastPunctuation;
8+
if (isPunctuation) {
9+
+ const addSpace = code.slice(token.getEnd(), nextToken.getStart()) != " ";
10+
+ code.appendLeft(nextToken.getStart(), `${addSpace ? " " : ""}${defaultExport}`);
11+
code.appendLeft(nextToken.getStart(), defaultExport);
12+
}
13+
else {

0 commit comments

Comments
 (0)