()
| 79 | }; |
| 80 | |
| 81 | function main() { |
| 82 | try { |
| 83 | ensureTinybirdCli(); |
| 84 | ensureTinybirdLogin(); |
| 85 | const auth = resolveTinybirdAuth(); |
| 86 | syncProjectTinyb(); |
| 87 | deployTinybirdProject(auth); |
| 88 | console.log("✅ Tinybird analytics resources are ready."); |
| 89 | } catch (error) { |
| 90 | console.error( |
| 91 | "❌ Failed to set up Tinybird analytics:", |
| 92 | error instanceof Error ? error.message : error, |
| 93 | ); |
| 94 | process.exit(1); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | main(); |
no test coverage detected