@versu/cli 0.4.1 → 0.5.1
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/README.md +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @versu/cli - Command-Line Interface
|
|
2
2
|
|
|
3
|
-
Command-line interface for VERSU
|
|
3
|
+
Command-line interface for VERSU. This CLI provides all the power of VERSU's semantic versioning engine through an easy-to-use command-line tool, perfect for local development and custom CI/CD systems.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export default class Version extends Command {
|
|
|
20
20
|
"append-snapshot": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
"push-changes": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
22
|
"generate-changelog": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
|
-
"output-file": import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
23
|
};
|
|
25
24
|
run(): Promise<void>;
|
|
26
25
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAS,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAS,MAAM,aAAa,CAAC;AAInD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;IAC1C,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,QAAQ,WAKtB;IAEF,MAAM,CAAC,IAAI;;;;MAMT;IAEF,OAAgB,KAAK;;;;;;;;;;;;;MAqDnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6B3B"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Args, Command, Flags } from "@oclif/core";
|
|
2
2
|
import { VersuRunner, initLogger } from "@versu/core";
|
|
3
3
|
import { OclifLogger } from "./logger.js";
|
|
4
|
-
import * as path from "path";
|
|
5
4
|
export default class Version extends Command {
|
|
6
5
|
static description = "Calculate and apply semantic version changes";
|
|
7
6
|
static examples = [
|
|
@@ -66,14 +65,9 @@ export default class Version extends Command {
|
|
|
66
65
|
default: true,
|
|
67
66
|
allowNo: true,
|
|
68
67
|
}),
|
|
69
|
-
"output-file": Flags.string({
|
|
70
|
-
description: "Path to the output file for project information",
|
|
71
|
-
required: false,
|
|
72
|
-
}),
|
|
73
68
|
};
|
|
74
69
|
async run() {
|
|
75
70
|
const { flags, args } = await this.parse(Version);
|
|
76
|
-
const defaultOutputFile = flags["output-file"] || path.join(args.repositoryRoot, "project-information.json");
|
|
77
71
|
initLogger(new OclifLogger(this));
|
|
78
72
|
try {
|
|
79
73
|
const options = {
|
|
@@ -88,8 +82,7 @@ export default class Version extends Command {
|
|
|
88
82
|
timestampVersions: flags["timestamp-versions"],
|
|
89
83
|
appendSnapshot: flags["append-snapshot"],
|
|
90
84
|
pushChanges: flags["push-changes"],
|
|
91
|
-
generateChangelog: flags["generate-changelog"]
|
|
92
|
-
outputFile: defaultOutputFile,
|
|
85
|
+
generateChangelog: flags["generate-changelog"]
|
|
93
86
|
};
|
|
94
87
|
const runner = new VersuRunner(options);
|
|
95
88
|
await runner.run();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versu/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "VERSU (CLI)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"types": "dist/index.d.ts",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@oclif/core": "^4.8.0",
|
|
41
|
-
"@versu/core": "^0.
|
|
41
|
+
"@versu/core": "^0.5.1",
|
|
42
42
|
"oclif": "^4.14.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|