logoalt Hacker News

king_zeetoday at 1:55 PM4 repliesview on HN

I've made it a habit now to use the --before=2026-05-30 flag when installing packages, where it'll pick the version released before the date you specify, I usually pick around 5 days ago


Replies

t-sauertoday at 3:03 PM

If you use npm 11, you can simplify your workflow by setting min-release-age to 5. https://docs.npmjs.com/cli/v11/using-npm/config#min-release-...

mihaelmtoday at 2:43 PM

I just use `pnpm` and set up a liberal `minimumReleaseAge`: https://pnpm.io/settings#minimumreleaseage

Thankfully, it's on by default since v11.

synctoday at 3:01 PM

If using straight npm (v11.10.0 or higher), you can just add to .npmrc in the project root:

min-release-age=5

sourcegrifttoday at 2:11 PM

Yarn 4 can automate this

show 1 reply