ci(dependabot): 忽略 typescript major 版本升级(TS7 工具链未适配)#100
Merged
Conversation
…script-eslint#12518); 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Dependabot 生成的 #99(
typescript6.0.3 → 7.0.2)在 CI 的Lint & Build阶段崩溃,阻塞了feature/1.x.x上的依赖集成流。经排查,该失败并非本仓库代码问题(tsc --noEmit在 7.0.2 下通过),而是工具链与 TypeScript 7.0 的上游不兼容。根因
eslint.config.mjs引入tseslint.configs.recommended)。@typescript-eslint/typescript-estree在模块加载期访问ts.Extension.Cjs,TS7 下该符号为undefined,直接抛出TypeError: Cannot read properties of undefined (reading 'Cjs')。typescript >=4.8.4 <6.1.0。因此靠升级依赖无法在 7.0.2 下修复 lint;强合并将破坏集成分支 CI。
变更内容
在
.github/dependabot.yml的 npm 生态ignore列表新增:忽略typescript的 semver-major 升级(附中文注释说明根因并引用 #12518)。次要/补丁版本仍照常跟进。此举与文件中既有@types/vscode忽略先例同类——均为「会破坏工具链/产品约束、需人工决策」的升级。影响与后续
参考