Skip to content

Commit a40ba58

Browse files
authored
Merge pull request #1118 from acacode/fix-no-client-again
Fix default value for `no-client` option in `generateCommand` to `false`
2 parents 09c8662 + 00f8995 commit a40ba58

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dark-memes-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Fix default value for `no-client` option in `generateCommand` to `false`.

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const generateCommand = defineCommand({
138138
"no-client": {
139139
type: "boolean",
140140
description: "do not generate an API class",
141-
default: !codeGenBaseConfig.generateClient,
141+
default: false,
142142
},
143143
"enum-names-as-values": {
144144
type: "boolean",

0 commit comments

Comments
 (0)