fix(cli): missing shebang prefix in cli entries

This commit is contained in:
forehal 2023-04-06 15:34:07 +08:00
parent 7c9a4bae2d
commit e4c4a5fe5d
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View file

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

View file

@ -1,3 +1,5 @@
#!/usr/bin/env node
import { Cli } from 'clipanion'
import { ArtifactsCommand } from './commands/artifacts.js'