File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 7575 const indexContent = fs.existsSync(indexPath) ? fs.readFileSync(indexPath,'utf8') : '';
7676 const existingExports = new Set((indexContent.match(/from\\s+['\\\"](\\.\\/|\\.\\.\\/)([^'\\\"]+)['\\\"]/g) || [])
7777 .map(line => line.match(/from\\s+['\\\"]([^'\\\"]+)['\\\"]/)[1]));
78-
7978 const adds = [];
80-
8179 const uiRoot = path.join(root, 'ui');
8280 const componentFiles = [];
83-
8481 if (fs.existsSync(uiRoot)) {
8582 fs.readdirSync(uiRoot, { withFileTypes: true })
8683 .filter(d => d.isDirectory())
9289 if (item.isFile() && (item.name.endsWith('.ts') || item.name.endsWith('.tsx')) && item.name !== 'index.ts') {
9390 componentFiles.push(path.join(dir.name, item.name));
9491 }
95- });
96- }
92+ }
93+ });
94+ }
9795
9896 for (const relativeFilePath of componentFiles) {
9997 const componentName = path.basename(relativeFilePath, path.extname(relativeFilePath));
You can’t perform that action at this time.
0 commit comments