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
|
Rev | Line | |
---|
[6a3a178] | 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 | */
|
---|
| 9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 10 | exports.addTsLib = void 0;
|
---|
| 11 | const dependencies_1 = require("../../utility/dependencies");
|
---|
| 12 | const latest_versions_1 = require("../../utility/latest-versions");
|
---|
| 13 | function 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 | }
|
---|
| 27 | exports.addTsLib = addTsLib;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.