Skip to content

Commit

Permalink
chore: update appworks cli ali registry (#1078)
Browse files Browse the repository at this point in the history
* chore: update registry

* feat: update version and changelog
  • Loading branch information
luhc228 authored Nov 23, 2023
1 parent ef2e0dd commit 9d9e20b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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

0 comments on commit 9d9e20b

Please sign in to comment.