@storm-software/git-tools 2.124.61 → 2.124.62
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/bin/{chunk-YBTSEKHW.cjs → chunk-EGBAPP6Q.cjs} +43 -13
- package/bin/chunk-EGBAPP6Q.cjs.map +1 -0
- package/bin/{chunk-TMQCIJTZ.js → chunk-X6QPG2T4.js} +43 -13
- package/bin/{chunk-YBTSEKHW.cjs.map → chunk-X6QPG2T4.js.map} +1 -1
- package/bin/git.cjs +75 -75
- package/bin/git.js +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-73HIS2A2.cjs → chunk-NKCUBWZU.cjs} +41 -11
- package/dist/{chunk-PFHNJI5V.js → chunk-RVPCQYBR.js} +41 -11
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +8 -8
- package/dist/release/config.js +1 -1
- package/package.json +4 -4
- package/bin/chunk-TMQCIJTZ.js.map +0 -1
package/bin/post-merge.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
|
|
5
5
|
var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-merge.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
13
|
+
chunkEGBAPP6Q_cjs.writeInfo("Running post-merge hook...", config);
|
|
14
14
|
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkEGBAPP6Q_cjs.writeError(
|
|
19
19
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkFH5OSXAJ_cjs.run(config, "git lfs post-merge");
|
|
26
|
-
|
|
26
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-merge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-Q3DQKTOI.js';
|
|
3
3
|
import { run } from './chunk-G3YPGVPS.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-X6QPG2T4.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-merge.ts
|
|
7
7
|
void (async () => {
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-commit.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
12
|
+
chunkEGBAPP6Q_cjs.writeInfo("Running pre-commit hook...", config);
|
|
13
13
|
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv.slice(1));
|
|
14
14
|
if (chunkAU5PZKTN_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
|
|
15
|
-
|
|
15
|
+
chunkEGBAPP6Q_cjs.writeError(
|
|
16
16
|
"Please regenerate the package lock file before committing...",
|
|
17
17
|
config
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
22
22
|
} catch (error) {
|
|
23
|
-
|
|
23
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
24
24
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
25
25
|
config
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
30
|
})();
|
package/bin/pre-commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion, isPackageVersionChanged } from './chunk-Q3DQKTOI.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-X6QPG2T4.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-commit.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-install.cjs
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-install.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
12
|
+
chunkEGBAPP6Q_cjs.writeInfo("Running pre-install hook...", config);
|
|
13
13
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
chunkEGBAPP6Q_cjs.writeInfo("Skipping pre-install for CI process...", config);
|
|
15
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
16
16
|
}
|
|
17
17
|
chunkFH5OSXAJ_cjs.run(config, "npx -y only-allow pnpm");
|
|
18
|
-
|
|
18
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
21
21
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
22
22
|
config
|
|
23
23
|
);
|
|
24
|
-
|
|
24
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
})();
|
package/bin/pre-install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-G3YPGVPS.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-X6QPG2T4.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-install.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-push.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
|
|
5
5
|
var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var path = require('path');
|
|
@@ -14,12 +14,12 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
|
14
14
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
15
|
|
|
16
16
|
void (async () => {
|
|
17
|
-
const config = await
|
|
17
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
18
18
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
20
|
+
chunkEGBAPP6Q_cjs.writeInfo("Running pre-push hook...", config);
|
|
21
21
|
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
22
|
-
|
|
22
|
+
chunkEGBAPP6Q_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
23
23
|
const errors = [];
|
|
24
24
|
if (fs__default.default.existsSync(
|
|
25
25
|
path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
|
|
@@ -54,32 +54,32 @@ void (async () => {
|
|
|
54
54
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
55
55
|
}
|
|
56
56
|
if (errors.length > 0) {
|
|
57
|
-
|
|
57
|
+
chunkEGBAPP6Q_cjs.writeError("\u274C Lock file validation failed", config);
|
|
58
58
|
for (const error of errors) {
|
|
59
59
|
console.error(error);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
chunkEGBAPP6Q_cjs.writeSuccess("Lock file is valid \u2705", config);
|
|
64
64
|
chunkFH5OSXAJ_cjs.run(config, "git lfs pre-push origin");
|
|
65
65
|
try {
|
|
66
66
|
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
67
67
|
} catch (error) {
|
|
68
|
-
|
|
68
|
+
chunkEGBAPP6Q_cjs.writeError(
|
|
69
69
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
|
|
70
70
|
Error: ${error?.message}`,
|
|
71
71
|
config
|
|
72
72
|
);
|
|
73
|
-
|
|
73
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
74
74
|
}
|
|
75
75
|
chunkFH5OSXAJ_cjs.run(config, "git lfs pre-push origin");
|
|
76
|
-
|
|
76
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
77
77
|
} catch (error) {
|
|
78
|
-
|
|
78
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
79
79
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
80
80
|
config
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
83
83
|
process.exit(1);
|
|
84
84
|
}
|
|
85
85
|
})();
|
package/bin/pre-push.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-Q3DQKTOI.js';
|
|
3
3
|
import { run } from './chunk-G3YPGVPS.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-X6QPG2T4.js';
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import { readFile } from 'node:fs/promises';
|
|
7
7
|
import path from 'node:path';
|
package/bin/prepare.cjs
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/prepare.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
12
|
+
chunkEGBAPP6Q_cjs.writeInfo("Running prepare hook...", config);
|
|
13
13
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
14
14
|
chunkFH5OSXAJ_cjs.run(config, "lefthook install");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
chunkEGBAPP6Q_cjs.exitWithSuccess(config);
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
19
19
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
})();
|
package/bin/prepare.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-G3YPGVPS.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-X6QPG2T4.js';
|
|
4
4
|
|
|
5
5
|
// bin/prepare.ts
|
|
6
6
|
void (async () => {
|
package/bin/version-warning.cjs
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEGBAPP6Q_cjs = require('./chunk-EGBAPP6Q.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/version-warning.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkEGBAPP6Q_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
chunkEGBAPP6Q_cjs.handleProcess(config);
|
|
12
12
|
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv.slice(1));
|
|
13
13
|
} catch (error) {
|
|
14
|
-
|
|
14
|
+
chunkEGBAPP6Q_cjs.writeFatal(
|
|
15
15
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
16
16
|
config
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
chunkEGBAPP6Q_cjs.exitWithError(config);
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
})();
|
package/bin/version-warning.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-Q3DQKTOI.js';
|
|
3
|
-
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-X6QPG2T4.js';
|
|
4
4
|
|
|
5
5
|
// bin/version-warning.ts
|
|
6
6
|
void (async () => {
|
|
@@ -269,9 +269,9 @@ function isUnicodeSupported() {
|
|
|
269
269
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
270
270
|
var CONSOLE_ICONS = {
|
|
271
271
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
272
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
272
|
+
[LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
|
|
273
273
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
274
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
274
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
275
275
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
276
276
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
277
277
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -346,7 +346,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
346
346
|
return (message) => {
|
|
347
347
|
console.error(
|
|
348
348
|
`
|
|
349
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
349
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
350
|
+
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
351
|
+
)(
|
|
352
|
+
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
353
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
350
354
|
`
|
|
351
355
|
);
|
|
352
356
|
};
|
|
@@ -355,7 +359,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CON
|
|
|
355
359
|
return (message) => {
|
|
356
360
|
console.error(
|
|
357
361
|
`
|
|
358
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
362
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
363
|
+
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
364
|
+
)(
|
|
365
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
366
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
359
367
|
`
|
|
360
368
|
);
|
|
361
369
|
};
|
|
@@ -364,7 +372,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CO
|
|
|
364
372
|
return (message) => {
|
|
365
373
|
console.warn(
|
|
366
374
|
`
|
|
367
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
375
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
376
|
+
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
377
|
+
)(
|
|
378
|
+
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
379
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
368
380
|
`
|
|
369
381
|
);
|
|
370
382
|
};
|
|
@@ -373,7 +385,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_C
|
|
|
373
385
|
return (message) => {
|
|
374
386
|
console.info(
|
|
375
387
|
`
|
|
376
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
388
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
389
|
+
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
390
|
+
)(
|
|
391
|
+
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
392
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
377
393
|
`
|
|
378
394
|
);
|
|
379
395
|
};
|
|
@@ -382,7 +398,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
382
398
|
return (message) => {
|
|
383
399
|
console.info(
|
|
384
400
|
`
|
|
385
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
401
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
402
|
+
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
403
|
+
)(
|
|
404
|
+
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
405
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
386
406
|
`
|
|
387
407
|
);
|
|
388
408
|
};
|
|
@@ -391,7 +411,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
391
411
|
return (message) => {
|
|
392
412
|
console.debug(
|
|
393
413
|
`
|
|
394
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
414
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
415
|
+
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
416
|
+
)(
|
|
417
|
+
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
418
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
395
419
|
`
|
|
396
420
|
);
|
|
397
421
|
};
|
|
@@ -400,7 +424,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
400
424
|
return (message) => {
|
|
401
425
|
console.debug(
|
|
402
426
|
`
|
|
403
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
427
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
428
|
+
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
429
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
404
430
|
`
|
|
405
431
|
);
|
|
406
432
|
};
|
|
@@ -408,14 +434,18 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
|
|
|
408
434
|
return (message) => {
|
|
409
435
|
console.log(
|
|
410
436
|
`
|
|
411
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
437
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
438
|
+
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
439
|
+
)(
|
|
440
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
441
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
412
442
|
`
|
|
413
443
|
);
|
|
414
444
|
};
|
|
415
445
|
};
|
|
416
446
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
417
447
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
418
|
-
var MAX_DEPTH =
|
|
448
|
+
var MAX_DEPTH = 6;
|
|
419
449
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
420
450
|
if (depth2 > MAX_DEPTH) {
|
|
421
451
|
return "<max depth>";
|
|
@@ -241,9 +241,9 @@ function isUnicodeSupported() {
|
|
|
241
241
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
242
242
|
var CONSOLE_ICONS = {
|
|
243
243
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
244
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
244
|
+
[LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
|
|
245
245
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
246
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
246
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
247
247
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
248
248
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
249
249
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -318,7 +318,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
318
318
|
return (message) => {
|
|
319
319
|
console.error(
|
|
320
320
|
`
|
|
321
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
321
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
322
|
+
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
323
|
+
)(
|
|
324
|
+
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
325
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
322
326
|
`
|
|
323
327
|
);
|
|
324
328
|
};
|
|
@@ -327,7 +331,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CON
|
|
|
327
331
|
return (message) => {
|
|
328
332
|
console.error(
|
|
329
333
|
`
|
|
330
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
334
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
335
|
+
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
336
|
+
)(
|
|
337
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
338
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
331
339
|
`
|
|
332
340
|
);
|
|
333
341
|
};
|
|
@@ -336,7 +344,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CO
|
|
|
336
344
|
return (message) => {
|
|
337
345
|
console.warn(
|
|
338
346
|
`
|
|
339
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
347
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
348
|
+
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
349
|
+
)(
|
|
350
|
+
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
351
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
340
352
|
`
|
|
341
353
|
);
|
|
342
354
|
};
|
|
@@ -345,7 +357,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_C
|
|
|
345
357
|
return (message) => {
|
|
346
358
|
console.info(
|
|
347
359
|
`
|
|
348
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
360
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
361
|
+
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
362
|
+
)(
|
|
363
|
+
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
364
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
349
365
|
`
|
|
350
366
|
);
|
|
351
367
|
};
|
|
@@ -354,7 +370,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
354
370
|
return (message) => {
|
|
355
371
|
console.info(
|
|
356
372
|
`
|
|
357
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
373
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
374
|
+
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
375
|
+
)(
|
|
376
|
+
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
377
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
358
378
|
`
|
|
359
379
|
);
|
|
360
380
|
};
|
|
@@ -363,7 +383,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
363
383
|
return (message) => {
|
|
364
384
|
console.debug(
|
|
365
385
|
`
|
|
366
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
386
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
387
|
+
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
388
|
+
)(
|
|
389
|
+
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
390
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
367
391
|
`
|
|
368
392
|
);
|
|
369
393
|
};
|
|
@@ -372,7 +396,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
372
396
|
return (message) => {
|
|
373
397
|
console.debug(
|
|
374
398
|
`
|
|
375
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
399
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
400
|
+
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
401
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
376
402
|
`
|
|
377
403
|
);
|
|
378
404
|
};
|
|
@@ -380,14 +406,18 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
|
|
|
380
406
|
return (message) => {
|
|
381
407
|
console.log(
|
|
382
408
|
`
|
|
383
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
409
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
410
|
+
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
411
|
+
)(
|
|
412
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
413
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
384
414
|
`
|
|
385
415
|
);
|
|
386
416
|
};
|
|
387
417
|
};
|
|
388
418
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
389
419
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
390
|
-
var MAX_DEPTH =
|
|
420
|
+
var MAX_DEPTH = 6;
|
|
391
421
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
392
422
|
if (depth2 > MAX_DEPTH) {
|
|
393
423
|
return "<max depth>";
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNKCUBWZU_cjs = require('./chunk-NKCUBWZU.cjs');
|
|
4
4
|
var chunkNY53WLGC_cjs = require('./chunk-NY53WLGC.cjs');
|
|
5
5
|
require('./chunk-F7OO6L26.cjs');
|
|
6
6
|
var chunkYBAE6I5L_cjs = require('./chunk-YBAE6I5L.cjs');
|
|
@@ -10,31 +10,31 @@ require('./chunk-4VPJA7YJ.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "DEFAULT_CONVENTIONAL_COMMITS_CONFIG", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DEFAULT_JS_RELEASE_GROUP_CONFIG", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_JS_RELEASE_GROUP_CONFIG; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DEFAULT_RELEASE_CONFIG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_CONFIG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "DEFAULT_RELEASE_GROUP_CONFIG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_GROUP_CONFIG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DEFAULT_RELEASE_TAG_PATTERN", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_TAG_PATTERN; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DEFAULT_RUST_RELEASE_GROUP_CONFIG", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RUST_RELEASE_GROUP_CONFIG; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getReleaseGroupConfig", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkNKCUBWZU_cjs.getReleaseGroupConfig; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEFAULT_MONOREPO_COMMIT_QUESTIONS", {
|
|
40
40
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from './chunk-
|
|
1
|
+
export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from './chunk-RVPCQYBR.js';
|
|
2
2
|
export { DEFAULT_MONOREPO_COMMIT_QUESTIONS } from './chunk-JCEVFJCA.js';
|
|
3
3
|
import './chunk-KZRVQ5RZ.js';
|
|
4
4
|
export { DEFAULT_COMMIT_PROMPT_MESSAGES } from './chunk-5XU2KBM6.js';
|
package/dist/release/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNKCUBWZU_cjs = require('../chunk-NKCUBWZU.cjs');
|
|
4
4
|
require('../chunk-NY53WLGC.cjs');
|
|
5
5
|
require('../chunk-F7OO6L26.cjs');
|
|
6
6
|
require('../chunk-YBAE6I5L.cjs');
|
|
@@ -10,29 +10,29 @@ require('../chunk-4VPJA7YJ.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "DEFAULT_CONVENTIONAL_COMMITS_CONFIG", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DEFAULT_JS_RELEASE_GROUP_CONFIG", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_JS_RELEASE_GROUP_CONFIG; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DEFAULT_RELEASE_CONFIG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_CONFIG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "DEFAULT_RELEASE_GROUP_CONFIG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_GROUP_CONFIG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DEFAULT_RELEASE_TAG_PATTERN", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RELEASE_TAG_PATTERN; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DEFAULT_RUST_RELEASE_GROUP_CONFIG", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkNKCUBWZU_cjs.DEFAULT_RUST_RELEASE_GROUP_CONFIG; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getReleaseGroupConfig", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkNKCUBWZU_cjs.getReleaseGroupConfig; }
|
|
38
38
|
});
|
package/dist/release/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from '../chunk-
|
|
1
|
+
export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from '../chunk-RVPCQYBR.js';
|
|
2
2
|
import '../chunk-JCEVFJCA.js';
|
|
3
3
|
import '../chunk-KZRVQ5RZ.js';
|
|
4
4
|
import '../chunk-5XU2KBM6.js';
|