* fix(plugins): name the default install source by the registry it names The add-plugin dialog showed "默认安装源" for pnpm's own registry, which told the reader nothing about where the install would download from. Name npm's own registry as the official npm registry, and any other registry pnpm's own configuration names by that registry's name or host, so the folded control reads by the registry the install actually asks. * test(plugins): cover comparing an unparseable registry address --------- Co-authored-by: Turtle <[email protected]>
693 B
693 B
- dialog "已安装":
- button "关闭"
- status: 已安装
- paragraph: mirrored-package
- paragraph: 版本 2.0.0
- button "收起安装详情" [expanded]
- paragraph: 安装位置:{{cwd}}/.dsh-home/profiles/scaffold
- paragraph: 第 1 次 · 中国大陆镜像源
- text: 失败 $ pnpm add mirrored-package --registry=https://registry.npmmirror.com/ 退出码 1
- button "复制"
- text: "ERR_PNPM_META_FETCH_FAIL GET https://registry.npmmirror.com/mirrored-package: socket hang up"
- paragraph: 第 2 次 · npm 官方源
- text: 已完成 $ pnpm add mirrored-package
- button "复制"
- text: Installed from the registry pnpm names
- button "立即启用"