(workspace: string | undefined)
| 43 | } |
| 44 | |
| 45 | function resolveWorkspacePath(workspace: string | undefined): string { |
| 46 | const resolved = workspace ? path.resolve(workspace) : process.cwd() |
| 47 | |
| 48 | if (!fs.existsSync(resolved)) { |
| 49 | throw new Error(`Workspace path does not exist: ${resolved}`) |
| 50 | } |
| 51 | |
| 52 | return resolved |
| 53 | } |
| 54 | |
| 55 | function resolveExtensionPath(extension: string | undefined): string { |
| 56 | const resolved = path.resolve(extension || getDefaultExtensionPath(__dirname)) |
no test coverage detected