Pin @types/node to the runtime major in dependabot.yml (stop wrong-direction major PRs) #3
Labels
No labels
bug
ci
dependencies
docs
documentation
duplicate
enhancement
good first issue
help wanted
infra
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/rustdesk-server#3
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a scoped Dependabot
ignorefor@types/nodeversion-update:semver-majorso Dependabot stops proposing wrong-direction major bumps (e.g. → 26), while minor/patch within the current major keep flowing.Why
@types/nodemust track the runtime Node major, not the newest npm release. A too-new types major still compiles, so the bump passes CI while describing APIs absent at runtime — the gate doesn't catch it, and Dependabot can't see the runtime. This repo just generated #1 (@types/node25 → 26). This is the sanctioned exception to the handbook no-blanket-ignore rule (engineering-handbookgithub-standardsPinning Principle).Target major for this repo
This is a pure-CDK infra repo (RustDesk Server Pro on EC2; the only Node "runtime" is the
cdk synth/tscprocess in CI). So pin@types/nodeto the CI/synth Node major. It's currently on^25, which is an odd/non-LTS Node major — align it down to the even-LTS Node CI runs.node-versionand pin@types/nodeto that major (recommended^24).Change
Add an
ignoreto thenpmupdatesentry (directory: /):Tasks
ignoreblock to the npm entry in.github/dependabot.yml@types/nodeinpackage.jsonto the CI Node major (align down from25→^24) + updatepackage-lock.jsontsc && cdk synthare still greenReference
seahaven-door-unlock-api/.github/dependabot.ymlimplements this pattern (pinned^22).@openswe review and implement the fixes for this issue. When finished, mark a PR ready for review, request review from me. Ensure PR body has "closes issue" notes
Implemented in #4. Summary:
Ready for review: https://github.com/Sea-Haven-Industries/rustdesk-server/pull/4