Skip to content

Commit 6e5249f

Browse files
committed
docs: add changesets
1 parent 042ec36 commit 6e5249f

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/gentle-rivers-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**cli**: print file count and generator speed

packages/openapi-python/src/createClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function createClient({
183183
? `./${path.relative(process.env.INIT_CWD, config.output.path)}`
184184
: config.output.path;
185185
console.log(
186-
`${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} files in ${ms(totalMs)})`)}`,
186+
`${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} ${fileCount === 1 ? 'file' : 'files'} in ${ms(totalMs)})`)}`,
187187
);
188188
}
189189
}

packages/openapi-ts/src/createClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function createClient({
183183
? `./${path.relative(process.env.INIT_CWD, config.output.path)}`
184184
: config.output.path;
185185
console.log(
186-
`${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} files in ${ms(totalMs)})`)}`,
186+
`${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} ${fileCount === 1 ? 'file' : 'files'} in ${ms(totalMs)})`)}`,
187187
);
188188
}
189189
}

0 commit comments

Comments
 (0)