Hacker News
new
past
comments
ask
show
jobs
points
by
king_zee
3 hours ago
|
comments
by
t-sauer
2 hours ago
|
next
[-]
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-...
reply
by
mihaelm
3 hours ago
|
prev
|
next
[-]
I just use `pnpm` and set up a liberal `minimumReleaseAge`:
https://pnpm.io/settings#minimumreleaseage
Thankfully, it's on by default since v11.
reply
by
sync
2 hours ago
|
prev
|
next
[-]
If using straight npm (v11.10.0 or higher), you can just add to .npmrc in the project root:
min-release-age=5
reply
by
sourcegrift
3 hours ago
|
prev
|
[-]
Yarn 4 can automate this
reply
by
vinnymac
2 hours ago
|
parent
|
[-]
In case others are unaware, you just have to set
https://yarnpkg.com/configuration/yarnrc#npmMinimalAgeGate
to the value you want. It defaults to 1 day.
reply