@wilfredh Hm.. what happens if you change the package.json file while you have a changed file in node_modules? If it's a direct dependency, overwriting the changes seems warranted, but what about changes in transitive dependencies?
..I guess the correct thing to do is to detect changes and show a diff to the user / ask them to confirm / store the diff in a special folder, but all of that comes at the cost of added package manager complexity, so not sure if someone'd implement it 😅😅
Bojidar Marinov@bojidar_bg@mastodon.social