fix(cli): improve project metadata loading and normalize CLI error handling
This commit is contained in:
@@ -8,10 +8,10 @@ import { formatMemory } from '../helpers/memory.js';
|
||||
|
||||
export function registerDefaultCommand(smartcli: plugins.smartcli.Smartcli) {
|
||||
const cliLogger = new Logger('CLI');
|
||||
const tspmProjectinfo = new plugins.projectinfo.ProjectInfo(paths.packageDir);
|
||||
|
||||
smartcli.standardCommand().subscribe({
|
||||
next: async (argvArg: CliArguments) => {
|
||||
const tspmProjectinfo = await plugins.projectinfo.ProjectInfo.create(paths.packageDir);
|
||||
console.log(
|
||||
`TSPM - TypeScript Process Manager v${tspmProjectinfo.npm.version}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user