/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/cli/src/utilities/version.ts
23 строки
593 B
Alan Agius
refactor(@angular/cli): replace `VERSION` with Bazel-stamped version
13 янв 2025, 21:49
13 янв 2025, 21:49
214ac89
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Same structure as used in framework packages class Version { readonly major: string; readonly minor: string; readonly patch: string; constructor(readonly full: string) { const [major, minor, patch] = full.split('-', 1)[0].split('.', 3); this.major = major; this.minor = minor; this.patch = patch; } } export const VERSION = new Version('0.0.0-PLACEHOLDER');