typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
73.05k stars 7.02k forks source link

refactor: an identical and smaller installation of 0.17.3 #1442

Closed jxshin closed 10 months ago

jxshin commented 1 year ago

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!

typicode commented 10 months ago

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.