add yargs bun and pm2

This commit is contained in:
2025-06-19 22:10:48 +08:00
parent dbb090f93c
commit 67e4466687
4 changed files with 9 additions and 117 deletions
+3
View File
@@ -2,4 +2,7 @@ import { createApp } from '@/modules/core/helpers/app';
import { buildCli } from '@/modules/core/helpers/command';
import { createOptions } from '@/options';
console.error('Raw argv:', process.argv);
console.log('This is the very beginning of bin.ts');
buildCli(createApp(createOptions));
+2 -1
View File
@@ -50,13 +50,14 @@ export function getCLIConfig(
const dist = get(tsConfig, 'outDir', 'dist');
const src = get(nestConfig, 'sourceRoot', 'src');
const homeDir = process.env.HOME;
const paths = {
cwd: cwdPath,
dist,
src,
js: join(dist, nestConfig.entryFile ?? 'main.js'),
ts: join(src, tsEntryFile ?? 'main.ts'),
bun: './node_modules/bun/bin/bun',
bun: `${homeDir}/.bun/bin/bun`,
nest: './node_modules/@nestjs/cli/bin/nest.js',
};