I developed a tool which can generate a new package-lock.json file base on the original one.
With this new file, you can have an identical and smaller installation.
The equivalence can be verified by the output of npm ls --all for the installations with the original and new files.
For json-server 0.17.3, the number of installed package-versions decreases from 1052 to 1008, and the size of node_modules decreases from 155MB to 151MB.
I am going to release this tool after obtaining some feedbacks. Thank you!
Thank you for the PR. I didn't have the time to review it back then, sorry.
I've started work on v1 on a different branch, so I'm going to close this PR.
Thanks again.
I developed a tool which can generate a new
package-lock.json
file base on the original one. With this new file, you can have an identical and smaller installation.The equivalence can be verified by the output of
npm ls --all
for the installations with the original and new files.For json-server 0.17.3, the number of installed package-versions decreases from 1052 to 1008, and the size of
node_modules
decreases from 155MB to 151MB.I am going to release this tool after obtaining some feedbacks. Thank you!