fix: update windows jianrong

This commit is contained in:
2025-12-01 15:33:30 +08:00
parent fcb3ec8993
commit 7471602ac1
4 changed files with 12 additions and 10 deletions

View File

@@ -44,13 +44,15 @@ export class AssistantApp extends Manager {
}
async getPageAndAppList() {
const root = this.config.configPath.configDir;
const pages = await glob([root + '/apps/*/package.json', root + '/pages/*/*/package.json'], {
const path1 = 'apps/*/*/package.json';
const path2 = 'pages/*/*/package.json';
const pages = await glob([path1, path2], {
cwd: root,
onlyFiles: true,
});
const pagesParse = pages.map((page) => {
const relativePath = path.relative(root, page);
const contentStr = fs.readFileSync(path.join(page), 'utf-8');
const relativePath = page;
const contentStr = fs.readFileSync(path.join(root, page), 'utf-8');
const content = parseIfJson(contentStr);
if (!content.appType) {
const isWeb = relativePath.startsWith('pages/');