Skip to content

Commit 0fadc79

Browse files
ryandensclaude
andauthored
Set Renovate rangeStrategy to bump (#261)
## Problem Renovate has been opening dependency PRs that **break the build**. The default `rangeStrategy` (`"auto"`, via `config:recommended`) leaves `package.json` version ranges untouched whenever the new version is still within the existing range — it only updates the lockfiles. But it rewrote the lockfile entries to new specs (e.g. `prettier@^3.8.4`, `react@^19.2.7`) that **no longer matched** the `package.json` constraints (`^3.2.5`, `^19.0.0`). The result: `yarn install --frozen-lockfile` (in the `test-deploy` CI job) couldn't find a lockfile entry matching the declared constraint and failed → build broken. This bit #257 (prettier) and #251 (react monorepo), each of which had to be fixed by hand. ## Fix Set `"rangeStrategy": "bump"`. Renovate now bumps the `package.json` range to the new version **and** regenerates the lockfiles together, keeping the manifest and lockfiles consistent — the same thing we were doing manually. ## Note (follow-up, not in this PR) The repo carries **both** `yarn.lock` and `package-lock.json`; CI only uses yarn. The redundant `package-lock.json` is extra surface for these desyncs. Worth removing in a separate change so only one lockfile is maintained. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d89871f commit 0fadc79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["config:recommended", ":dependencyDashboard"],
4+
"rangeStrategy": "bump",
45
"prHourlyLimit": 2,
56
"prConcurrentLimit": 3,
67
"timezone": "America/New_York",

0 commit comments

Comments
 (0)