fix(cli): improve project metadata loading and normalize CLI error handling
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ export type { CliArguments } from './types.js';
|
||||
*/
|
||||
export const run = async (): Promise<void> => {
|
||||
const cliLogger = new Logger('CLI');
|
||||
const tspmProjectinfo = new plugins.projectinfo.ProjectInfo(paths.packageDir);
|
||||
const tspmProjectinfo = await plugins.projectinfo.ProjectInfo.create(paths.packageDir);
|
||||
|
||||
// Check if debug mode is enabled
|
||||
const debugMode = process.env.TSPM_DEBUG === 'true';
|
||||
|
||||
Reference in New Issue
Block a user