File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
packages/rtk-query-codegen-openapi/src Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs' ;
2
2
import { createRequire } from 'node:module' ;
3
3
import path from 'node:path' ;
4
+ import { generateApi } from './generate' ;
4
5
import type { CommonOptions , ConfigFile , GenerationOptions , OutputFileOptions } from './types' ;
5
6
import { isValidUrl , prettify } from './utils' ;
6
7
export type { ConfigFile } from './types' ;
@@ -15,7 +16,6 @@ export async function generateEndpoints(options: GenerationOptions): Promise<str
15
16
: path . resolve ( process . cwd ( ) , schemaLocation ) ;
16
17
17
18
const sourceCode = await enforceOazapftsTsVersion ( async ( ) => {
18
- const { generateApi } = await import ( './generate.js' ) ;
19
19
return generateApi ( schemaAbsPath , options ) ;
20
20
} ) ;
21
21
const { outputFile } = options ;
You can’t perform that action at this time.
0 commit comments