styfle / packagephobia

⚖️ Find the cost of adding a new dependency to your project
https://packagephobia.com
MIT License
2.14k stars 45 forks source link

fix: omit peer dependencies #1028

Closed styfle closed 1 year ago

styfle commented 1 year ago

Back when Package Phobia first came out in 2018, it used npm@5 to install dependencies and measure the size. That was later upgrade to npm@6 with little behavior changed.

Then upgrading node caused problems with the old version of npm so Package Phobia switched to yarn@2 and later yarn@3 which both omit peer dependencies by default.

Recently, Package Phobia switched to npm@10 which will automatically install peer dependencies.

This PR will change the behavior back to omit peer dependencies.

vercel[bot] commented 1 year ago

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

Name Status Preview Updated (UTC)
packagephobia ✅ Ready (Inspect) Visit Preview Dec 1, 2023 5:49pm