MCPcopy Create free account
hub / github.com/angular/dev-infra / ngDevVersionMiddleware

Function ngDevVersionMiddleware

ng-dev/utils/version-check.ts:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24/** Whether ngDevVersionMiddleware verification has already occured. */
25let verified = false;
26export 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

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected