* 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]>
513 B
513 B
- group "从哪个 npm 源下载插件":
- radio "npm 官方源(registry.npmjs.org)"
- text: npm 官方源(registry.npmjs.org)
- radio "中国大陆镜像源(registry.npmmirror.com)" [checked]
- text: 中国大陆镜像源(registry.npmmirror.com)
- radio "自定义地址"
- text: 自定义地址
- textbox "自定义地址" [disabled]:
- /placeholder: https://npm.example.com/
- text: 公司内网或私有 npm 源;需要登录的源,把凭据放在本机的 ~/.npmrc 里