feat(projectinfo): migrate project info loading to async factories and update build configuration

This commit is contained in:
2026-03-26 08:35:13 +00:00
parent 9e79ea4e70
commit 4a20f31b99
15 changed files with 7519 additions and 4135 deletions

View File

@@ -13,8 +13,8 @@ import { ProjectinfoNpm } from './projectinfo.classes.npm.js';
/**
* gets the name from package.json in a specified directory
*/
export let getNpmNameForDir = function (cwdArg) {
let localNpm = new ProjectinfoNpm(cwdArg);
export let getNpmNameForDir = async function (cwdArg: string) {
let localNpm = await ProjectinfoNpm.create(cwdArg);
if (localNpm.status === 'ok') {
return localNpm.name;
}