vitepress 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-oY-f4fXJ.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
|
@@ -401,25 +401,19 @@ if (!command || command === "dev") {
|
|
|
401
401
|
delete argv.force;
|
|
402
402
|
argv.optimizeDeps = { force: true };
|
|
403
403
|
}
|
|
404
|
-
const open = argv.open;
|
|
405
|
-
delete argv.open;
|
|
406
404
|
const createDevServer = async (isRestart = true) => {
|
|
407
|
-
const server = await createServer(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
})().finally(() => {
|
|
416
|
-
restartPromise = void 0;
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
return restartPromise;
|
|
405
|
+
const server = await createServer(root, argv, async () => {
|
|
406
|
+
if (!restartPromise) {
|
|
407
|
+
restartPromise = (async () => {
|
|
408
|
+
await server.close();
|
|
409
|
+
await createDevServer();
|
|
410
|
+
})().finally(() => {
|
|
411
|
+
restartPromise = void 0;
|
|
412
|
+
});
|
|
420
413
|
}
|
|
421
|
-
|
|
422
|
-
|
|
414
|
+
return restartPromise;
|
|
415
|
+
});
|
|
416
|
+
await server.listen(void 0, isRestart);
|
|
423
417
|
logVersion(server.config.logger);
|
|
424
418
|
server.printUrls();
|
|
425
419
|
bindShortcuts(server, createDevServer);
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-oY-f4fXJ.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-oY-f4fXJ.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -7567,6 +7567,8 @@ class PathBase {
|
|
|
7567
7567
|
/**
|
|
7568
7568
|
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
|
|
7569
7569
|
* this property refers to the *parent* path, not the path object itself.
|
|
7570
|
+
*
|
|
7571
|
+
* @deprecated
|
|
7570
7572
|
*/
|
|
7571
7573
|
get path() {
|
|
7572
7574
|
return this.parentPath;
|
|
@@ -46834,7 +46836,7 @@ async function generateSitemap(siteConfig) {
|
|
|
46834
46836
|
});
|
|
46835
46837
|
}
|
|
46836
46838
|
|
|
46837
|
-
var version = "1.3.
|
|
46839
|
+
var version = "1.3.1";
|
|
46838
46840
|
|
|
46839
46841
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46840
46842
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Vite & Vue powered static site generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@vueuse/integrations": "^10.11.0",
|
|
73
73
|
"focus-trap": "^7.5.4",
|
|
74
74
|
"mark.js": "8.11.1",
|
|
75
|
-
"minisearch": "^
|
|
75
|
+
"minisearch": "^7.0.0",
|
|
76
76
|
"shiki": "^1.10.3",
|
|
77
77
|
"vite": "^5.3.3",
|
|
78
78
|
"vue": "^3.4.31"
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"gray-matter": "^4.0.3",
|
|
118
118
|
"lint-staged": "^15.2.7",
|
|
119
119
|
"lodash.template": "^4.5.0",
|
|
120
|
-
"lru-cache": "^
|
|
120
|
+
"lru-cache": "^11.0.0",
|
|
121
121
|
"markdown-it": "^14.1.0",
|
|
122
122
|
"markdown-it-anchor": "^9.0.1",
|
|
123
123
|
"markdown-it-attrs": "^4.1.6",
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
"playwright-chromium": "^1.45.1",
|
|
136
136
|
"polka": "^1.0.0-next.25",
|
|
137
137
|
"postcss-prefix-selector": "^1.16.1",
|
|
138
|
-
"prettier": "^3.3.
|
|
138
|
+
"prettier": "^3.3.3",
|
|
139
139
|
"prompts": "^2.4.2",
|
|
140
140
|
"punycode": "^2.3.1",
|
|
141
|
-
"rimraf": "^
|
|
142
|
-
"rollup": "^4.18.
|
|
141
|
+
"rimraf": "^6.0.1",
|
|
142
|
+
"rollup": "^4.18.1",
|
|
143
143
|
"rollup-plugin-dts": "^6.1.1",
|
|
144
144
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
145
145
|
"semver": "^7.6.2",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"sitemap": "^8.0.0",
|
|
149
149
|
"supports-color": "^9.4.0",
|
|
150
150
|
"typescript": "^5.5.3",
|
|
151
|
-
"vitest": "^
|
|
151
|
+
"vitest": "^2.0.2",
|
|
152
152
|
"vue-tsc": "^2.0.26",
|
|
153
153
|
"wait-on": "^7.2.0"
|
|
154
154
|
},
|