fix typos.

This commit is contained in:
秋云
2025-06-30 09:12:57 +08:00
parent ef4bcdf0c2
commit c425857d6a

View File

@@ -518,7 +518,6 @@ function generateDirectoryTree(dir, currentDepth = 0, parentFolders = []) {
// console.log(`未找到icon.ico的pathing目录: ${relativePath}`); // console.log(`未找到icon.ico的pathing目录: ${relativePath}`);
} }
} }
if (parentFolders[0] === 'js' && currentDepth === 1) { if (parentFolders[0] === 'js' && currentDepth === 1) {
// 对于 js 文件夹下的直接子文件夹,不再递归 // 对于 js 文件夹下的直接子文件夹,不再递归
const manifestPath = path.join(dir, 'manifest.json'); const manifestPath = path.join(dir, 'manifest.json');
@@ -527,6 +526,7 @@ function generateDirectoryTree(dir, currentDepth = 0, parentFolders = []) {
info.hash = calculateSHA1(manifestPath); info.hash = calculateSHA1(manifestPath);
info.version = jsInfo.version || info.hash.substring(0, 7); info.version = jsInfo.version || info.hash.substring(0, 7);
info.author = jsInfo.author; info.author = jsInfo.author;
info.authors = jsInfo.authors;
info.description = jsInfo.description; info.description = jsInfo.description;
info.tags = jsInfo.tags; info.tags = jsInfo.tags;
info.lastUpdated = jsInfo.lastUpdated; info.lastUpdated = jsInfo.lastUpdated;