@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
10 lines • 638 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FindNestModuleDeclaration = FindNestModuleDeclaration;
const find_nest_module_source_file_1 = require("./find-nest-module-source-file");
const is_nest_module_class_1 = require("./is-nest-module-class");
function FindNestModuleDeclaration(project, directory) {
const sourceFile = (0, find_nest_module_source_file_1.FindNestModuleSourceFile)(project, directory);
return sourceFile === null || sourceFile === void 0 ? void 0 : sourceFile.getClass(is_nest_module_class_1.IsNestModuleClass);
}
//# sourceMappingURL=find-nest-module-declaration.js.map