( project: string, host: ConfigurationHost = getFileSystem(), )
| 60 | } |
| 61 | |
| 62 | export function calcProjectFileAndBasePath( |
| 63 | project: string, |
| 64 | host: ConfigurationHost = getFileSystem(), |
| 65 | ): {projectFile: AbsoluteFsPath; basePath: AbsoluteFsPath} { |
| 66 | const absProject = host.resolve(project); |
| 67 | const projectIsDir = host.lstat(absProject).isDirectory(); |
| 68 | const projectFile = projectIsDir ? host.join(absProject, 'tsconfig.json') : absProject; |
| 69 | const projectDir = projectIsDir ? absProject : host.dirname(absProject); |
| 70 | const basePath = host.resolve(projectDir); |
| 71 | |
| 72 | return {projectFile, basePath}; |
| 73 | } |
| 74 | |
| 75 | export function readConfiguration( |
| 76 | project: string, |
no test coverage detected
searching dependent graphs…