Skip to content

Conversation

rdlabo
Copy link
Contributor

@rdlabo rdlabo commented Jun 2, 2025

This change adds ./dist/ionicons.json to the package exports map to allow consumers to import the JSON file directly. This is useful for tools or libraries that rely on the raw icon metadata.

Without this, importing ionicons/dist/ionicons.json throws an ERR_PACKAGE_PATH_NOT_EXPORTED error due to the "exports" field restrictions.

This update ensures compatibility with modern module resolution and prevents runtime errors when accessing this file.

rdlabo added a commit to rdlabo-team/ionic-angular-collect-icons that referenced this pull request Jun 2, 2025
@rdlabo
Copy link
Contributor Author

rdlabo commented Jun 2, 2025

ionicons/dist/ionicons.json was a very useful file for programmatically checking all Ionicons, so I would really appreciate it if you could consider bringing it back.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@christian-bromann christian-bromann merged commit 505a7ca into ionic-team:main Jun 2, 2025
6 checks passed
@rdlabo rdlabo deleted the patch-2 branch June 2, 2025 16:17
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