News for hackers. Stuff that matters.
Re:The Everything NPM Package by quickthrower2 on Sunday January 07, 2024 @01:22AM (#38899002)
If NPM made some tweaks this might become trivial. Keep a node_modules/packagefiles with all the .zips that you commit to your source control. The expanded files can be kept out as they are now recoverable just using zip!
Re:The Everything NPM Package by firtoz on Sunday January 07, 2024 @01:48AM (#38899109)
Yarn does that in some modes.
Re:The Everything NPM Package by sakjur on Sunday January 07, 2024 @04:40AM (#38899866)
Wouldn’t the opposite be better? I’m not sure you could take advantage of the vast majority of files in the zip files being unchanged if you kept compressed archives.
Re:The Everything NPM Package by quickthrower2 on Sunday January 07, 2024 @05:01AM (#38899944)
Not sure what you mean but typically you don’t need to track changes of libraries to that level. At least not in the context of a repo using those libraries. I am thinking of treating them like binary .dlls.
Re:The Everything NPM Package by sakjur on Sunday January 07, 2024 @07:03AM (#38900538)
Source control is really good at compressing text files as they evolve over time, but isn’t optimized to handle binary assets. Since a single-line patch changes the entire zip archive, you’d risk growing the size of the repository based on the number of patches.
Re:The Everything NPM Package by cxr on Sunday January 07, 2024 @06:16AM (#38900282)
> Keep a node_modules/packagefiles with all the .zips that you commit to your source control. The expanded files can be kept out as they are now recoverable just using zip!

What problem does this solve?