(pathStr: string)
| 287 | } |
| 288 | |
| 289 | private async resolveTarget(pathStr: string): Promise<string> { |
| 290 | const absolutePath = path.resolve(pathStr); |
| 291 | const root = await this.getWorkspaceRoot(); |
| 292 | if (!absolutePath.startsWith(root)) { |
| 293 | throw new Error( |
| 294 | `Could not resolve target at relative path, found Bazel workspace root at '${root}', resolved target path at ${absolutePath}`, |
| 295 | ); |
| 296 | } |
| 297 | |
| 298 | return '/' + absolutePath.slice(root.length); |
| 299 | } |
| 300 | } |
no test coverage detected