Skip to content

Conversation

@petyosi
Copy link
Collaborator

@petyosi petyosi commented Oct 14, 2025

Fixes #70
Fixes #69

@petyosi petyosi requested a review from Copilot October 14, 2025 12:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds default export support to all packages in the monorepo, allowing developers to use import logfire from 'logfire' as equivalent to import * as logfire from 'logfire'. The changes include explicit construction of default export objects and some test command updates.

  • Adds default export objects to index files for all packages
  • Updates test commands to use vitest run instead of vitest for CI compatibility
  • Fixes test expectations to match the actual behavior after changes

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/logfire/src/index.ts Creates default export object with all named exports
packages/logfire-cf-workers/src/index.ts Adds default export and removes debug console.log
packages/logfire-browser/src/index.ts Creates default export object with all named exports
packages/logfire-api/src/index.ts Adds default export and refactors imports/exports
packages/*/package.json Updates test commands for CI compatibility
packages/logfire-cf-workers/src/exportTailEventsToLogfire.ts Exports TraceItem interface
packages/logfire-api/src/index.test.ts Updates test expectations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@petyosi petyosi merged commit 03df4fb into main Oct 14, 2025
2 checks passed
@petyosi petyosi deleted the petyo/default-export-support branch October 14, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

import * as logfire from 'logfire' should "just work" Remove console log

2 participants