diff --git a/.changeset/loud-tigers-draw.md b/.changeset/loud-tigers-draw.md new file mode 100644 index 000000000..80031cf54 --- /dev/null +++ b/.changeset/loud-tigers-draw.md @@ -0,0 +1,5 @@ +--- +"@astrojs/telemetry": patch +--- + +fix "cannot exit astro" bug diff --git a/packages/telemetry/src/index.ts b/packages/telemetry/src/index.ts index ef7157dfc..a11f4ae0e 100644 --- a/packages/telemetry/src/index.ts +++ b/packages/telemetry/src/index.ts @@ -49,8 +49,9 @@ export class AstroTelemetry { } constructor(private opts: AstroTelemetryOptions) { - // When the process exits, flush any queued promises - process.on('SIGINT', () => this.flush()); + // TODO: When the process exits, flush any queued promises + // This line caused a "cannot exist astro" error, needs to be revisited. + // process.on('SIGINT', () => this.flush()); } // Util to get value from config or set it if missing