mirror of https://github.com/vuejs/vitepress
chore: bump deps, fix dts generation (#3856)
parent
9b2dd504fa
commit
620ee6ac4b
@ -1,13 +0,0 @@
|
||||
diff --git a/package.json b/package.json
|
||||
index 3b3cdfc4427a1a64fdd3b37604a7174e4646e423..afaea16b115554fcf15a905642562e881ece7ca6 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -27,7 +27,7 @@
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
- "types": "index.d.ts",
|
||||
+ "types": "index.d.mts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./index.d.mts",
|
@ -0,0 +1,13 @@
|
||||
diff --git a/dist/rollup-plugin-dts.mjs b/dist/rollup-plugin-dts.mjs
|
||||
index 4a9412285c48c37d03340a086c771f8e61fd82ac..c73cba3bf47550f69011366e37d2ae974f0c9fc0 100644
|
||||
--- a/dist/rollup-plugin-dts.mjs
|
||||
+++ b/dist/rollup-plugin-dts.mjs
|
||||
@@ -675,6 +675,8 @@ function preProcess({ sourceFile }) {
|
||||
const nextToken = children[idx + 1];
|
||||
const isPunctuation = nextToken.kind >= ts.SyntaxKind.FirstPunctuation && nextToken.kind <= ts.SyntaxKind.LastPunctuation;
|
||||
if (isPunctuation) {
|
||||
+ const addSpace = code.slice(token.getEnd(), nextToken.getStart()) != " ";
|
||||
+ code.appendLeft(nextToken.getStart(), `${addSpace ? " " : ""}${defaultExport}`);
|
||||
code.appendLeft(nextToken.getStart(), defaultExport);
|
||||
}
|
||||
else {
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue