sherif
sherif copied to clipboard
feat?: `--fix` should run install command if fixing version missmatches
when running --fix and fixing a version, I believe sherif should also run the install command for the package manager at use:
Forgot to reply to this, sorry. I'm not 100% convinced about automatically running <packageManager> install after autofixing. What if it fails to install, should Sherif revert the changes?
Maybe a prompt to let the user choose himself?
Would you like Sherif to run `pnpm install` (Y/n)
No please don’t run install. Which package manager should it use? And it also complicates the possibility to run fix in non-interactive mode as well #68
We could add a --install flag that when used along --fix, also runs the install command of your package manager.
Ok, @QuiiBz you convinced me that it’s actually a good idea to run install afterwards to update the lockfile as well.
Now released in https://github.com/QuiiBz/sherif/releases/tag/v1.0.0!