diff --git a/packages/cli/devkit/src/npm/index.ts b/packages/cli/devkit/src/npm/index.ts index d6c7ad25..c226f584 100644 --- a/packages/cli/devkit/src/npm/index.ts +++ b/packages/cli/devkit/src/npm/index.ts @@ -26,8 +26,7 @@ const TIMEOUT = 5000; // 未配置cnpmrc时默认使用淘宝镜像源 const defaultRegistries = { - registry: 'https://registry.npmmirror.com/', - '@opentiny:registry': 'https://registry.npmmirror.com/', + registry: 'https://registry.npmmirror.com/' }; /** @@ -44,7 +43,7 @@ export function getRegistry(name?: string): string { scope = name.slice(0, name.indexOf('/')); } if (scope) { - registry = config[`${scope}:registry`] || defaultRegistries[`${scope}:registry`]; + registry = config[`${scope}:registry`] || defaultRegistries[`${scope}:registry`] || registry; } // 需要以 "/" 结尾 if (registry && !registry.endsWith('/')) { diff --git a/packages/toolkits/pro/template/tinyvue/package.json b/packages/toolkits/pro/template/tinyvue/package.json index 0afacd57..602806b3 100644 --- a/packages/toolkits/pro/template/tinyvue/package.json +++ b/packages/toolkits/pro/template/tinyvue/package.json @@ -55,8 +55,8 @@ "@types/nprogress": "^0.2.0", "@typescript-eslint/eslint-plugin": "^5.10.0", "@typescript-eslint/parser": "^5.10.0", - "@vitejs/plugin-vue": "^1.9.4", - "@vitejs/plugin-vue-jsx": "^1.2.0", + "@vitejs/plugin-vue": "^4.3.4", + "@vitejs/plugin-vue-jsx": "^3.0.2", "@vue/babel-plugin-jsx": "^1.1.1", "cross-env": "^7.0.3", "eslint": "^7.2.0", @@ -79,13 +79,13 @@ "stylelint-order": "^4.1.0", "typescript": "^4.5.5", "unplugin-vue-components": "^0.17.21", - "vite": "^2.6.4", + "vite": "^4.4.9", "vite-plugin-compression": "^0.5.1", - "vite-plugin-eslint": "^1.3.0", - "vite-plugin-html": "^2.0.0", + "vite-plugin-eslint": "^1.8.1", + "vite-plugin-html": "^3.2.0", "vite-plugin-mock": "^2.9.6", - "vite-plugin-style-import": "1.4.1", - "vite-svg-loader": "^3.1.0", + "vite-plugin-style-import": "2.0.0", + "vite-svg-loader": "^4.0.0", "vue-tsc": "^0.30.5" }, "engines": {