File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,18 +5,15 @@ import camelcase from 'camelcase';
55import type { OpenAPIV3 } from 'openapi-types' ;
66import toposort from 'toposort' ;
77import {
8- IndentationText ,
98 InterfaceDeclaration ,
9+ Node ,
1010 Project ,
11- QuoteKind ,
12- ScriptTarget ,
11+ Scope ,
1312 StructureKind ,
1413 SyntaxKind ,
1514 TypeAliasDeclaration ,
1615 VariableDeclarationKind ,
1716 Writers ,
18- Scope ,
19- Node ,
2017} from 'ts-morph' ;
2118import { registerTypesFromSchema , schemaToType } from './process-schema.js' ;
2219import { getDependents , pascalCase , wordWrap } from './utils.js' ;
@@ -50,17 +47,7 @@ export async function processOpenApiDocument(
5047 schema : OpenAPIV3 . Document ,
5148 tags ?: string [ ] | undefined ,
5249) {
53- const project = new Project ( {
54- compilerOptions : {
55- target : ScriptTarget . ES2022 ,
56- declaration : true ,
57- } ,
58- manipulationSettings : {
59- quoteKind : QuoteKind . Single ,
60- indentationText : IndentationText . TwoSpaces ,
61- useTrailingCommas : true ,
62- } ,
63- } ) ;
50+ const project = new Project ( ) ;
6451
6552 const commandsFile = project . createSourceFile (
6653 join ( outputDir , 'commands.ts' ) ,
You can’t perform that action at this time.
0 commit comments