()
| 24 | /** Whether ngDevVersionMiddleware verification has already occured. */ |
| 25 | let verified = false; |
| 26 | export async function ngDevVersionMiddleware() { |
| 27 | // TODO(josephperrott): remove this guard against running multiple times after |
| 28 | // https://github.com/yargs/yargs/issues/2223 is fixed |
| 29 | if (verified) { |
| 30 | return; |
| 31 | } |
| 32 | // TODO(josephperrott): Create an enforcement configuration option. |
| 33 | await verifyNgDevToolIsUpToDate(determineRepoBaseDirFromCwd()); |
| 34 | verified = true; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Verifies that the `ng-dev` tool is up-to-date in the workspace. The check will compare |
nothing calls this directly
no test coverage detected