Skip to content

Commit b0af9a9

Browse files
fix(scaffold): ignore vitest major bumps in new mcp-servers
A vitest 4 lockfile rewrite already broke npm ci on an existing server; new repos should ship the same ignore. Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 947ceb3 commit b0af9a9

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.0
1+
1.19.1

‎scaffold/templates/dependabot.yml.j2‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ updates:
2222
# of the supported runtimes.
2323
- dependency-name: "@types/node"
2424
versions: [">=23"]
25+
# Hold vitest 3.x. A 4.x bump rewrote the lockfile without optional
26+
# esbuild platform packages, so npm ci failed. Major upgrades stay manual.
27+
- dependency-name: "vitest"
28+
update-types: ["version-update:semver-major"]
2529
{% endif %}
2630
{% if has_mcp %}
2731
- package-ecosystem: "pip"

‎tests/test_scaffold_born_green.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ def test_deployed_service_shape(rendered):
338338
assert "gh workflow run publish.yml" in (
339339
library / ".github" / "workflows" / "release.yml"
340340
).read_text(encoding="utf-8")
341+
dep = (library / ".github" / "dependabot.yml").read_text(encoding="utf-8")
342+
assert 'dependency-name: "vitest"' in dep
343+
assert "version-update:semver-major" in dep
341344

342345

343346
def _make_temp_registry_root(tmp_path: Path) -> Path:

0 commit comments

Comments
 (0)