Skip to content

fix(cli): show npm module sources and pin registry versions - #114

Merged
Tanya7z merged 1 commit into
mainfrom
fix/module-registry-npm-info
Sep 28, 2026
Merged

Tanya7z merged 1 commit into
mainfrom
fix/module-registry-npm-info

Conversation

@Tanya7z

@Tanya7z Tanya7z commented Sep 28, 2026

Copy link
Copy Markdown
Member

公共正式版 sfmc mod search qq-link 显示 repo/tag/source 为 undefined,因为官方索引条目只包含 npm 包名和精确版本。默认安装虽然能从 npm 获取模块,却忽略了索引版本。

本补丁让搜索显示 npm 包及版本,并在默认安装时使用索引中的 npm:<name>@<version>;旧 repo+tag 条目仍按 GitHub 方式显示与安装。附 Changeset,为 CLI 和聚合包发布补丁版本。

验证:CLI 类型检查、构建和 Changesets 状态通过;在隔离目录运行 mod search qq-link 显示 npm:@sfmc-bds/module-qq-link@0.1.0,实际 mod install qq-link 也从公共 registry 安装该精确版本,check-modules OK。

@Tanya7z
Tanya7z merged commit b55d845 into main Sep 28, 2026
2 checks passed
@Tanya7z
Tanya7z deleted the fix/module-registry-npm-info branch September 29, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant