mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
13 lines
303 B
JavaScript
Executable File
13 lines
303 B
JavaScript
Executable File
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',
|
|
},
|
|
)
|