@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
17 lines • 662 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateProject = CreateProject;
const utilities_1 = require("@rxap/utilities");
const ts_morph_1 = require("ts-morph");
function CreateProject(options = {}) {
return new ts_morph_1.Project((0, utilities_1.deepMerge)({
manipulationSettings: {
indentationText: ts_morph_1.IndentationText.TwoSpaces,
quoteKind: ts_morph_1.QuoteKind.Single,
newLineKind: ts_morph_1.NewLineKind.LineFeed,
useTrailingCommas: true,
},
useInMemoryFileSystem: true,
}, options));
}
//# sourceMappingURL=create-project.js.map