Skip to content

Question: how to suppress commit of package-lock.json? #1936

Answered by travi
padamstx asked this question in Configuration
Discussion options

You must be logged in to vote

you have a couple of options:

if you truly do not want to use a lockfile for the project, the recommended way would be to actually disable npm from generating one in the first place by configuring package-lock=false in your .npmrc file.

alternatively, you can configure assets for the @semantic-release/git plugin. as you can see from the docs of that plugin, package-lock.json is included in the default list.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@padamstx
Comment options

Answer selected by padamstx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1935 on May 13, 2021 21:56.