Skip to content

fix(): export ionicons.json in package exports#1456

Merged
christian-bromann merged 1 commit into
ionic-team:mainfrom
rdlabo:patch-2
Jun 2, 2025
Merged

fix(): export ionicons.json in package exports#1456
christian-bromann merged 1 commit into
ionic-team:mainfrom
rdlabo:patch-2

Conversation

@rdlabo

@rdlabo rdlabo commented Jun 2, 2025

Copy link
Copy Markdown
Contributor

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

rdlabo commented Jun 2, 2025

Copy link
Copy Markdown
Contributor Author

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.

@christian-bromann christian-bromann left a comment

Copy link
Copy Markdown
Contributor

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