10 lines
400 B
JavaScript
Executable File
10 lines
400 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
import { spawnSync } from "node:child_process";
|
|
import { fileURLToPath } from "node:url";
|
|
import { resolve, dirname } from "node:path";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const cli = resolve(__dirname, "..", "src", "cli.ts");
|
|
const result = spawnSync("bun", ["run", cli, ...process.argv.slice(2)], { stdio: "inherit" });
|
|
process.exit(result.status ?? 1);
|