cloudcc-cli 1.1.2 → 1.1.3

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.
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # ReleaseV1.1.3
2
+ #### 发布日期:2022-6-23
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 修复
6
+ * 将版本信心写入env文件,供其他业务使用
7
+
1
8
  # ReleaseV1.1.2
2
9
  #### 发布日期:2022-6-21
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -69,6 +69,12 @@ class Publish {
69
69
  console.log(chalk.green('待发布版本:' + version));
70
70
  console.log();
71
71
 
72
+ // 3.1:将版本信息写入env文件中,公其他业务使用
73
+ try {
74
+ fs.writeFileSync(".env.production", "VUE_APP_PROJECT_VERSION = " + version, 'utf-8')
75
+ } catch (error) {
76
+ }
77
+
72
78
  // 4:如果存在多语言配置,则更新多语言
73
79
  if (projectConfig.config && projectConfig.config["language-config"]) {
74
80
  // 询问是否更新多语言