Skip to content

Conversation

@jackchuka
Copy link
Member

@jackchuka jackchuka commented Aug 15, 2025

Problem

ESM export was not properly setup.

Error: Failed to resolve entry for package "@tailor-platform/function-logger". The package may have incorrect main/module/exports specified in its package.json.

Description

This pull request updates the package configuration for the @tailor-platform/function-logger package to improve compatibility and module resolution. The most important changes are grouped below:

Versioning and metadata updates:

  • Bumped the package version from 0.1.0 to 0.1.1 to reflect these changes.

Module resolution and exports improvements:

  • Added the main field pointing to ./dist/index.js to clarify the entry point for CommonJS consumers.
  • Introduced the exports field to explicitly define entry points for both types and default exports, improving compatibility with modern bundlers and Node.js module resolution.

@jackchuka jackchuka added the bug Something isn't working label Aug 15, 2025
@jackchuka jackchuka marked this pull request as ready for review August 15, 2025 11:24
@jackchuka jackchuka requested a review from a team as a code owner August 15, 2025 11:24
@jackchuka jackchuka merged commit d72eeec into main Aug 15, 2025
6 checks passed
@jackchuka jackchuka deleted the fix/logger/2025-08-15-package branch August 15, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants