Repository navigation
feat: 对齐 dsh 0.1.7-rc.2 依赖并整理 CI - #2
Merged
Merged
Conversation
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.
feat: 对齐 dsh 0.1.7-rc.2 依赖并整理 CI
问题
peerDependencies只有 cordis、react 等,缺 dsh 本体。dsh 的兼容门禁按这份声明判断插件与当前 runtime 是否匹配,缺了它整条判定不会发生,装上不对版本的 dsh 也不会得到incompatible-version提示。pnpm-lock.yaml是在autoInstallPeers默认开启时生成的,1248 行里大半是自动拉进来的 peer 树。CI 跑 Node 22/26 矩阵,release 用 Node 24,pnpm 只写范围
9,三处都没跟工作区锁定的 26.3.1 与 9.15.9 对齐。release 里也没有产物齐全校验。两个工作流文件还带 UTF-8 BOM。
方案
peerDependencies补@deepseek-ai/dsh,范围^0.1.7-rc.2.npmrc关闭auto-install-peers,重新生成 lockpackage.json补packageManager与engines.node,版本 0.1.1 → 0.1.2ci.yml去掉 Node 矩阵锁死 26.3.1,pnpm 写实到 9.15.9,产物校验补cordis.patch.yml,去掉两个文件的 BOMrelease.yml补类型检查与产物校验,pnpm 写实到 9.15.9,Node 24 → 26.3.1验证
pnpm install --frozen-lockfile通过pnpm typecheck通过pnpm test36 个用例全过pnpm build产出lib/index.js、lib/index.d.ts与lib/client.js其他