Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tiagod
· 1y ago · 0 comments
Or use pnpm. The latest versions have all dependency lifecycle scripts ignored by default. You must whitelist each package.
Comments
[–]
chrisweekly
1y ago
pnpm is not only more secure, it's also faster, more efficient wrt disk usage, and more deterministic by design.
[–]
norskeld
1y ago
It also has catalogs feature for defining versions or version ranges as reusable constants that you can reference in workspace packages. It was almost the only reason (besides speed) I switched a year ago from npm and never looked back.
[–]
mirekrusin
1y ago
workspace protocol in monorepo is also great, we're using it a lot.
[–]
dvfjsdhgfv
1y ago
OK so it seems too good now, what are the downsides?
[–]
trw55
1y ago
Same for bun, which I find faster than pnpm
[–]
silverwind
1y ago
Bun still executes the scripts of a certain hardcoded list of 500 packages, it's not exactly the same.
[–]
jim201
1y ago
This is the way. It’s a pain to manually disable the checks, but certainly better than becoming victim to an attack like this.