Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update appworks cli ali registry #1078

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.0.3

- [chore] 更新内网源地址为 `https://registry.anpm.alibaba-inc.com/`

## 3.0.2

- [chore]: 更新淘宝 npm 镜像源地址为 `https://registry.npmmirror.com`
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appworks/cli",
"version": "3.0.2",
"version": "3.0.3",
"description": "AppWorks CLI for develop project/material-collection/component.",
"main": "bin/appworks.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/getNpmRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function (npmName, materialConfig, publishConfig, enableUse
// 兼容老的用法
registry = process.env.REGISTRY;
} else if (isAliNpm(npmName)) {
registry = 'https://registry.npm.alibaba-inc.com';
registry = 'https://registry.anpm.alibaba-inc.com';
} else if (materialConfig && materialConfig.registry) {
registry = materialConfig.registry;
} else {
Expand Down
Loading