napi-rs/cli/cli.mjs

16 lines
327 B
JavaScript
Raw Normal View History

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