(
options: { cwd?: string; configPath?: string },
filePath: string,
)
| 9 | * @return the fully resolved path within the project directory |
| 10 | */ |
| 11 | export function resolveProjectPath( |
| 12 | options: { cwd?: string; configPath?: string }, |
| 13 | filePath: string, |
| 14 | ): string { |
| 15 | const projectRoot = detectProjectRoot(options); |
| 16 | if (!projectRoot) { |
| 17 | throw new FirebaseError("Expected to be in a project directory, but none was found.", { |
| 18 | exit: 2, |
| 19 | }); |
| 20 | } |
| 21 | return path.resolve(projectRoot, filePath); |
| 22 | } |
no test coverage detected
searching dependent graphs…