UNPKG

@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

16 lines 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TsMorphTransformRule = TsMorphTransformRule; exports.TsMorphNestProjectTransformRule = TsMorphNestProjectTransformRule; exports.TsMorphAngularProjectTransformRule = TsMorphAngularProjectTransformRule; const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph"); function TsMorphTransformRule(sourceRoot, cb, options = {}, projectOptions = {}, filePathFilter) { return tree => (0, workspace_ts_morph_1.TsMorphTransform)(tree, sourceRoot, cb, options, projectOptions, filePathFilter); } function TsMorphNestProjectTransformRule(options, cb, filePath) { return tree => (0, workspace_ts_morph_1.TsMorphNestProjectTransform)(tree, options, cb, filePath); } function TsMorphAngularProjectTransformRule(options, cb, filePath) { return tree => (0, workspace_ts_morph_1.TsMorphAngularProjectTransform)(tree, options, cb, filePath); } //# sourceMappingURL=ts-morph-transform.js.map