index.js 1.3 KB

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.dev/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. exports.updateToV19 = updateToV19;
  11. const target_version_1 = require("../update-tool/target-version");
  12. const upgrade_data_1 = require("./upgrade-data");
  13. const devkit_migration_rule_1 = require("./devkit-migration-rule");
  14. const cdkMigrations = [];
  15. /** Entry point for the migration schematics with target of Angular CDK 18.0.0 */
  16. function updateToV19() {
  17. return (0, devkit_migration_rule_1.createMigrationSchematicRule)(target_version_1.TargetVersion.V19, cdkMigrations, upgrade_data_1.cdkUpgradeData, onMigrationComplete);
  18. }
  19. /** Function that will be called when the migration completed. */
  20. function onMigrationComplete(context, targetVersion, hasFailures) {
  21. context.logger.info('');
  22. context.logger.info(` ✓ Updated Angular CDK to ${targetVersion}`);
  23. context.logger.info('');
  24. if (hasFailures) {
  25. context.logger.warn(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +
  26. 'output above and fix these issues manually.');
  27. }
  28. }
  29. //# sourceMappingURL=index.js.map