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

@@ -43,7 +43,7 @@
"devDependencies": {
"@kevisual/ai": "^0.0.12",
"@kevisual/load": "^0.0.6",
"@kevisual/local-app-manager": "^0.1.29",
"@kevisual/local-app-manager": "^0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/query": "0.0.29",
"@kevisual/query-login": "0.0.7",

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/');