2023-04-06 16:34:07 +09:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2023-04-06 12:04:53 +09:00
|
|
|
import { execSync } from 'child_process'
|
|
|
|
import { resolve } from 'path'
|
|
|
|
import { fileURLToPath } from 'url'
|
|
|
|
|
|
|
|
execSync(
|
2023-04-06 16:34:07 +09:00
|
|
|
`node --loader ts-node/esm/transpile-only ${resolve(
|
|
|
|
fileURLToPath(import.meta.url),
|
|
|
|
'../src/cli.ts',
|
|
|
|
)} ${process.argv.slice(2).join(' ')}`,
|
2023-04-06 12:04:53 +09:00
|
|
|
{
|
|
|
|
stdio: 'inherit',
|
|
|
|
},
|
|
|
|
)
|