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

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

initial commit

  • Property mode set to 100644
File size: 1017 bytes
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 });
10exports.addTsLib = void 0;
11const dependencies_1 = require("../../utility/dependencies");
12const latest_versions_1 = require("../../utility/latest-versions");
13function addTsLib() {
14 return (host) => {
15 const tslibDep = dependencies_1.getPackageJsonDependency(host, 'tslib');
16 if (tslibDep && tslibDep.type !== dependencies_1.NodeDependencyType.Default) {
17 dependencies_1.removePackageJsonDependency(host, 'tslib');
18 }
19 dependencies_1.addPackageJsonDependency(host, {
20 name: 'tslib',
21 version: latest_versions_1.latestVersions['tslib'],
22 type: dependencies_1.NodeDependencyType.Default,
23 overwrite: true,
24 });
25 };
26}
27exports.addTsLib = addTsLib;
Note: See TracBrowser for help on using the repository browser.