Skip to content

Commit

Permalink
fix: change ts compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Aug 15, 2024
1 parent 026a781 commit b0ed253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ export const run = (args: string[]) => {

const config = configs[0];

build(config);
build({
...config,
openapi: {
...config.openapi,
outputFile: argv.output ?? config.openapi?.outputFile,
},
});
};
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type AllMethods = [${paths.map((_, i) => `Methods${i}`).join(', ')}]`;

const compilerOptions: TJS.CompilerOptions = {
strictNullChecks: true,
rootDir: config.input,
baseUrl: config.input,
rootDir: process.cwd(),
baseUrl: process.cwd(),
// @ts-expect-error dont match ScriptTarget
target: 'ES2022',
};
Expand Down

0 comments on commit b0ed253

Please sign in to comment.