(filePath: string, isCloudConfig?: boolean)
| 239 | * @returns The resolved absolute file path. |
| 240 | */ |
| 241 | export function getResolvedRelativePath(filePath: string, isCloudConfig?: boolean): string { |
| 242 | // If it's already an absolute path, or not a cloud config, return it as is |
| 243 | if (path.isAbsolute(filePath) || !isCloudConfig) { |
| 244 | return filePath; |
| 245 | } |
| 246 | |
| 247 | // Join the basePath and filePath to get the resolved path |
| 248 | return path.join(process.cwd(), filePath); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Recursively loads external file references from a configuration object. |
no outgoing calls
no test coverage detected
searching dependent graphs…