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

15 lines
549 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.getFileContent = getFileContent;
function getFileContent(tree, path) {
const fileEntry = tree.get(path);
if (!fileEntry) {
throw new Error(`The file (${path}) does not exist.`);
}
return fileEntry.content.toString();
}
//# sourceMappingURL=get-file-content.js.map