Files
pyrofetes-frontend/node_modules/ng-zorro-antd/schematics/utils/apply-changes.js
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

18 lines
713 B
JavaScript

"use strict";
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyChangesToFile = applyChangesToFile;
const change_1 = require("@schematics/angular/utility/change");
function applyChangesToFile(host, filePath, changes) {
const recorder = host.beginUpdate(filePath);
changes.forEach((change) => {
if (change instanceof change_1.InsertChange) {
recorder.insertLeft(change.pos, change.toAdd);
}
});
host.commitUpdate(recorder);
}
//# sourceMappingURL=apply-changes.js.map