/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.ng-dev/release.mts
66 строк
2 KB
Joey Perrott
Revert "build: use mjs files for ng-dev configuration (#32309)" (#32464)
03 дек 2025, 21:59
Не верифицирован
03 дек 2025, 21:59
a1ceed4
Код
Авторство
О чём код?
/** * @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 */ import semver from 'semver'; import {ReleaseConfig} from '@angular/ng-dev'; import {assertValidUpdateMigrationCollections} from '../tools/release-checks/check-migration-collections.mjs'; import {assertValidNpmPackageOutput} from '../tools/release-checks/npm-package-output/index.mjs'; /** * Packages that will be published as part of the project. * * Note: The order of packages here will control how sections * appear in the changelog. */ export const releasePackages = [ 'aria', 'cdk', 'material', 'google-maps', 'youtube-player', 'cdk-experimental', 'material-experimental', 'material-moment-adapter', 'material-luxon-adapter', 'material-date-fns-adapter', ]; /** Configuration for the `ng-dev release` command. */ export const release: ReleaseConfig = { releaseNotes: { useReleaseTitle: true, groupOrder: releasePackages, categorizeCommit: commit => { const [packageName, entryPointName] = commit.scope.split('/'); const entryPointPrefix = entryPointName ? `**${entryPointName}:** ` : ''; // In the `angular/components` repository, commit messages may include entry-point // information in the scope. We expect commits to be grouped based on their package // name. Commits are then described with their subject and optional entry-point name. return { groupName: packageName, description: `${entryPointPrefix}${commit.subject}`, }; }, }, publishRegistry: 'https://wombat-dressing-room.appspot.com', representativeNpmPackage: '@angular/cdk', npmPackages: releasePackages.map(pkg => ({name: `@angular/${pkg}`})), buildPackages: async () => { // The `performNpmReleaseBuild` function is loaded at runtime as loading of the // script results in an invocation of Bazel for any `pnpm ng-dev` command. const {performNpmReleaseBuild} = await import('../scripts/build-packages-dist.mjs'); return performNpmReleaseBuild(); }, prereleaseCheck: async (newVersionStr, builtPackagesWithInfo) => { const newVersion = new semver.SemVer(newVersionStr); await assertValidUpdateMigrationCollections(newVersion); await assertValidNpmPackageOutput(builtPackagesWithInfo, newVersion); }, };