@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
57 lines (55 loc) • 1.69 kB
JavaScript
"use strict";
/**
* The configuration file for the angular.json file upgrading to Angular 15.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.removes = exports.adds = exports.replaces = void 0;
exports.replaces = {
'"maximumWarning": "2mb"': '"maximumWarning": "4mb"',
'"builder": "@angular-devkit/build-ng-packagr:build"': '"builder": "@angular-devkit/build-angular:ng-packagr"',
'"defaultCollection": "@angular-eslint/schematics"': '"analytics": false'
};
exports.adds = [
{
toBeAdded: '"polyfills": ["zone.js", "zone.js/testing", "zone.js/dist/zone", "@msft-sme/core/polyfills"]',
toBeAddedAfter: '"main": "src/test.ts"',
indent: 12,
keyword: '"polyfills": ["zone.js"'
},
{
toBeAdded: '"polyfills": ["zone.js", "zone.js/testing", "zone.js/dist/zone", "@msft-sme/core/polyfills"]',
toBeAddedAfter: '"codeCoverage": true',
indent: 12,
keyword: '"polyfills": ["zone.js"'
},
{
toBeAdded: '"allowedCommonJsDependencies": ["chart.js"]',
toBeAddedAfter: '"main": "src/main.ts"',
indent: 12,
keyword: '"allowedCommonJsDependencies": ["chart.js"]',
}
];
exports.removes = [
{
key: 'customWebpackConfig',
linesInTotalAfterKey: 4,
exactMatch: false
},
{
key: '"extractCss": true,'
},
{
key: '"polyfills": "src/polyfills.ts",',
toBeRemovedAfter: '"main": "src/test.ts"'
},
{
key: '"main": "src/test.ts",'
},
{
key: '"defaultProject"',
},
{
key: '"analytics": false",'
}
];
//# sourceMappingURL=angular-json-config.js.map