[FEATURE] ensure project users install same npm dependencies #894
Labels
enhancement
New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"
Milestone
during mcdev upgrade we install the latest dependencies
however, if you just pull from the repo, mcdev does not force you run that. instead it only enforces using the same mcdev version.
going forward, dependency versions in package.json should be cross checked with versions actually installed to ensure things work smoothly.
how to
From: https://dev.to/zirkelc/automatically-install-npm-dependencies-on-git-pull-bg0
The following file is going to be executed by Husky as post-merge hook.
The file must be saved as post-merge (no .sh extension) inside the .husky folder. I'm running on macOS with zsh as default shell (see shebang #!/bin/zsh) and it's working. However, I didn't test it with bash, so there might be some changes necessary if you run a different shell.
The text was updated successfully, but these errors were encountered: