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

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

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected