Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env node
|
||||
const { spawn } = require("node:child_process");
|
||||
const { dirname, resolve } = require("node:path");
|
||||
|
||||
const repoRoot = process.env.TOOLCTRL_REPO_ROOT || resolve(dirname(__filename), "../..");
|
||||
const compatScript = resolve(repoRoot, "scripts/vitest-cli-compat.mjs");
|
||||
const child = spawn(process.execPath, [compatScript, ...process.argv.slice(2)], {
|
||||
cwd: repoRoot,
|
||||
stdio: "inherit",
|
||||
env: { ...process.env, VITEST_PNPM_EXEC_COMPAT_READY: "1", TOOLCTRL_REPO_ROOT: repoRoot },
|
||||
});
|
||||
|
||||
child.on("exit", (code, signal) => {
|
||||
if (signal) {
|
||||
process.kill(process.pid, signal);
|
||||
return;
|
||||
}
|
||||
|
||||
process.exit(code ?? 1);
|
||||
});
|
||||
Reference in new issue
Block a user