(importPath: string)
| 280 | |
| 281 | /** Extract the module name (first segment) from an import path like "widgets/src/..." */ |
| 282 | export function getModuleNameFromImport(importPath: string): string { |
| 283 | return importPath.split('/')[0]!; |
| 284 | } |
| 285 | |
| 286 | /** Read the valdi_module name from a BUILD.bazel file in the given directory */ |
| 287 | export function readModuleName(moduleDir: string): string { |
no test coverage detected