cloudcc-cli 1.1.8 → 1.2.1

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.
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "axios": "^0.21.1",
16
+ "cloudcc-ccdk": "0.0.9",
16
17
  "core-js": "^3.6.5",
17
18
  "vue": "^2.6.11",
18
19
  "vue-cookies": "^1.7.4",
package/utils/askTool.js CHANGED
@@ -18,6 +18,20 @@ let choices = [
18
18
  ]
19
19
 
20
20
  module.exports = {
21
+ /**
22
+ * 询问要创建的tag名称
23
+ * @returns 结果
24
+ */
25
+ askTag: (message) => {
26
+ const prompt = [{
27
+ type: 'list',
28
+ message,
29
+ name: 'type',
30
+ choices: choices,
31
+ }
32
+ ];
33
+ return inquirer.prompt(prompt)
34
+ },
21
35
  /**
22
36
  * 请求版本信息
23
37
  * @returns 结果
package/utils/pushCode.js CHANGED
@@ -148,6 +148,13 @@ function deleteDist() {
148
148
 
149
149
  }
150
150
 
151
+ try {
152
+ // 删除unpackage文件夹
153
+ exec("git rm -r unpackage")
154
+ } catch (error) {
155
+
156
+ }
157
+
151
158
  try {
152
159
  // 添加改变文件
153
160
  exec("git add .")