@vitejs/devtools-vitest 0.7.6 → 0.8.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/dirs.d.mts +1 -3
- package/dist/dirs.mjs +1 -2
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +3 -6
- package/package.json +6 -6
package/dist/dirs.d.mts
CHANGED
package/dist/dirs.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PluginWithDevTools } from "@vitejs/devtools-kit";
|
|
2
|
-
//#region src/node/plugin.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A slim launcher for the Vitest UI, surfaced in the "Vite+" dock group.
|
|
5
4
|
*
|
|
@@ -11,5 +10,4 @@ import { PluginWithDevTools } from "@vitejs/devtools-kit";
|
|
|
11
10
|
* This is the canonical "run commands, start a server, then embed it" launcher
|
|
12
11
|
* built on the kit's `createProcessLauncher`.
|
|
13
12
|
*/
|
|
14
|
-
export declare function DevToolsVitestUI(): PluginWithDevTools;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function DevToolsVitestUI(): PluginWithDevTools;
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { detect } from "package-manager-detector/detect";
|
|
|
9
9
|
import { glob } from "tinyglobby";
|
|
10
10
|
import { createConsoleReporter, defineDiagnostics } from "nostics";
|
|
11
11
|
import { stripVTControlCharacters } from "node:util";
|
|
12
|
-
|
|
12
|
+
// src/node/diagnostics.ts
|
|
13
13
|
const diagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
14
14
|
docsBase: "https://devtools.vite.dev/errors",
|
|
15
15
|
reporters: [createConsoleReporter()],
|
|
@@ -24,8 +24,7 @@ const diagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
//#region src/node/ui-url.ts
|
|
27
|
+
// src/node/ui-url.ts
|
|
29
28
|
/**
|
|
30
29
|
* Carry the Vitest UI API token into `url`.
|
|
31
30
|
*
|
|
@@ -71,8 +70,7 @@ async function waitForVitestUi(url, timeout, getOutput, interval = 300) {
|
|
|
71
70
|
await new Promise((resolve) => setTimeout(resolve, interval));
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
//#region src/node/plugin.ts
|
|
73
|
+
// src/node/plugin.ts
|
|
76
74
|
const VITEST_DEVTOOLS_BASE = "/__devtools-vitest/";
|
|
77
75
|
/** Path Vitest's own UI server serves its app under. */
|
|
78
76
|
const VITEST_UI_PATH = "__vitest__/";
|
|
@@ -216,5 +214,4 @@ async function discoverRoots(cwd, workspaceRoot) {
|
|
|
216
214
|
}
|
|
217
215
|
return [...roots.values()];
|
|
218
216
|
}
|
|
219
|
-
//#endregion
|
|
220
217
|
export { DevToolsVitestUI };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools-vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "DevTools for Vitest",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vitejs/devtools-kit": "0.
|
|
40
|
-
"devframe": "^1.
|
|
41
|
-
"local-pkg": "^
|
|
39
|
+
"@vitejs/devtools-kit": "0.8.1",
|
|
40
|
+
"devframe": "^1.3.2",
|
|
41
|
+
"local-pkg": "^2.0.0",
|
|
42
42
|
"nostics": "^1.3.0",
|
|
43
|
-
"package-manager-detector": "^1.
|
|
43
|
+
"package-manager-detector": "^1.9.0",
|
|
44
44
|
"tinyglobby": "^0.2.17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"tsdown": "^0.23.
|
|
47
|
+
"tsdown": "^0.23.4"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown"
|