cross-release-cli 0.2.2 → 0.3.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/app.js +3 -3
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -150,19 +150,19 @@ const cliOptions = z.object({
|
|
|
150
150
|
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region package.json
|
|
153
|
-
var version = "0.2.
|
|
153
|
+
var version = "0.2.2";
|
|
154
154
|
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/cli.ts
|
|
157
157
|
const debug$3 = createDebug("cli");
|
|
158
158
|
function createCliProgram(argv) {
|
|
159
|
-
const cli = cac("cross-release").usage("A release tool that support multi programming language").version(version).usage("[version] [options]").option("-c, --config [file]", "Config file (auto detect by default)").option("-D, --dry", "Dry run").option("-d, --debug", "Enable debug mode").option("-e, --exclude [dir...]", "Folders to exclude from search").option("-m, --main [lang]", "Base project language [e.g. java, rust, javascript]").option("-r, --recursive", "Run the command for each project in the workspace").option("-x, --execute [command...]", "Execute the command").option("-y, --yes", "Answer yes to all prompts").option("--cwd [dir]", "Set working directory").option("--commit", "Committing changes").option("--commit.signoff", "
|
|
159
|
+
const cli = cac("cross-release").usage("A release tool that support multi programming language").version(version).usage("[version] [options]").option("-a, --all", "shortcut for --commit.stageAll").option("-c, --config [file]", "Config file (auto detect by default)").option("-D, --dry", "Dry run").option("-d, --debug", "Enable debug mode").option("-e, --exclude [dir...]", "Folders to exclude from search").option("-m, --main [lang]", "Base project language [e.g. java, rust, javascript]").option("-r, --recursive", "Run the command for each project in the workspace").option("-x, --execute [command...]", "Execute the command").option("-y, --yes", "Answer yes to all prompts").option("--cwd [dir]", "Set working directory").option("--commit", "Committing changes").option("--commit.signoff", "Commit with signoff").option("--commit.stageAll", "Stage all changes before commit").option("--commit.template <template>", "Template for commit message").option("--commit.verify", "Verify commit message").option("--push", "Pushing Commit to remote").option("--push.followTags", "Pushing with follow tags").option("--push.branch <branch>", "Branch name to push").option("--push.followTags", "pushing with follow tags").option("--tag", "Tagging for release").option("--tag.template <template>", "Template for tag message").help();
|
|
160
160
|
return cli.parse(argv);
|
|
161
161
|
}
|
|
162
162
|
function argvToReleaseOptions(cli) {
|
|
163
163
|
const { args, options } = cli;
|
|
164
164
|
const opts = {
|
|
165
|
-
commit: options.commit,
|
|
165
|
+
commit: merge({ stageAll: options.all }, options.commit),
|
|
166
166
|
config: options.config,
|
|
167
167
|
cwd: options.cwd,
|
|
168
168
|
debug: options.debug,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-release-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "command line app for cross language bump utility",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "rainbowatcher",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"picocolors": "^1.1.1",
|
|
39
39
|
"unconfig": "^7.3.2",
|
|
40
40
|
"zod": "^3.24.4",
|
|
41
|
-
"cross-bump": "0.
|
|
41
|
+
"cross-bump": "0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@rainbowatcher/maybe": "^0.7.0"
|