@taole/deploy-helper 1.0.0-beta.4 → 1.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/deploy2.mjs +3 -2
  2. package/package.json +1 -1
package/deploy2.mjs CHANGED
@@ -16,8 +16,9 @@ function repoUrl2https(url) {
16
16
  const repoMap = {
17
17
  "Static": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PHP/Static.git",
18
18
  "Static_2025": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PC_Web/Static_2025.git",
19
- "OfficialSite": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PHP/OfficialSite.git",
20
19
  "events": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PHP/events.git",
20
+ "OfficialSite": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PHP/OfficialSite.git",
21
+ "TXC_OfficialSite": "git@codeup.aliyun.com:5ec8bb7bd1d1abe63b55cd33/PC_Web/TXC_OfficialSite.git",
21
22
  }
22
23
 
23
24
  function getDeployWorkDir() {
@@ -49,7 +50,7 @@ async function initPubProject(workDir, config, packageJson, isAssets = false) {
49
50
  }
50
51
  const supportedRepoNames = Object.keys(repoMap);
51
52
  if (!supportedRepoNames.includes(dest)) {
52
- throw new Error(`${dest}不是支持的项目, 请确认`);
53
+ throw new Error(`${dest}不是支持的项目, 请确认. 目前支持的项目有: ${supportedRepoNames.join(", ")}`);
53
54
  }
54
55
  let repoUrl = repoMap[dest];
55
56
  let repoUrls = [repoUrl, repoUrl2https(repoUrl)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/deploy-helper",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "脚本部署工具,用于将项目部署到测试环境或生产环境",
5
5
  "main": "index.mjs",
6
6
  "type": "module",