Skip to content

Commit 98c5951

Browse files
committed
chore: bump version to 1.0.1 and improve logging behavior in codegen.ts
1 parent 0851f7c commit 98c5951

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinybird-ts",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "LuggaPugga",
55
"description": "A CLI tool that generates a fully typed TypeScript client from your Tinybird pipes. Automatically fetches pipe schemas and creates type-safe methods for each endpoint.",
66
"readme": "README.md",

src/codegen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#!/usr/bin/env node
12
import fs from "node:fs";
23
import { parseArgs } from "node:util";
34

4-
const VERSION = "1.0.0";
5+
const VERSION = "1.0.1";
56

67
const help = `
78
tinybird-ts - Generate TypeScript client from Tinybird pipes
@@ -58,7 +59,8 @@ const DEFAULT_CLIENT = args["default-client"];
5859
const QUIET = args.quiet;
5960

6061
function log(...messages: unknown[]) {
61-
if (!QUIET) console.log(...messages);
62+
if (QUIET || messages.length === 0) return;
63+
console.log(...messages);
6264
}
6365

6466
if (!TINYBIRD_TOKEN || !TINYBIRD_API_URL) {

0 commit comments

Comments
 (0)