natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
1.08k stars 60 forks source link

fix: prevent missing local collection from failing build #120

Closed stramel closed 1 year ago

stramel commented 1 year ago

The importDirectory function will throw if the passed dir is not present. This will catch any error from the local collection generation and warn about it. This should be the only thing that triggers this catch.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: a7507653f8716c20843727a80961edae328d0872

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 28, 2023 7:46pm
astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 28, 2023 7:46pm
stramel commented 1 year ago

@djmtype This is the fix for the issue you ran into.