Skip to content

Commit a1af184

Browse files
only21milclaude
andauthored
fix(scripts): report:renders starts on Windows without a vp shim (#32777)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 71c2d3a commit a1af184

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎scripts/render-metrics.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import * as NodeFS from "node:fs";
44
import * as NodeOS from "node:os";
55
import * as NodePath from "node:path";
66

7+
import { vitePlusCommand } from "./check-changed-command.ts";
8+
79
const HELP = `Usage:
810
node scripts/render-metrics.ts run [--out <file>] [--runs <n>]
911
node scripts/render-metrics.ts compare <before.json> <after.json> [--top <n>]
@@ -40,7 +42,8 @@ const root = NodePath.resolve(import.meta.dirname, "..");
4042
export function runOnce(): RenderMetrics {
4143
const directory = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "t3-renders-"));
4244
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, {
4447
cwd: NodePath.join(root, "apps/web"),
4548
env: { ...process.env, T3CODE_RENDER_REPORT_DIR: directory },
4649
stdio: ["ignore", "inherit", "inherit"],

0 commit comments

Comments
 (0)