MCPcopy Create free account
hub / github.com/Piebald-AI/claude-code-lsps / runNodeScript

Function runNodeScript

scripts/validate-all.mjs:9–20  ·  view source on GitHub ↗
(scriptFile, envOverrides = {})

Source from the content-addressed store, hash-verified

7const rootDir = process.cwd();
8
9function runNodeScript(scriptFile, envOverrides = {}) {
10 const scriptPath = path.join(rootDir, "scripts", scriptFile);
11 const result = spawnSync(
12 process.execPath,
13 [scriptPath],
14 {
15 encoding: "utf8",
16 env: { ...process.env, ...envOverrides },
17 },
18 );
19 return result;
20}
21
22function printResult(result) {
23 if (result.stdout) {

Callers 1

runStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected