The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 02:00 UTC
fix(scripts): report:renders starts on Windows without a vp shim (#32777)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Victor committed
Nov 7, 2026 at 21:15 UTC
a1af1841ede2acc64e83b0e9c2b5efab4ab4ca34
1 file changed
+4
-1
scripts/render-metrics.ts
+4
-1
@@ -4,6 +4,8 @@ import * as NodeFS from "node:fs";
4
import * as NodeOS from "node:os";
5
import * as NodePath from "node:path";
6
7
+import { vitePlusCommand } from "./check-changed-command.ts";
8
+
9
const HELP = `Usage:
10
node scripts/render-metrics.ts run [--out <file>] [--runs <n>]
11
node scripts/render-metrics.ts compare <before.json> <after.json> [--top <n>]
@@ -40,7 +42,8 @@ const root = NodePath.resolve(import.meta.dirname, "..");
42
export function runOnce(): RenderMetrics {
43
const directory = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "t3-renders-"));
44
try {
43
- const result = NodeChildProcess.spawnSync("vp", ["test", "run", "--project", "renders"], {
45
+ const [command, commandArgs] = vitePlusCommand(["test", "run", "--project", "renders"]);
46
+ const result = NodeChildProcess.spawnSync(command, commandArgs, {
47
cwd: NodePath.join(root, "apps/web"),
48
env: { ...process.env, T3CODE_RENDER_REPORT_DIR: directory },
49
stdio: ["ignore", "inherit", "inherit"],