-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package-lock.json version not updated correctly #257
Comments
You could ofc inside that pre-commit hook script run that command |
I am interested in this behavior too, could you elaborate on what you mean by "ofc" ? |
That you can do anything you want inside the |
@sdankel setting the following as a pre-commit script is working fine for me. Obviously change the
|
Where do you install child-process for this script? Does the script have to have a package.json? In my opinion, it would be better if the script could be written in bash and executed. |
|
Newer versions of npm require updating package-lock.json in two places, like this:
however, adding
package-lock.json
to theversion-file
property only results in the version being updated on one line:What would be better is if there was a pre-commit hook that runs a bash command (
npm i
in this case) to update the package-lock.json. It looks like the pre-commit hook only accept a js script right now.The text was updated successfully, but these errors were encountered: