diff --git a/packages/cli-generate-http-client/src/commands/GenerateHttpClientCmd.ts b/packages/cli-generate-http-client/src/commands/GenerateHttpClientCmd.ts index cda858b09..569484751 100644 --- a/packages/cli-generate-http-client/src/commands/GenerateHttpClientCmd.ts +++ b/packages/cli-generate-http-client/src/commands/GenerateHttpClientCmd.ts @@ -145,8 +145,7 @@ export class GenerateHttpClientCmd implements CommandProvider { .replace("requestParams.headers.put = {};", "") .replace("(this.instance.defaults.headers || {})", "((this.instance.defaults.headers || {}) as any)"); - console.log(`${$ctx.output}/${name}`, path.resolve(`${$ctx.output}/${name}`)); - return this.fs.writeFile(`${$ctx.output}/${name}`, file.fileContent, {encoding: "utf8"}); + return this.fs.writeFile(`${$ctx.output}/${name}.ts`, file.fileContent, {encoding: "utf8"}); }); return Promise.all(promises);