( cwd: string, inputPath: string, label: string, scope: WorkspacePathScope, )
| 410 | } |
| 411 | |
| 412 | async function resolveDirectoryEntryPathInScope( |
| 413 | cwd: string, |
| 414 | inputPath: string, |
| 415 | label: string, |
| 416 | scope: WorkspacePathScope, |
| 417 | ): Promise<string> { |
| 418 | const target = await resolveCanonicalDirectoryEntryTarget(cwd, inputPath); |
| 419 | return scope === 'host' |
| 420 | ? target.path |
| 421 | : assertInsideCwd(target.root, target.path, inputPath, label); |
| 422 | } |
| 423 | |
| 424 | function assertInsideCwd( |
| 425 | root: string, |
no test coverage detected