@soybeanjs/cli 1.0.6 → 1.0.8-beta.0
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/dist/index.cjs +8 -8
- package/dist/index.js +8 -8
- package/package.json +14 -15
package/dist/index.cjs
CHANGED
|
@@ -37,12 +37,12 @@ module.exports = __toCommonJS(src_exports);
|
|
|
37
37
|
var import_cac = __toESM(require("cac"), 1);
|
|
38
38
|
|
|
39
39
|
// package.json
|
|
40
|
-
var version = "1.0.
|
|
40
|
+
var version = "1.0.8-beta.0";
|
|
41
41
|
|
|
42
42
|
// src/command/git-commit.ts
|
|
43
43
|
var import_node_path = __toESM(require("path"), 1);
|
|
44
44
|
var import_node_fs = require("fs");
|
|
45
|
-
var
|
|
45
|
+
var import_enquirer = require("enquirer");
|
|
46
46
|
var import_kolorist = require("kolorist");
|
|
47
47
|
|
|
48
48
|
// src/shared/index.ts
|
|
@@ -56,17 +56,17 @@ async function execCommand(cmd, args, options) {
|
|
|
56
56
|
async function gitCommit(gitCommitTypes, gitCommitScopes) {
|
|
57
57
|
const typesChoices = gitCommitTypes.map(([value, msg]) => {
|
|
58
58
|
const nameWithSuffix = `${value}:`;
|
|
59
|
-
const
|
|
59
|
+
const message = `${nameWithSuffix.padEnd(12)}${msg}`;
|
|
60
60
|
return {
|
|
61
|
-
value,
|
|
62
|
-
|
|
61
|
+
name: value,
|
|
62
|
+
message
|
|
63
63
|
};
|
|
64
64
|
});
|
|
65
65
|
const scopesChoices = gitCommitScopes.map(([value, msg]) => ({
|
|
66
|
-
value,
|
|
67
|
-
|
|
66
|
+
name: value,
|
|
67
|
+
message: `${value.padEnd(30)} (${msg})`
|
|
68
68
|
}));
|
|
69
|
-
const result = await (0,
|
|
69
|
+
const result = await (0, import_enquirer.prompt)([
|
|
70
70
|
{
|
|
71
71
|
name: "types",
|
|
72
72
|
type: "select",
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import cac from "cac";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "1.0.
|
|
7
|
+
var version = "1.0.8-beta.0";
|
|
8
8
|
|
|
9
9
|
// src/command/git-commit.ts
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
|
-
import
|
|
12
|
+
import { prompt } from "enquirer";
|
|
13
13
|
import { bgRed, green, red, yellow } from "kolorist";
|
|
14
14
|
|
|
15
15
|
// src/shared/index.ts
|
|
@@ -23,17 +23,17 @@ async function execCommand(cmd, args, options) {
|
|
|
23
23
|
async function gitCommit(gitCommitTypes, gitCommitScopes) {
|
|
24
24
|
const typesChoices = gitCommitTypes.map(([value, msg]) => {
|
|
25
25
|
const nameWithSuffix = `${value}:`;
|
|
26
|
-
const
|
|
26
|
+
const message = `${nameWithSuffix.padEnd(12)}${msg}`;
|
|
27
27
|
return {
|
|
28
|
-
value,
|
|
29
|
-
|
|
28
|
+
name: value,
|
|
29
|
+
message
|
|
30
30
|
};
|
|
31
31
|
});
|
|
32
32
|
const scopesChoices = gitCommitScopes.map(([value, msg]) => ({
|
|
33
|
-
value,
|
|
34
|
-
|
|
33
|
+
name: value,
|
|
34
|
+
message: `${value.padEnd(30)} (${msg})`
|
|
35
35
|
}));
|
|
36
|
-
const result = await
|
|
36
|
+
const result = await prompt([
|
|
37
37
|
{
|
|
38
38
|
name: "types",
|
|
39
39
|
type: "select",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8-beta.0",
|
|
5
5
|
"packageManager": "pnpm@8.13.1",
|
|
6
6
|
"description": "SoybeanJS's command line tools",
|
|
7
7
|
"author": {
|
|
@@ -38,32 +38,31 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@soybeanjs/changelog": "0.3.
|
|
41
|
+
"@soybeanjs/changelog": "0.3.13",
|
|
42
42
|
"bumpp": "9.3.0",
|
|
43
|
-
"c12": "1.
|
|
43
|
+
"c12": "1.9.0",
|
|
44
44
|
"cac": "6.7.14",
|
|
45
45
|
"consola": "3.2.3",
|
|
46
|
+
"enquirer": "2.4.1",
|
|
46
47
|
"execa": "8.0.1",
|
|
47
48
|
"kolorist": "1.8.0",
|
|
48
|
-
"npm-check-updates": "16.14.
|
|
49
|
-
"prompts": "2.4.2",
|
|
49
|
+
"npm-check-updates": "16.14.15",
|
|
50
50
|
"rimraf": "5.0.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@soybeanjs/cli": "link:",
|
|
54
|
-
"@soybeanjs/eslint-config": "1.
|
|
55
|
-
"@types/crypto-js": "4.2.
|
|
56
|
-
"@types/node": "20.11.
|
|
57
|
-
"
|
|
58
|
-
"eslint": "
|
|
59
|
-
"eslint-plugin-vue": "9.20.1",
|
|
54
|
+
"@soybeanjs/eslint-config": "1.2.3",
|
|
55
|
+
"@types/crypto-js": "4.2.2",
|
|
56
|
+
"@types/node": "20.11.24",
|
|
57
|
+
"eslint": "8.57.0",
|
|
58
|
+
"eslint-plugin-vue": "9.22.0",
|
|
60
59
|
"fast-glob": "3.3.2",
|
|
61
|
-
"lint-staged": "15.2.
|
|
60
|
+
"lint-staged": "15.2.2",
|
|
62
61
|
"simple-git-hooks": "2.9.0",
|
|
63
|
-
"tsup": "8.0.
|
|
64
|
-
"tsx": "4.7.
|
|
62
|
+
"tsup": "8.0.2",
|
|
63
|
+
"tsx": "4.7.1",
|
|
65
64
|
"typescript": "5.3.3",
|
|
66
|
-
"vue-eslint-parser": "9.4.
|
|
65
|
+
"vue-eslint-parser": "9.4.2"
|
|
67
66
|
},
|
|
68
67
|
"simple-git-hooks": {
|
|
69
68
|
"commit-msg": "pnpm soy git-commit-verify",
|