收口原生壳本地生成物边界

忽略Expo本地状态目录并保持导出烟测目录不入库

统一原生壳扫描排除Tauri schema和自动生成权限产物

更新原生壳方案和共享决策记录
This commit is contained in:
2026-06-18 13:45:06 +08:00
parent 0e0a5bb0c0
commit e6de69649b
4 changed files with 21 additions and 0 deletions
+10
View File
@@ -16,10 +16,15 @@ const productionShellExtensions = new Set([
'.tsx',
]);
const productionShellExcludedSegments = new Set([
'.expo',
'.expo-export-smoke',
'node_modules',
'target',
]);
const productionShellExcludedPaths = new Set([
'apps/desktop-shell/src-tauri/gen',
'apps/desktop-shell/src-tauri/permissions/autogenerated',
]);
const productionShellDevScaffoldTerms = [
'mo' + 'ck',
'fa' + 'ke',
@@ -99,6 +104,11 @@ function shouldScanProductionShellFile(filePath) {
}
function collectProductionShellFiles(entryPath) {
const normalizedPath = entryPath.split(path.sep).join('/');
if (productionShellExcludedPaths.has(normalizedPath)) {
return [];
}
const stats = fs.statSync(entryPath);
if (stats.isDirectory()) {
const name = path.basename(entryPath);