n8n/packages/@n8n/telemetry/bin/catalog.mjs
Filipe Tavares 855c283101
feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 16:09:54 +00:00

8 lines
260 B
JavaScript

import { buildCatalog, formatCatalog, TELEMETRY_EVENT } from '../dist/index.js';
const catalog = buildCatalog(TELEMETRY_EVENT);
const output = process.argv.includes('--json')
? JSON.stringify(catalog, null, 2)
: formatCatalog(catalog);
console.log(output);