@rxap/schematics-ts-morph
Version:
This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also in
8 lines • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FindComponentModuleSourceFile = FindComponentModuleSourceFile;
const schematics_utilities_1 = require("@rxap/schematics-utilities");
function FindComponentModuleSourceFile(name, project) {
return project.getSourceFileOrThrow(sourceFile => !!sourceFile.getClass((0, schematics_utilities_1.classify)(name) + 'ComponentModule'));
}
//# sourceMappingURL=find-component-module-source-file.js.map