Renovate drops dev=true for npm transitive dependency #33745
Unanswered
kisaiev
asked this question in
Request Help
Replies: 1 comment 5 replies
-
Renovate is not doing this itself - npm is doing this. Unless you think renovate is running an incorrect npm command, there's nothing renovate can do about this. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
self-hosted on GitHub Enterprise, v39.120.3
Please tell us more about your question or problem
Overview
v22.13.1
10.9.2
v39.120.3
Problem
Renovate updates
package-lock.json
file for thenpm
transitive dev dependency by moving it underdependencies
and dropping"dev": true
flag.Steps to reproduce
Node.js project has a single dev dependency:
@semantic-release/npm
, which on its own depends onnpm
. We intentionally start with the outdatednpm
, so Renovate could pick up the change.After the initial installation
package-lock.json
looks something like this:When Renovate picks up the change for
npm
it moves it under thedependencies
and drops the"dev": true
flag for the lock file:Effect on consumer
This change seems to have a minimum effect on the end user, since
npm
fixes produced by Renovate inaccuracy during the installation.Both:
and
will revert the unwanted change. While
npm ci --omit=dev
does it silently,npm prune
will mutate thepackage-lock.json
.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions