autorel 2.2.8-next.8 → 2.2.8

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 CHANGED
@@ -65,7 +65,12 @@ async function autorel(args) {
65
65
  output_1.default.log(`The last tag is: ${lastTag ? color.bold(lastTag) : color.grey('none')}`);
66
66
  output_1.default.log(`The last production tag is: ${lastProdTag ? color.bold(lastProdTag) : color.grey('none')}`);
67
67
  if (prereleaseChannel && !args.useVersion) {
68
- output_1.default.log(`Using prerelease channel: ${color.bold(prereleaseChannel)}`);
68
+ const stmt = `Using prerelease channel: ${color.bold(prereleaseChannel)}`;
69
+ output_1.default.log(!args.useVersion ? stmt : color.strikethrough(stmt));
70
+ }
71
+ else {
72
+ const stmt = 'This is a production release.';
73
+ output_1.default.log(!args.useVersion ? stmt : color.strikethrough(stmt));
69
74
  }
70
75
  if (prereleaseChannel) {
71
76
  output_1.default.log(`Fetching commits since ${lastTag || 'the beginning of the repository'}...`);
@@ -5,3 +5,4 @@ export declare function green(text: string): string;
5
5
  export declare function bold(text: string): string;
6
6
  export declare function blue(text: string): string;
7
7
  export declare function white(text: string): string;
8
+ export declare function strikethrough(text: string): string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.white = exports.blue = exports.bold = exports.green = exports.yellow = exports.grey = exports.red = void 0;
3
+ exports.strikethrough = 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
  }
@@ -29,4 +29,8 @@ function white(text) {
29
29
  return `\x1b[37m${text}\x1b[0m`;
30
30
  }
31
31
  exports.white = white;
32
+ function strikethrough(text) {
33
+ return `\x1b[9m${text}\x1b[0m`;
34
+ }
35
+ exports.strikethrough = strikethrough;
32
36
  //# sourceMappingURL=colors.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autorel",
3
- "version": "2.2.8-next.8",
3
+ "version": "2.2.8",
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)",