(moduleDir: string, workspaceRoot: string)
| 303 | |
| 304 | /** Compute the Bazel label for a module given its directory and workspace root */ |
| 305 | export function computeModuleLabel(moduleDir: string, workspaceRoot: string): string { |
| 306 | const relPath = path.relative(workspaceRoot, moduleDir); |
| 307 | const moduleName = readModuleName(moduleDir); |
| 308 | return `//${relPath}:${moduleName}`; |
| 309 | } |
| 310 | |
| 311 | /** Find the base tsconfig relative path for external repos */ |
| 312 | function findBaseConfigRelativePath(workspaceRoot: string, fromDir: string): string { |
no test coverage detected