lol

prefetch-npm-deps: normalize packuments for deterministic hashes

Fixed-output derivations for npm dependencies fail with hash mismatches when rebuilt on different days. The root cause is that npm registry metadata (packuments) contain volatile fields that change whenever upstream publishes a new version. For example, the TypeScript packument changes daily due to nightly releases, even though the lockfile pins a specific version. The cached packument includes _rev, time, modified, and the full versions list - all of which drift over time. Strip these volatile fields and filter the versions map to only include versions actually referenced in the lockfile. Signed-off-by: Jörg Thalheim <joerg@thalheim.io>


Author mic92.tngl.sh
Date Commit Parent ab89ffc4
+131 -55
3 changed files
+131 -55
3 changed files