* Scans docs/components/ and returns a set of all .mdx file paths.
()
| 135 | * Scans docs/components/ and returns a set of all .mdx file paths. |
| 136 | */ |
| 137 | function discoverDocFiles(): Set<string> { |
| 138 | const docFiles = new Set<string>(); |
| 139 | if (!fs.existsSync(DOCS_DIR)) return docFiles; |
| 140 | |
| 141 | const entries = fs.readdirSync(DOCS_DIR); |
| 142 | for (const entry of entries) { |
| 143 | if (entry.endsWith('.mdx')) { |
| 144 | docFiles.add(path.join(DOCS_DIR, entry)); |
| 145 | } |
| 146 | } |
| 147 | return docFiles; |
| 148 | } |
| 149 | |
| 150 | // ============================================ |
| 151 | // Task 1.2: @Input() and @Output() Extraction |