fix(cli): show npm module sources and pin registry versions - #114
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.
公共正式版
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。