add yargs bun and pm2
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user