We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94376a6 commit c3b8c4fCopy full SHA for c3b8c4f
1 file changed
packages/openapi-code-generator/src/index.ts
@@ -76,6 +76,15 @@ export async function generate(
76
allowUnusedImports: config.allowUnusedImports,
77
})
78
79
+ if (
80
+ config.tsIsEsmProject &&
81
+ !config.tsCompilerOptions.rewriteRelativeImportExtensions
82
+ ) {
83
+ logger.warn(
84
+ `Generating in ESM mode, but typescript compiler option "rewriteRelativeImportExtensions" is not set to true. This may result in broken imports.`,
85
+ )
86
+ }
87
+
88
await generator.run({
89
input,
90
emitter,
0 commit comments