Closed miraclx closed 6 months ago
Thanks for this @miraclx.
I modified your code for using debug-logfmt instead of log since it could be controlled via environment variable (added into docs too).
Also I noted we can drop a filesystem operation so I implemented the changes and dropped some unnecessary lines to make the script easier to maintain 🙂
Branched off #191
Swaps out
simple-get
forfetch
, and uses streams instead of buffering the whole binary in memory.Tested with
npm
,yarn
andpnpm
, and they all hidestd{out,err}
logs from post-install scripts on install unless the run fails. You can confirm this as well.