Skip to content

Conversation

@deflis
Copy link
Owner

@deflis deflis commented May 2, 2025

This pull request updates the package.json file to refine the module export structure, improving compatibility and clarity for different environments (Node.js, browser, and utilities). The changes reorganize and expand the export mappings to ensure proper handling of import, require, and types fields.

Updates to export mappings in package.json:

  • Node.js-specific exports: Introduced a node field under the main export to explicitly define import and require paths for Node.js environments.
  • Browser-specific exports: Reorganized the browser field to remove the types field and ensure require and import paths are clearly defined.
  • Utility exports: Added a new ./utils/* export mapping to provide explicit paths for types, import, require, and default for utility files.
  • Default export reordering: Moved the default field to the bottom of the main export mapping for better readability and logical grouping.
  • General cleanup: Removed redundant or misplaced fields, such as duplicate types entries, and ensured consistency across all export mappings.

@github-actions
Copy link

github-actions bot commented May 2, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 79.02% 697 / 882
🔵 Statements 79.02% 697 / 882
🔵 Functions 72.09% 62 / 86
🔵 Branches 92.72% 102 / 110
File CoverageNo changed files found.
Generated in workflow #168 for commit 8025668 by the Vitest Coverage Report Action

@deflis deflis merged commit 0df3e28 into master May 2, 2025
4 checks passed
@deflis deflis deleted the fix-exports branch May 2, 2025 19:37
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.

2 participants