13 ms·
Stick around in any programming ecosystem long enough, and you live long enough to see strategy, taste, and "discovery" come full circle. We had make, then pack
by andrew_ 5y ago
Stick around in any programming ecosystem long enough, and you live long enough to see strategy, taste, and "discovery" come full circle. We had make, then package.json "scripts," then grunt, then gulp, then the trend shifted back towards package.json "scripts." (Note: Using "scripts" to differentiate the package.json property versus the generic word use)
I like that the author isn't being authoritative, but there could be some additional due diligence. I ran the make-is-faster loose benchmark via PNPM and runtime was 0m0.022s for make and 0m0.012s for PNPM. If I care about those 10ms, PNPM is my horse. Yarn is a glacier compared to PNPM.
Another thing I would've liked to see comment on is the automatic pre and post paradigm that package.json "scripts" affords. The big three package managers all support pre and post, and it makes arranging "scripts" a breeze, it breaks down dependent steps into separate console output, and is generally easy to organize imho.
All in all a nice write up for folks who might not really like package.json "scripts" to begin with, or for those who'd rather not gain more granular insight into how "scripts" works, but I don't see this being the nail in the coffin case against them.
- crate_barre 5y agoWhat in god’s name is pnpm?
- andrew_ 5y agohttps://pnpm.io/ https://pnpm.io/ it ships with Node.js along side npm and yarn these days, has for about a year I believe.
- Guillaume86 5y agoWhat's your source on pnpm/yarn shipping with node? It doesn't in my experience.
- p8123 5y ago`corepack enable` https://nodejs.org/api/corepack.html https://nodejs.org/api/corepack.html
- mhio 5y agoThe caveat here is that the binaries aren't "shipped" with node. `corepack enable` adds shim scripts to node's $PATH to intercept calls to `npm` `yarn` or `pnpm` and downloads the binaries from a URL without much checking along the way. This functionality has had some vocal opposition.
- sigzero 5y agoIt's a replacement for NPM and YARN. Never used it myself. https://pnpm.io/ https://pnpm.io/
- qayxc 5y ago> What in god’s name is pnpm? Take a look: https://pnpm.io https://pnpm.io
- FractalHQ 5y agoI’ve used pnpm religiously for over a year and have seen it being adopted as a golden standard replacement for npm in my circles. Highly recommend it to anyone who works with JavaScript or Typescript!
- progx 5y agoBut why? Ok it is faster and save storage. Is that really a huge problem?
- deleted 5y ago[deleted]