fix(cli): missing shebang prefix in cli entries
This commit is contained in:
parent
7c9a4bae2d
commit
e4c4a5fe5d
2 changed files with 8 additions and 3 deletions
|
@ -1,11 +1,14 @@
|
|||
#!/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(' ')}`,
|
||||
`node --loader ts-node/esm/transpile-only ${resolve(
|
||||
fileURLToPath(import.meta.url),
|
||||
'../src/cli.ts',
|
||||
)} ${process.argv.slice(2).join(' ')}`,
|
||||
{
|
||||
stdio: 'inherit',
|
||||
},
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import { Cli } from 'clipanion'
|
||||
|
||||
import { ArtifactsCommand } from './commands/artifacts.js'
|
||||
|
|
Loading…
Reference in a new issue