source: trip-planner-front/node_modules/@schematics/angular/migrations/update-9/index.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.8 KB
Line 
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.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10const schematics_1 = require("@angular-devkit/schematics");
11const tasks_1 = require("@angular-devkit/schematics/tasks");
12const add_tslib_1 = require("./add-tslib");
13const ivy_libraries_1 = require("./ivy-libraries");
14const ngsw_config_1 = require("./ngsw-config");
15const remove_tsickle_1 = require("./remove-tsickle");
16const update_app_tsconfigs_1 = require("./update-app-tsconfigs");
17const update_dependencies_1 = require("./update-dependencies");
18const update_i18n_1 = require("./update-i18n");
19const update_server_main_file_1 = require("./update-server-main-file");
20const update_workspace_config_1 = require("./update-workspace-config");
21function default_1() {
22 return () => {
23 return schematics_1.chain([
24 update_workspace_config_1.updateWorkspaceConfig(),
25 update_i18n_1.updateI18nConfig(),
26 ivy_libraries_1.updateLibraries(),
27 ngsw_config_1.updateNGSWConfig(),
28 update_app_tsconfigs_1.updateApplicationTsConfigs(),
29 update_dependencies_1.updateDependencies(),
30 update_server_main_file_1.updateServerMainFile(),
31 remove_tsickle_1.removeTsickle(),
32 add_tslib_1.addTsLib(),
33 (tree, context) => {
34 const packageChanges = tree.actions.some((a) => a.path.endsWith('/package.json'));
35 if (packageChanges) {
36 context.addTask(new tasks_1.NodePackageInstallTask());
37 }
38 },
39 ]);
40 };
41}
42exports.default = default_1;
Note: See TracBrowser for help on using the repository browser.