()
| 212 | } |
| 213 | |
| 214 | function getSourceFamilies(): Array<{ sourceFamily: string; sourcePath: string }> { |
| 215 | const families = readdirSync(SRC_TOOLS_ROOT) |
| 216 | .filter(sourceFamily => { |
| 217 | if (sourceFamily === 'shared' || sourceFamily === 'testing') return false |
| 218 | return statSync(join(SRC_TOOLS_ROOT, sourceFamily)).isDirectory() |
| 219 | }) |
| 220 | .sort() |
| 221 | .map(sourceFamily => ({ |
| 222 | sourceFamily, |
| 223 | sourcePath: `src/tools/${sourceFamily}`, |
| 224 | })) |
| 225 | |
| 226 | families.push({ |
| 227 | sourceFamily: 'TestingPermissionTool', |
| 228 | sourcePath: 'src/tools/testing/TestingPermissionTool.tsx', |
| 229 | }) |
| 230 | |
| 231 | return families |
| 232 | } |
| 233 | |
| 234 | function getSeedsForFamily(sourceFamily: string): ToolImplementationSeed[] { |
| 235 | const override = FAMILY_OVERRIDES[sourceFamily] |
no test coverage detected