qdmp-cli 0.1.16 → 0.1.18

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/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "qdmp-cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "qdmp-cli",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
+ "files": [
8
+ "actions.js",
9
+ "api.js",
10
+ "constants.js",
11
+ "index.js",
12
+ "npm-shrinkwrap.json",
13
+ "utils/"
14
+ ],
7
15
  "scripts": {
8
16
  "test": "echo \"Error: no test specified\" && exit 1"
9
17
  },
@@ -18,7 +26,7 @@
18
26
  "author": "zhangyanran",
19
27
  "license": "ISC",
20
28
  "dependencies": {
21
- "@dimina/compiler": "^1.0.16",
29
+ "@dimina/compiler": "1.1.1",
22
30
  "adm-zip": "^0.5.16",
23
31
  "chalk": "^5.4.1",
24
32
  "commander": "^14.0.0",
@@ -30,6 +38,6 @@
30
38
  "table": "^6.9.0"
31
39
  },
32
40
  "engines": {
33
- "node": ">=20"
41
+ "node": "^22.12.0 || ^24.11.0 || >=26.0.0"
34
42
  }
35
43
  }
@@ -34,3 +34,21 @@ export const inquirerAccountPassword = async (message) => {
34
34
  ]);
35
35
  return { account, password };
36
36
  };
37
+
38
+ /**
39
+ * 输入版本描述
40
+ * @returns {Promise<string>} 版本描述
41
+ */
42
+ export const inquirerVersionDescription = async () => {
43
+ const { description } = await inquirer.prompt([
44
+ {
45
+ type: "input",
46
+ name: "description",
47
+ message: "请输入版本描述(选填,200字以内)",
48
+ validate(value) {
49
+ return Array.from(value.trim()).length <= 200 || "版本描述不能超过200字";
50
+ },
51
+ },
52
+ ]);
53
+ return description.trim();
54
+ };
@@ -1,9 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm version:*)",
5
- "Bash(xargs cat)",
6
- "Bash(xargs ls -la)"
7
- ]
8
- }
9
- }