(rootDir: string, currentDir: string, paths: string[])
| 164 | } |
| 165 | |
| 166 | function collectProjectFiles(rootDir: string, currentDir: string, paths: string[]): void { |
| 167 | for (const entry of readdirSync(currentDir, { withFileTypes: true })) { |
| 168 | if (shouldIgnoreSegment(entry.name)) continue; |
| 169 | const absolutePath = join(currentDir, entry.name); |
| 170 | const relativePath = relative(rootDir, absolutePath).replaceAll("\\", "/"); |
| 171 | if (!relativePath) continue; |
| 172 | |
| 173 | if (entry.isDirectory()) { |
| 174 | collectProjectFiles(rootDir, absolutePath, paths); |
| 175 | continue; |
| 176 | } |
| 177 | |
| 178 | if (!statSync(absolutePath).isFile()) continue; |
| 179 | paths.push(relativePath); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | const EXT_ASSETS_PREFIX = "_ext"; |
| 184 |
no test coverage detected