@vitejs/devtools 0.1.10 → 0.1.11
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.
|
@@ -6,8 +6,8 @@ import { existsSync } from "node:fs";
|
|
|
6
6
|
import fs$1 from "node:fs/promises";
|
|
7
7
|
//#region src/node/build-static.ts
|
|
8
8
|
async function buildStaticDevTools(options) {
|
|
9
|
-
const { context, outDir } = options;
|
|
10
|
-
if (existsSync(outDir)) await fs$1.rm(outDir, { recursive: true });
|
|
9
|
+
const { context, outDir, withApp } = options;
|
|
10
|
+
if (!withApp && existsSync(outDir)) await fs$1.rm(outDir, { recursive: true });
|
|
11
11
|
const devToolsRoot = join(outDir, DEVTOOLS_DIRNAME);
|
|
12
12
|
await fs$1.mkdir(devToolsRoot, { recursive: true });
|
|
13
13
|
await fs$1.cp(dirClientStandalone, devToolsRoot, { recursive: true });
|
|
@@ -29,7 +29,7 @@ async function buildStaticDevTools(options) {
|
|
|
29
29
|
await fs$1.writeFile(fullpath, JSON.stringify(data, null, 2), "utf-8");
|
|
30
30
|
}
|
|
31
31
|
await fs$1.writeFile(resolve(devToolsRoot, DEVTOOLS_RPC_DUMP_MANIFEST_FILENAME), JSON.stringify(dump.manifest, null, 2), "utf-8");
|
|
32
|
-
await fs$1.writeFile(resolve(outDir, "index.html"), [
|
|
32
|
+
if (!existsSync(resolve(outDir, "index.html"))) await fs$1.writeFile(resolve(outDir, "index.html"), [
|
|
33
33
|
"<!doctype html>",
|
|
34
34
|
"<html lang=\"en\">",
|
|
35
35
|
"<head>",
|
package/dist/cli-commands.js
CHANGED
|
@@ -11,7 +11,7 @@ async function start(options) {
|
|
|
11
11
|
port: options.port == null ? void 0 : +options.port,
|
|
12
12
|
portRange: [9999, 15e3]
|
|
13
13
|
});
|
|
14
|
-
const { startStandaloneDevTools } = await import("./standalone-
|
|
14
|
+
const { startStandaloneDevTools } = await import("./standalone-CBP9wm6I.js");
|
|
15
15
|
const { createDevToolsMiddleware } = await import("./server-DSh-GQIq.js").then((n) => n.n);
|
|
16
16
|
const devtools = await startStandaloneDevTools({ cwd: options.root });
|
|
17
17
|
const { h3 } = await createDevToolsMiddleware({
|
|
@@ -40,13 +40,13 @@ async function start(options) {
|
|
|
40
40
|
}
|
|
41
41
|
async function build(options) {
|
|
42
42
|
console.log(ansis_default.cyan`${"⬢"} Building static Vite DevTools...`);
|
|
43
|
-
const { startStandaloneDevTools } = await import("./standalone-
|
|
43
|
+
const { startStandaloneDevTools } = await import("./standalone-CBP9wm6I.js");
|
|
44
44
|
const devtools = await startStandaloneDevTools({
|
|
45
45
|
cwd: options.root,
|
|
46
46
|
config: options.config
|
|
47
47
|
});
|
|
48
48
|
const outDir = resolve(devtools.config.root, options.outDir);
|
|
49
|
-
const { buildStaticDevTools } = await import("./build-static-
|
|
49
|
+
const { buildStaticDevTools } = await import("./build-static-BX4XcGdI.js");
|
|
50
50
|
await buildStaticDevTools({
|
|
51
51
|
context: devtools.context,
|
|
52
52
|
outDir
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as createDevToolsContext } from "./context-BWju7fup.js";
|
|
2
|
-
import { t as DevTools } from "./plugins-
|
|
2
|
+
import { t as DevTools } from "./plugins-DxggNo2I.js";
|
|
3
3
|
import { t as createDevToolsMiddleware } from "./server-DSh-GQIq.js";
|
|
4
4
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
|
@@ -20,10 +20,11 @@ function DevToolsBuild(options = {}) {
|
|
|
20
20
|
async closeBundle() {
|
|
21
21
|
console.log(ansis_default.cyan`${"⬢"} Building static Vite DevTools...`);
|
|
22
22
|
const outDir = options.outDir ? resolve(resolvedConfig.root, options.outDir) : resolve(resolvedConfig.root, resolvedConfig.build.outDir);
|
|
23
|
-
const { buildStaticDevTools } = await import("./build-static-
|
|
23
|
+
const { buildStaticDevTools } = await import("./build-static-BX4XcGdI.js");
|
|
24
24
|
await buildStaticDevTools({
|
|
25
25
|
context,
|
|
26
|
-
outDir
|
|
26
|
+
outDir,
|
|
27
|
+
withApp: true
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as createDevToolsContext } from "./context-BWju7fup.js";
|
|
2
|
-
import { t as DevTools } from "./plugins-
|
|
2
|
+
import { t as DevTools } from "./plugins-DxggNo2I.js";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
//#region src/node/standalone.ts
|
|
5
5
|
async function startStandaloneDevTools(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"description": "Vite DevTools",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"tinyexec": "^1.0.4",
|
|
57
57
|
"vue": "^3.5.30",
|
|
58
58
|
"ws": "^8.20.0",
|
|
59
|
-
"@vitejs/devtools-kit": "0.1.
|
|
60
|
-
"@vitejs/devtools-rolldown": "0.1.
|
|
61
|
-
"@vitejs/devtools-rpc": "0.1.
|
|
59
|
+
"@vitejs/devtools-kit": "0.1.11",
|
|
60
|
+
"@vitejs/devtools-rolldown": "0.1.11",
|
|
61
|
+
"@vitejs/devtools-rpc": "0.1.11"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@clack/prompts": "^1.1.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"vue": "^3.5.30",
|
|
76
76
|
"vue-router": "^5.0.4",
|
|
77
77
|
"vue-tsc": "^3.2.6",
|
|
78
|
-
"@vitejs/devtools-rolldown": "0.1.
|
|
78
|
+
"@vitejs/devtools-rolldown": "0.1.11"
|
|
79
79
|
},
|
|
80
80
|
"inlinedDependencies": {
|
|
81
81
|
"@clack/core": "1.1.0",
|