27 lines
976 B
JavaScript
Executable File
27 lines
976 B
JavaScript
Executable File
"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TargetVersion = void 0;
|
|
exports.getAllVersionNames = getAllVersionNames;
|
|
/** Possible versions that can be automatically migrated by `ng update`. */
|
|
// tslint:disable-next-line:prefer-const-enum
|
|
var TargetVersion;
|
|
(function (TargetVersion) {
|
|
TargetVersion["V20"] = "version 20";
|
|
})(TargetVersion || (exports.TargetVersion = TargetVersion = {}));
|
|
/**
|
|
* Returns all versions that are supported by "ng update". The versions are determined
|
|
* based on the "TargetVersion" enum.
|
|
*/
|
|
function getAllVersionNames() {
|
|
return Object.keys(TargetVersion).filter(enumValue => {
|
|
return typeof TargetVersion[enumValue] === 'string';
|
|
});
|
|
}
|
|
//# sourceMappingURL=target-version.js.map
|