UNPKG

@o3r/core

Version:
44 lines 1.77 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateV10_0 = exports.updateV8_2 = void 0; const schematics_1 = require("@angular-devkit/schematics"); const schematics_2 = require("@o3r/schematics"); const configuration_1 = require("./v10.0/configuration"); const import_map_1 = require("./v8.2/import-map"); /** * Update of Otter library V8.2 */ // eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name function updateV8_2Fn() { return (tree, context) => { const updateRules = [ (0, schematics_2.updateImports)(import_map_1.mapImportAsyncStore) ]; return (0, schematics_1.chain)(updateRules)(tree, context); }; } /** * Update of Otter library V8.2 */ // eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name exports.updateV8_2 = (0, schematics_2.createOtterSchematic)(updateV8_2Fn); /** * Update of Otter library V10.0 */ // eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name function updateV10_0Fn() { return (tree, context) => { const updateRules = [ // Some of these imports were missed in the generators of v9, so it's easier to just run the update again (0, schematics_2.updateImports)(import_map_1.mapImportAsyncStore), configuration_1.updateConfiguration ]; return (0, schematics_1.chain)(updateRules)(tree, context); }; } /** * Update of Otter library V10.0 */ // eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name exports.updateV10_0 = (0, schematics_2.createOtterSchematic)(updateV10_0Fn); //# sourceMappingURL=index.js.map