15 lines
327 B
JavaScript
Executable file
15 lines
327 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
import { execSync } from 'child_process'
|
|
import { resolve } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
execSync(
|
|
`node --loader ts-node/esm/transpile-only ${resolve(
|
|
fileURLToPath(import.meta.url),
|
|
'../src/cli.ts',
|
|
)} ${process.argv.slice(2).join(' ')}`,
|
|
{
|
|
stdio: 'inherit',
|
|
},
|
|
)
|