Skip to content

Commit b0ed253

Browse files
committed
fix: change ts compiler options
1 parent 026a781 commit b0ed253

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/cli.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ export const run = (args: string[]) => {
2323

2424
const config = configs[0];
2525

26-
build(config);
26+
build({
27+
...config,
28+
openapi: {
29+
...config.openapi,
30+
outputFile: argv.output ?? config.openapi?.outputFile,
31+
},
32+
});
2733
};

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ type AllMethods = [${paths.map((_, i) => `Methods${i}`).join(', ')}]`;
3434

3535
const compilerOptions: TJS.CompilerOptions = {
3636
strictNullChecks: true,
37-
rootDir: config.input,
38-
baseUrl: config.input,
37+
rootDir: process.cwd(),
38+
baseUrl: process.cwd(),
3939
// @ts-expect-error dont match ScriptTarget
4040
target: 'ES2022',
4141
};

0 commit comments

Comments
 (0)