@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
21 lines • 654 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.modifyTsConfigs = modifyTsConfigs;
const tslib_1 = require("tslib");
const ng_morph_1 = require("ng-morph");
const path_1 = tslib_1.__importDefault(require("path"));
/**
*
* @param tree
* @param filePath
* @param modifier
*/
function modifyTsConfigs(tree, filePath, modifier) {
const json = new ng_morph_1.JSONFile(tree, filePath);
const ext = json.get(['extends']);
modifier(json);
if (ext) {
modifyTsConfigs(tree, path_1.default.join(path_1.default.dirname(filePath), ext), modifier);
}
}
//# sourceMappingURL=modify-ts-configs.js.map