napi-rs/cli/cli.mjs

13 lines
303 B
JavaScript
Raw Normal View History

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',
},
)