MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / forkCli

Function forkCli

test/cli/run.ts:9–14  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

7
8const defaultArgs = ["--skipLibCheck", "--types", "node"];
9export function forkCli(args: string[]): ChildProcess {
10 return fork(cliPath, [...defaultArgs, ...args], {
11 stdio: "pipe",
12 execArgv: ["--require", "ts-node/register/transpile-only"],
13 });
14}
15
16export interface CliResult {
17 exitCode: number;

Callers 2

forkWatchProcessFunction · 0.90
runCliFunction · 0.85

Calls

no outgoing calls

Tested by 1

forkWatchProcessFunction · 0.72