Skip to content

Commit ae37a0d

Browse files
Harden Dependabot config for the CommonJS ncc build (#622)
- Ignore typescript >=7: the native compiler rewrite. ts-jest declares a peer of "typescript >=4.3 <7", so TS 7 fails npm install with an ERESOLVE conflict. - Ignore @actions/io >=3: 3.x is ESM-only, which the CommonJS ncc bundle cannot require(). Stay on 2.x (CommonJS, Node 24 support) until the action moves to ESM. - Limit the dev-dependencies group to minor and patch updates so a breaking major no longer poisons the whole grouped PR; majors now arrive as isolated, reviewable PRs. - Label npm dependency PRs with "dependencies". Production dependencies are intentionally left ungrouped so each runtime bump is reviewed individually and one breaking major cannot block the others. Co-authored-by: Maddison Das <272712104+MaddyMicrosoft@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 43c6847 commit ae37a0d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,20 @@ updates:
55
schedule:
66
interval: "monthly"
77
open-pull-requests-limit: 5
8+
labels: ["dependencies"]
89
groups:
910
dev-dependencies:
1011
dependency-type: "development"
12+
update-types: ["minor", "patch"]
13+
ignore:
14+
# ts-jest currently supports "typescript >=4.3 <7", so cap TypeScript
15+
# below 7 (the native compiler rewrite) until ts-jest supports it.
16+
- dependency-name: "typescript"
17+
versions: [">=7"]
18+
# @actions/io 3.x is ESM-only, which breaks the CommonJS ncc build.
19+
# Stay on 2.x (CommonJS, Node 24 support) until the action moves to ESM.
20+
- dependency-name: "@actions/io"
21+
versions: [">=3"]
1122

1223
- package-ecosystem: "github-actions"
1324
directory: "/"

0 commit comments

Comments
 (0)