Skip to content

Latest commit

 

History

History

bin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
#!/usr/bin/env node

const src = "readme.ts";
import { spawn } from "child_process";
import { join } from "path";
const [node, toolsDir, ...args] = process.argv;

const cli = join(toolsDir, "..", "..", "src", src);
const p = spawn(node, ["--loader", "ts-node/esm", cli, ...args]);

p.stdout.pipe(process.stdout);
p.stderr.on("data", (d) => {
	const dStr = d.toString().trim();
	!dStr.includes("ExperimentalWarning") ? console.log(dStr) : "";
});