Chris Cook @zirkelc.dev · Dec 11

If you are working with multiple git branches, you may have outdated dependencies because node modules are git ignored. A git diff for the lock file can check if npm dependencies were changed in a branch. Here is a simple post-merge git hook to automatically run npm install on git switch.

1 likes 1 replies

?

Replies

Chris Cook · Dec 11

I've written a post about this on @dev.to a few years ago dev.to/zirkelc/auto...