The headline is misleading, there are as you already told different use cases.
c l i c k b a i t
There is only so much information that can be contained in the title. Do you have suggestions how to rephrase the title?
"When not to use package-lock.json"
Thank you for the suggestion. I have updated article title.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.