13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
|
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',
|
||
|
},
|
||
|
)
|