Skip to content

Commit 5ad3094

Browse files
authored
feat: 修复代理修改未生效、升级tinyvue模板vite版本到v4及其他相关依赖版本 (#112)
1 parent 5ed766b commit 5ad3094

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

packages/cli/devkit/src/npm/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ const TIMEOUT = 5000;
2626

2727
// 未配置cnpmrc时默认使用淘宝镜像源
2828
const defaultRegistries = {
29-
registry: 'https://registry.npmmirror.com/',
30-
'@opentiny:registry': 'https://registry.npmmirror.com/',
29+
registry: 'https://registry.npmmirror.com/'
3130
};
3231

3332
/**
@@ -44,7 +43,7 @@ export function getRegistry(name?: string): string {
4443
scope = name.slice(0, name.indexOf('/'));
4544
}
4645
if (scope) {
47-
registry = config[`${scope}:registry`] || defaultRegistries[`${scope}:registry`];
46+
registry = config[`${scope}:registry`] || defaultRegistries[`${scope}:registry`] || registry;
4847
}
4948
// 需要以 "/" 结尾
5049
if (registry && !registry.endsWith('/')) {

packages/toolkits/pro/template/tinyvue/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"@types/nprogress": "^0.2.0",
5656
"@typescript-eslint/eslint-plugin": "^5.10.0",
5757
"@typescript-eslint/parser": "^5.10.0",
58-
"@vitejs/plugin-vue": "^1.9.4",
59-
"@vitejs/plugin-vue-jsx": "^1.2.0",
58+
"@vitejs/plugin-vue": "^4.3.4",
59+
"@vitejs/plugin-vue-jsx": "^3.0.2",
6060
"@vue/babel-plugin-jsx": "^1.1.1",
6161
"cross-env": "^7.0.3",
6262
"eslint": "^7.2.0",
@@ -79,13 +79,13 @@
7979
"stylelint-order": "^4.1.0",
8080
"typescript": "^4.5.5",
8181
"unplugin-vue-components": "^0.17.21",
82-
"vite": "^2.6.4",
82+
"vite": "^4.4.9",
8383
"vite-plugin-compression": "^0.5.1",
84-
"vite-plugin-eslint": "^1.3.0",
85-
"vite-plugin-html": "^2.0.0",
84+
"vite-plugin-eslint": "^1.8.1",
85+
"vite-plugin-html": "^3.2.0",
8686
"vite-plugin-mock": "^2.9.6",
87-
"vite-plugin-style-import": "1.4.1",
88-
"vite-svg-loader": "^3.1.0",
87+
"vite-plugin-style-import": "2.0.0",
88+
"vite-svg-loader": "^4.0.0",
8989
"vue-tsc": "^0.30.5"
9090
},
9191
"engines": {

0 commit comments

Comments
 (0)