MCPcopy Index your code
hub / github.com/angular/angular-cli / getNgCLIVersion

Function getNgCLIVersion

tests/e2e/utils/project.ts:176–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176export function getNgCLIVersion(): SemVer {
177 const packages: { [name: string]: PkgInfo } = getGlobalVariable('package-tars');
178
179 return new SemVer(packages['@angular/cli'].version);
180}
181
182export function isPrereleaseCli(): boolean {
183 return (prerelease(getNgCLIVersion())?.length ?? 0) > 0;

Callers 2

update.tsFile · 0.90
isPrereleaseCliFunction · 0.85

Calls 1

getGlobalVariableFunction · 0.90

Tested by

no test coverage detected