sparrow-ci 1.1.7 → 1.1.8

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.
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: wangqi
3
3
  * @Date: 2022-08-12 10:20:19
4
- * @LastEditors: makunkun
5
- * @LastEditTime: 2024-01-03 17:53:17
4
+ * @LastEditors: wangqi
5
+ * @LastEditTime: 2024-11-13 18:03:47
6
6
  * @FilePath: /sparrow-ci/bin/command/index.js
7
7
  * @Description: 上传代码
8
8
  */
@@ -42,6 +42,7 @@ async function uploadCi(params) {
42
42
  minifyWXML: true, // 压缩 WXML 代码
43
43
  minifyWXSS: true, // 压缩 WXSS 代码
44
44
  minifyJS: true, // 压缩 JS 代码
45
+ condition: true, // 启用条件编译
45
46
  },
46
47
  robot: robotNum,
47
48
  onProgressUpdate: (res) => {
@@ -144,6 +145,7 @@ async function previewCi(params) {
144
145
  minifyWXML: true, // 压缩 WXML 代码
145
146
  minifyWXSS: true, // 压缩 WXSS 代码
146
147
  minifyJS: true, // 压缩 JS 代码
148
+ condition: true, // 启用条件编译
147
149
  },
148
150
  qrcodeFormat: 'image',
149
151
  qrcodeOutputDest: path.join('../', `qrcode${version}.jpg`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sparrow-ci",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "基于miniprogram-ci开发的小程序命令行工具",
5
5
  "main": "",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "commander": "^6.1.0",
17
17
  "inquirer": "^7.3.3",
18
18
  "log-symbols": "^4.0.0",
19
- "miniprogram-ci": "^1.8.35",
19
+ "miniprogram-ci": "2.0.9",
20
20
  "ora": "^5.1.0"
21
21
  }
22
22
  }