AI / RenovateBot Interview Questions
How does Renovate handle npm lockfiles and what is lockFileMaintenance?
Renovate distinguishes between the manifest (package.json) and the lockfile. lockFileMaintenance periodically regenerates the entire lockfile to update transitive dependencies.
{ "lockFileMaintenance": { "enabled": true, "schedule": ["before 5am on monday"] }, "packageRules": [ { "matchManagers": ["npm"], "rangeStrategy": "pin" } ] }
| Scenario | package.json changed? | Lockfile changed? |
|---|---|---|
| rangeStrategy: pin (patch update) | Yes — 1.2.x → 1.3.0 | Yes |
| rangeStrategy: update-lockfile | No — range unchanged | Yes |
| Lock file maintenance run | No | Yes — full regeneration |
| New major dep (out of range) | Yes — range updated | Yes |
More Related questions...