natemoo-re / astro-icon

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

Read `package.json` to determine installed icon packs #175

Closed natemoo-re closed 6 months ago

natemoo-re commented 6 months ago

Instead of using npm ls to get the installed packages, we just read package.json directly. Although this has the drawback of not supporting nested dependencies, it does sidestep a number of issues when NODE_ENV=production or using different package managers with their own heuristics for the list command.

Fixes #165, fixes #171, fixes #173

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 02ddbf9ae95fee8a904aad6062e14f2bdb2291d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | astro-icon | Patch |

Not sure what this means? Click here to learn what changesets are.

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

vercel[bot] commented 6 months 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 Dec 28, 2023 5:16pm
astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2023 5:16pm