In my project, I maintain support for both npm and yarn.
At present, whenever I update file package.json, I conduct the following process:
- Delete file
package-lock.json - Delete file
yarn.lock - Delete folder
node_modules - Run
npm install - Delete folder
node_modules - Run
yarn install
This process seems to guarantee deterministic results for both file package-lock.json and file yarn.lock.
But on the other hand, it is a little "tedious" to conduct it every time I want to update my project dependencies.
Is there a simple process that I can take instead?
I have read through this answer; it covers this topic pretty well, but not the simplification that I am looking for.
Thank you for your help.