project = new Project({ manipulationSettings: { indentationText: IndentationText.TwoSpaces, }, }); const path = `${outputPath}/repository/${name}.repository.ts`; const sourceFile = project.createSourceFile(path, {}, { overwrite: false }); sourceFile.addClass({ name: `${className}Repository`, isExported: true, }); await project.save();