Skip to content

Commit b870bf4

Browse files
authored
Merge pull request #1108 from acacode/fix-no-client
Fix default value for `no-client` argument in command configuration
2 parents 49be7e1 + 1e3b70e commit b870bf4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/easy-paths-check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"swagger-typescript-api": patch
33
---
44

5-
Fix generateClient logic to exclude only 'no-client' argument.
5+
Fix generateClient logic to exclude only `no-client` argument.

.changeset/five-moles-wonder.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` argument in command configuration.

index.ts

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

0 commit comments

Comments
 (0)