UNPKG

ng-alain

Version:

Schematics specific to ng-alain

23 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateToV19 = updateToV19; exports.postUpdate = postUpdate; const schematics_1 = require("@angular/cdk/schematics"); const schematics_2 = require("@angular-devkit/schematics"); const upgrade_data_1 = require("./upgrade-data"); const V19_1 = require("./upgrade-rules/V19"); const migrations = []; function updateToV19() { return (0, schematics_2.chain)([(0, V19_1.v19Rule)(), (0, schematics_1.createMigrationSchematicRule)(schematics_1.TargetVersion.V19, migrations, upgrade_data_1.ruleUpgradeData, postUpdate)]); } /** Post-update schematic to be called when update is finished. */ function postUpdate(context, targetVersion, hasFailures) { context.logger.info(''); context.logger.info(`✓ Updated NG-ALAIN to ${targetVersion}`); context.logger.info(''); if (hasFailures) { context.logger.warn(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' + 'output above and fix these issues manually.'); } } //# sourceMappingURL=index.js.map