@soybeanjs/changelog 0.0.5 → 0.0.7
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.cjs +2 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,6 @@ const convertGitmoji = require('convert-gitmoji');
|
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
11
11
|
|
|
12
|
-
const cliProgress__default = /*#__PURE__*/_interopDefaultCompat(cliProgress);
|
|
13
12
|
const dayjs__default = /*#__PURE__*/_interopDefaultCompat(dayjs);
|
|
14
13
|
|
|
15
14
|
async function execCommand(cmd, args, options) {
|
|
@@ -523,9 +522,9 @@ async function getTotalChangelogMarkdown(options, showProgress = true) {
|
|
|
523
522
|
const opts = await createOptions(options);
|
|
524
523
|
let bar = null;
|
|
525
524
|
if (showProgress) {
|
|
526
|
-
bar = new
|
|
525
|
+
bar = new cliProgress.SingleBar(
|
|
527
526
|
{ format: "generate total changelog: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}" },
|
|
528
|
-
|
|
527
|
+
cliProgress.Presets.shades_classic
|
|
529
528
|
);
|
|
530
529
|
}
|
|
531
530
|
const tags = getFromToTags(opts.tags);
|
|
@@ -561,7 +560,6 @@ async function generateTotalChangelog(options, showProgress = true) {
|
|
|
561
560
|
const markdown = await getTotalChangelogMarkdown(opts, showProgress);
|
|
562
561
|
await writeMarkdown(markdown, opts.output, true);
|
|
563
562
|
}
|
|
564
|
-
getChangelogMarkdown();
|
|
565
563
|
|
|
566
564
|
exports.generateChangelog = generateChangelog;
|
|
567
565
|
exports.generateTotalChangelog = generateTotalChangelog;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SingleBar, Presets } from 'cli-progress';
|
|
2
2
|
import { readFile, writeFile } from 'fs/promises';
|
|
3
3
|
import { ofetch } from 'ofetch';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
@@ -516,9 +516,9 @@ async function getTotalChangelogMarkdown(options, showProgress = true) {
|
|
|
516
516
|
const opts = await createOptions(options);
|
|
517
517
|
let bar = null;
|
|
518
518
|
if (showProgress) {
|
|
519
|
-
bar = new
|
|
519
|
+
bar = new SingleBar(
|
|
520
520
|
{ format: "generate total changelog: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}" },
|
|
521
|
-
|
|
521
|
+
Presets.shades_classic
|
|
522
522
|
);
|
|
523
523
|
}
|
|
524
524
|
const tags = getFromToTags(opts.tags);
|
|
@@ -554,6 +554,5 @@ async function generateTotalChangelog(options, showProgress = true) {
|
|
|
554
554
|
const markdown = await getTotalChangelogMarkdown(opts, showProgress);
|
|
555
555
|
await writeMarkdown(markdown, opts.output, true);
|
|
556
556
|
}
|
|
557
|
-
getChangelogMarkdown();
|
|
558
557
|
|
|
559
558
|
export { generateChangelog, generateTotalChangelog, getChangelogMarkdown, getTotalChangelogMarkdown };
|