From e4c4a5fe5df7abfdbae1ce5e19e686b55624a283 Mon Sep 17 00:00:00 2001 From: forehal Date: Thu, 6 Apr 2023 15:34:07 +0800 Subject: [PATCH] fix(cli): missing shebang prefix in cli entries --- cli/cli.mjs | 9 ++++++--- cli/src/cli.ts | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cli/cli.mjs b/cli/cli.mjs index f46856e0..1c0fd092 100755 --- a/cli/cli.mjs +++ b/cli/cli.mjs @@ -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', }, diff --git a/cli/src/cli.ts b/cli/src/cli.ts index edde745b..360f9cd7 100644 --- a/cli/src/cli.ts +++ b/cli/src/cli.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { Cli } from 'clipanion' import { ArtifactsCommand } from './commands/artifacts.js'