收口原生壳本地生成物边界
忽略Expo本地状态目录并保持导出烟测目录不入库 统一原生壳扫描排除Tauri schema和自动生成权限产物 更新原生壳方案和共享决策记录
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user