@soybeanjs/cli 1.5.0 → 1.6.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.js +4 -4
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import process from "node:process";
|
|
|
11
11
|
import { loadConfig } from "c12";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "1.
|
|
14
|
+
var version = "1.6.0";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/shared/index.ts
|
|
@@ -159,7 +159,7 @@ async function cleanup(paths) {
|
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/command/ncu.ts
|
|
161
161
|
async function ncu(args = ["--deep", "-u"]) {
|
|
162
|
-
execCommand("
|
|
162
|
+
execCommand("pnpx", ["npm-check-updates", ...args], { stdio: "inherit" });
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
//#endregion
|
|
@@ -171,7 +171,7 @@ async function genChangelog(options, total = false) {
|
|
|
171
171
|
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region src/command/release.ts
|
|
174
|
-
async function release(execute = "
|
|
174
|
+
async function release(execute = "pnpx soy changelog", push = true) {
|
|
175
175
|
await versionBump({
|
|
176
176
|
files: ["**/package.json", "!**/node_modules"],
|
|
177
177
|
execute,
|
|
@@ -223,7 +223,7 @@ async function loadCliOptions(overrides, cwd = process.cwd()) {
|
|
|
223
223
|
async function setupCli() {
|
|
224
224
|
const cliOptions = await loadCliOptions();
|
|
225
225
|
const cli = cac("soybean");
|
|
226
|
-
cli.version(version).option("-e, --execute [command]", "Execute additional command after bumping and before git commit. Defaults to '
|
|
226
|
+
cli.version(version).option("-e, --execute [command]", "Execute additional command after bumping and before git commit. Defaults to 'pnpx soy changelog'").option("-p, --push", "Indicates whether to push the git commit and tag").option("-t, --total", "Generate changelog by total tags").option("-c, --cleanupDir <dir>", "The glob pattern of dirs to cleanup, If not set, it will use the default value, Multiple values use \",\" to separate them").option("-l, --lang <lang>", "display lang of cli", {
|
|
227
227
|
default: "en-us",
|
|
228
228
|
type: [String]
|
|
229
229
|
}).help();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "SoybeanJS's command line tools",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/cli",
|
|
6
6
|
"bugs": {
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"@soybeanjs/changelog": "0.4.3",
|
|
41
41
|
"bumpp": "10.4.1",
|
|
42
42
|
"c12": "3.3.3",
|
|
43
|
-
"cac": "
|
|
43
|
+
"cac": "7.0.0",
|
|
44
44
|
"consola": "3.4.2",
|
|
45
45
|
"enquirer": "2.4.1",
|
|
46
46
|
"execa": "9.6.1",
|
|
47
47
|
"kolorist": "1.8.0",
|
|
48
|
-
"npm-check-updates": "19.3
|
|
49
|
-
"rimraf": "6.1.
|
|
48
|
+
"npm-check-updates": "19.6.3",
|
|
49
|
+
"rimraf": "6.1.3",
|
|
50
50
|
"tinyglobby": "0.2.15"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@soybeanjs/cli": "link:",
|
|
54
|
-
"@types/node": "25.
|
|
55
|
-
"lint-staged": "16.2
|
|
56
|
-
"oxfmt": "^0.
|
|
57
|
-
"oxlint": "^1.
|
|
54
|
+
"@types/node": "25.3.3",
|
|
55
|
+
"lint-staged": "16.3.2",
|
|
56
|
+
"oxfmt": "^0.36.0",
|
|
57
|
+
"oxlint": "^1.51.0",
|
|
58
58
|
"simple-git-hooks": "2.13.1",
|
|
59
|
-
"tsdown": "0.
|
|
59
|
+
"tsdown": "0.21.0",
|
|
60
60
|
"tsx": "4.21.0",
|
|
61
61
|
"typescript": "5.9.3"
|
|
62
62
|
},
|