autorel 2.2.8-next.3 → 2.2.8-next.5

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 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
  [![build status](https://github.com/mhweiner/autorel/actions/workflows/release.yml/badge.svg)](https://github.com/mhweiner/autorel/actions)
8
8
  [![SemVer](https://img.shields.io/badge/SemVer-2.0.0-blue)](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)('⚙️ autorel ')}v${packageJson.version}`);
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))
@@ -104,10 +104,7 @@ async function autorel(args) {
104
104
  if (args.dryRun)
105
105
  return;
106
106
  if (args.preRun) {
107
- output_1.default.log('Running pre-release bash script:');
108
- output_1.default.log('----------------------------');
109
- output_1.default.log(args.preRun);
110
- output_1.default.log('----------------------------');
107
+ output_1.default.log('Running pre-release bash script...');
111
108
  (0, sh_1.bash)(args.preRun);
112
109
  }
113
110
  git.createAndPushTag(nextTag);
@@ -129,10 +126,7 @@ async function autorel(args) {
129
126
  process.env.NEXT_TAG = nextTag;
130
127
  // run post-release bash script
131
128
  if (args.run) {
132
- output_1.default.log('Running post-release bash script/command:');
133
- output_1.default.log('----------------------------');
134
- output_1.default.log(args.run);
135
- output_1.default.log('----------------------------');
129
+ output_1.default.log('Running post-release bash script...');
136
130
  (0, sh_1.bash)(args.run);
137
131
  }
138
132
  else if (args.runScript) {
@@ -141,12 +135,7 @@ async function autorel(args) {
141
135
  output_1.default.warn('🚨 The "runScript" option is deprecated. Please use "run" instead. 🚨');
142
136
  output_1.default.warn('🚨 The "runScript" option will be removed in the next major version. 🚨');
143
137
  output_1.default.warn('----------------------------');
144
- output_1.default.log('Running post-release bash script:');
145
- output_1.default.log('');
146
- output_1.default.log('----------------------------');
147
- output_1.default.log(args.runScript);
148
- output_1.default.log('----------------------------');
149
- output_1.default.log('');
138
+ output_1.default.log('Running post-release bash script...');
150
139
  (0, sh_1.bash)(args.runScript);
151
140
  }
152
141
  return nextTag.replace('v', '');
@@ -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;
@@ -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",
3
+ "version": "2.2.8-next.5",
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)",