autorel 2.2.8-next.3 → 2.2.8-next.4
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/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/lib/colors.d.ts +2 -0
- package/dist/lib/colors.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<source srcset="docs/autorel.svg" media="(prefers-color-scheme: dark)">
|
|
3
3
|
<source srcset="docs/autorel-dark.svg" media="(prefers-color-scheme: light)">
|
|
4
4
|
<img src="docs/autorel-dark.svg" alt="Autorel" size="250">
|
|
5
|
-
</picture>
|
|
5
|
+
</picture>
|
|
6
6
|
|
|
7
7
|
[](https://github.com/mhweiner/autorel/actions)
|
|
8
8
|
[](https://semver.org)
|
package/dist/cli.js
CHANGED
|
@@ -11,9 +11,9 @@ const config_1 = require("./config");
|
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
|
|
12
12
|
const packageJson = require('../package.json');
|
|
13
13
|
const program = new commander_1.Command();
|
|
14
|
-
console.log('
|
|
15
|
-
console.log(`${(0, colors_1.bold)('
|
|
16
|
-
console.log('
|
|
14
|
+
console.log('------------------------------');
|
|
15
|
+
console.log(`${(0, colors_1.bold)('autorel')} ${(0, colors_1.grey)(`v${packageJson.version}`)}`);
|
|
16
|
+
console.log('');
|
|
17
17
|
program
|
|
18
18
|
.version(packageJson.version, '-v, --version')
|
|
19
19
|
.description('An example CLI for managing a directory')
|
package/dist/index.js
CHANGED
|
@@ -65,8 +65,8 @@ async function autorel(args) {
|
|
|
65
65
|
git.gitFetchTags();
|
|
66
66
|
const lastTag = git.getLastTag();
|
|
67
67
|
const lastProdTag = git.getLastProdTag();
|
|
68
|
-
output_1.default.log(`The last tag is: ${lastTag ? lastTag : color.grey('none')}`);
|
|
69
|
-
output_1.default.log(`The last production tag is: ${lastProdTag ? lastProdTag : color.grey('none')}`);
|
|
68
|
+
output_1.default.log(`The last tag is: ${lastTag ? color.bold(lastTag) : color.grey('none')}`);
|
|
69
|
+
output_1.default.log(`The last production tag is: ${lastProdTag ? color.bold(lastProdTag) : color.grey('none')}`);
|
|
70
70
|
const commits = git.getCommitsSinceLastTag(lastTag);
|
|
71
71
|
output_1.default.log(`Found ${color.bold(commits.length.toString())} commit(s) ${lastTag ? `since ${lastTag}` : 'in the repository'}.`);
|
|
72
72
|
const parsedCommits = commits.map((commit) => convCom.parseConventionalCommit(commit.message, commit.hash))
|
package/dist/lib/colors.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export declare function grey(text: string): string;
|
|
|
3
3
|
export declare function yellow(text: string): string;
|
|
4
4
|
export declare function green(text: string): string;
|
|
5
5
|
export declare function bold(text: string): string;
|
|
6
|
+
export declare function blue(text: string): string;
|
|
7
|
+
export declare function white(text: string): string;
|
package/dist/lib/colors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bold = exports.green = exports.yellow = exports.grey = exports.red = void 0;
|
|
3
|
+
exports.white = exports.blue = exports.bold = exports.green = exports.yellow = exports.grey = exports.red = void 0;
|
|
4
4
|
function red(text) {
|
|
5
5
|
return `\x1b[91m${text}\x1b[0m`;
|
|
6
6
|
}
|
|
@@ -21,4 +21,12 @@ function bold(text) {
|
|
|
21
21
|
return `\x1b[1m${text}\x1b[0m`;
|
|
22
22
|
}
|
|
23
23
|
exports.bold = bold;
|
|
24
|
+
function blue(text) {
|
|
25
|
+
return `\x1b[34m${text}\x1b[0m`;
|
|
26
|
+
}
|
|
27
|
+
exports.blue = blue;
|
|
28
|
+
function white(text) {
|
|
29
|
+
return `\x1b[37m${text}\x1b[0m`;
|
|
30
|
+
}
|
|
31
|
+
exports.white = white;
|
|
24
32
|
//# sourceMappingURL=colors.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autorel",
|
|
3
|
-
"version": "2.2.8-next.
|
|
3
|
+
"version": "2.2.8-next.4",
|
|
4
4
|
"description": "Automate semantic releases based on conventional commits. Similar to semantic-release but much simpler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc H. Weiner <mhweiner234@gmail.com> (https://mhweiner.com)",
|