cloudcc-cli 1.2.8 → 1.2.9

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,11 @@
1
+ # ReleaseV1.2.9
2
+ #### 发布日期:2023-1-27
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 迭代
6
+ * 版本信息添加tab名称
7
+ * 优化
8
+
1
9
  # ReleaseV1.2.8
2
10
  #### 发布日期:2022-12-14
3
11
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -191,7 +191,7 @@ class Builder {
191
191
  let jsPaths = [];
192
192
  if (jsPath) {
193
193
  jsPaths = fs.readdirSync(jsPath).filter((f) => {
194
- return f.endsWith('.min.js');
194
+ return f.endsWith('umd.min.js');
195
195
  }).map((item) => {
196
196
  return path.join(jsPath, item);
197
197
  });
@@ -134,7 +134,7 @@ class Publish {
134
134
 
135
135
  try {
136
136
  // 7:写入版本信息
137
- this.writeVersion(version);
137
+ this.writeVersion(version,condition.type);
138
138
  } catch (error) {
139
139
  console.log(chalk.red("版本信息写入异常:" + error))
140
140
  }
@@ -186,7 +186,7 @@ class Publish {
186
186
  * 将版本信息写入文件
187
187
  * @param {版本信息} version
188
188
  */
189
- writeVersion(version) {
189
+ writeVersion(version,type) {
190
190
  try {
191
191
  // 获得分支信息
192
192
  let branch = execSync('git rev-parse --abbrev-ref HEAD');
@@ -215,6 +215,7 @@ class Publish {
215
215
  <div>${projectConfig.name}</div>
216
216
  <div style="margin-left:48px">
217
217
  <div>分支:${branch}</div>
218
+ <div>标签:${type}</div>
218
219
  <div>版本号:${version}</div>
219
220
  <div>提交Hash:${gitCommitVersion}</div>
220
221
  <div>发布时间:${dayjs().format('YYYY-MM-DD HH:mm:ss')}</div>