@soybeanjs/cli 0.6.6 → 0.6.7
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ const enquirer__default = /*#__PURE__*/_interopDefaultCompat(enquirer);
|
|
|
19
19
|
const path__default = /*#__PURE__*/_interopDefaultCompat(path);
|
|
20
20
|
const versionBump__default = /*#__PURE__*/_interopDefaultCompat(versionBump);
|
|
21
21
|
|
|
22
|
-
const version = "0.6.
|
|
22
|
+
const version = "0.6.7";
|
|
23
23
|
|
|
24
24
|
async function execCommand(cmd, args, options) {
|
|
25
25
|
const { execa } = await import('execa');
|
|
@@ -65,7 +65,7 @@ async function gitCommit(gitCommitTypes, gitCommitScopes) {
|
|
|
65
65
|
|
|
66
66
|
async function gitCommitVerify() {
|
|
67
67
|
const gitPath = await execCommand("git", ["rev-parse", "--show-toplevel"]);
|
|
68
|
-
const gitMsgPath = path__default.join(gitPath, ".git
|
|
68
|
+
const gitMsgPath = path__default.join(gitPath, ".git", "COMMIT_EDITMSG");
|
|
69
69
|
const commitMsg = fs.readFileSync(gitMsgPath, "utf-8").trim();
|
|
70
70
|
const REG_EXP = /(?<type>[a-z]+)(\((?<scope>.+)\))?(?<breaking>!)?: (?<description>.+)/i;
|
|
71
71
|
if (!REG_EXP.test(commitMsg)) {
|
|
@@ -84,7 +84,7 @@ async function cleanup(paths) {
|
|
|
84
84
|
async function initSimpleGitHooks(cwd = process.cwd()) {
|
|
85
85
|
const huskyDir = path__default.join(cwd, ".husky");
|
|
86
86
|
const existHusky = fs.existsSync(huskyDir);
|
|
87
|
-
const gitHooksDir = path__default.join(cwd, ".git
|
|
87
|
+
const gitHooksDir = path__default.join(cwd, ".git", "hooks");
|
|
88
88
|
if (existHusky) {
|
|
89
89
|
await rimraf.rimraf(huskyDir);
|
|
90
90
|
await execCommand("git", ["config", "core.hooksPath", gitHooksDir], { stdio: "inherit" });
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import versionBump from 'bumpp';
|
|
|
10
10
|
import { loadConfig } from 'c12';
|
|
11
11
|
import { readFile } from 'fs/promises';
|
|
12
12
|
|
|
13
|
-
const version = "0.6.
|
|
13
|
+
const version = "0.6.7";
|
|
14
14
|
|
|
15
15
|
async function execCommand(cmd, args, options) {
|
|
16
16
|
const { execa } = await import('execa');
|
|
@@ -56,7 +56,7 @@ async function gitCommit(gitCommitTypes, gitCommitScopes) {
|
|
|
56
56
|
|
|
57
57
|
async function gitCommitVerify() {
|
|
58
58
|
const gitPath = await execCommand("git", ["rev-parse", "--show-toplevel"]);
|
|
59
|
-
const gitMsgPath = path.join(gitPath, ".git
|
|
59
|
+
const gitMsgPath = path.join(gitPath, ".git", "COMMIT_EDITMSG");
|
|
60
60
|
const commitMsg = readFileSync(gitMsgPath, "utf-8").trim();
|
|
61
61
|
const REG_EXP = /(?<type>[a-z]+)(\((?<scope>.+)\))?(?<breaking>!)?: (?<description>.+)/i;
|
|
62
62
|
if (!REG_EXP.test(commitMsg)) {
|
|
@@ -75,7 +75,7 @@ async function cleanup(paths) {
|
|
|
75
75
|
async function initSimpleGitHooks(cwd = process.cwd()) {
|
|
76
76
|
const huskyDir = path.join(cwd, ".husky");
|
|
77
77
|
const existHusky = existsSync(huskyDir);
|
|
78
|
-
const gitHooksDir = path.join(cwd, ".git
|
|
78
|
+
const gitHooksDir = path.join(cwd, ".git", "hooks");
|
|
79
79
|
if (existHusky) {
|
|
80
80
|
await rimraf(huskyDir);
|
|
81
81
|
await execCommand("git", ["config", "core.hooksPath", gitHooksDir], { stdio: "inherit" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "SoybeanJS's command line tools",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Soybean",
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@soybeanjs/changelog": "0.0.7",
|
|
40
|
-
"bumpp": "9.
|
|
40
|
+
"bumpp": "9.2.0",
|
|
41
41
|
"c12": "1.4.2",
|
|
42
42
|
"cac": "6.7.14",
|
|
43
43
|
"consola": "3.2.3",
|
|
44
44
|
"enquirer": "2.4.1",
|
|
45
|
-
"execa": "
|
|
45
|
+
"execa": "8.0.1",
|
|
46
46
|
"kolorist": "1.8.0",
|
|
47
|
-
"lint-staged": "
|
|
47
|
+
"lint-staged": "14.0.1",
|
|
48
48
|
"minimist": "1.2.8",
|
|
49
|
-
"npm-check-updates": "16.
|
|
49
|
+
"npm-check-updates": "16.12.2",
|
|
50
50
|
"rimraf": "5.0.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@soybeanjs/cli": "link:",
|
|
54
|
-
"@types/node": "20.
|
|
55
|
-
"eslint": "8.
|
|
56
|
-
"eslint-config-soybeanjs": "0.5.
|
|
54
|
+
"@types/node": "20.5.1",
|
|
55
|
+
"eslint": "8.47.0",
|
|
56
|
+
"eslint-config-soybeanjs": "0.5.5",
|
|
57
57
|
"simple-git-hooks": "2.9.0",
|
|
58
58
|
"tsx": "3.12.7",
|
|
59
59
|
"typescript": "5.1.6",
|