(
readCached: typeof import('@nx/devkit').readCachedProjectGraph,
createAsync: typeof import('@nx/devkit').createProjectGraphAsync,
)
| 191 | } |
| 192 | |
| 193 | async function loadProjectGraph( |
| 194 | readCached: typeof import('@nx/devkit').readCachedProjectGraph, |
| 195 | createAsync: typeof import('@nx/devkit').createProjectGraphAsync, |
| 196 | ) { |
| 197 | try { |
| 198 | return readCached(); |
| 199 | } catch (error) { |
| 200 | logger.warn( |
| 201 | `Could not read cached project graph, falling back to async creation.\n${stringifyError(error)}`, |
| 202 | ); |
| 203 | return createAsync({ exitOnError: false }); |
| 204 | } |
| 205 | } |
no test coverage detected