mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
16 lines
339 B
JavaScript
Executable File
16 lines
339 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { execSync } from 'node:child_process'
|
|
import { resolve } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
execSync(
|
|
`node --import @oxc-node/core/register ${resolve(
|
|
fileURLToPath(import.meta.url),
|
|
'../src/cli.ts',
|
|
)} ${process.argv.slice(2).join(' ')}`,
|
|
{
|
|
stdio: 'inherit',
|
|
},
|
|
)
|