@o3r/configuration
Version:
This module contains configuration-related features such as CMS compatibility, Configuration override, store and debugging. It enables your application runtime configuration and comes with an integrated ng builder to help you generate configurations suppo
32 lines • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateV12_0 = void 0;
const schematics_1 = require("@angular-devkit/schematics");
const schematics_2 = require("@o3r/schematics");
/** Map containing the import and value changes for computeConfigurationName updated to computeItemIdentifier in @o3r/core */
const mapImportsConfigurationName = {
'@o3r/configuration': {
computeConfigurationName: {
newPackage: '@o3r/core',
newValue: 'computeItemIdentifier'
}
}
};
/**
* Update of Otter library V12.0
*/
// eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name
function updateV12_0Fn() {
return (tree, context) => {
const updateRules = [
(0, schematics_2.updateImports)(mapImportsConfigurationName)
];
return (0, schematics_1.chain)(updateRules)(tree, context);
};
}
/**
* Update of Otter configuration V12.0
*/
// eslint-disable-next-line @typescript-eslint/naming-convention -- version in the function name
exports.updateV12_0 = (0, schematics_2.createOtterSchematic)(updateV12_0Fn);
//# sourceMappingURL=index.js.map