@storm-software/git-tools 2.115.16 → 2.116.1

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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-XH6F7XTV.cjs → chunk-LD4V463J.cjs} +17 -0
  3. package/bin/{chunk-7TA5K5AW.js → chunk-VATYGW5F.js} +12 -0
  4. package/bin/git.cjs +402 -264
  5. package/bin/git.js +354 -217
  6. package/bin/post-checkout.cjs +9 -9
  7. package/bin/post-checkout.js +1 -1
  8. package/bin/post-commit.cjs +9 -9
  9. package/bin/post-commit.js +1 -1
  10. package/bin/post-merge.cjs +9 -9
  11. package/bin/post-merge.js +1 -1
  12. package/bin/pre-commit.cjs +9 -9
  13. package/bin/pre-commit.js +1 -1
  14. package/bin/pre-install.cjs +9 -9
  15. package/bin/pre-install.js +1 -1
  16. package/bin/pre-push.cjs +13 -13
  17. package/bin/pre-push.js +1 -1
  18. package/bin/prepare.cjs +7 -7
  19. package/bin/prepare.js +1 -1
  20. package/bin/version-warning.cjs +5 -5
  21. package/bin/version-warning.js +1 -1
  22. package/dist/{chunk-A4HFPO7F.js → chunk-5XXXTVPU.js} +87 -17
  23. package/dist/chunk-C4NLID2V.js +19 -0
  24. package/dist/chunk-KD6Y4AJS.cjs +19 -0
  25. package/dist/{chunk-R3RXM6UC.js → chunk-LSRFGWF5.js} +3 -3
  26. package/dist/{chunk-PGN2XOUF.cjs → chunk-NWZD3QTO.cjs} +3 -3
  27. package/dist/{chunk-MDOOV3KF.cjs → chunk-ZE542BCU.cjs} +84 -14
  28. package/dist/commit/minimal.cjs +18 -0
  29. package/dist/commit/minimal.d.cts +8 -0
  30. package/dist/commit/minimal.d.ts +8 -0
  31. package/dist/commit/minimal.js +18 -0
  32. package/dist/commit/monorepo.cjs +7 -0
  33. package/dist/commit/monorepo.d.cts +8 -0
  34. package/dist/commit/monorepo.d.ts +8 -0
  35. package/dist/commit/monorepo.js +7 -0
  36. package/dist/commitlint/minimal.cjs +22 -0
  37. package/dist/commitlint/{config.d.ts → minimal.d.cts} +6 -6
  38. package/dist/commitlint/{config.d.cts → minimal.d.ts} +6 -6
  39. package/dist/commitlint/minimal.js +22 -0
  40. package/dist/commitlint/monorepo.cjs +22 -0
  41. package/dist/commitlint/monorepo.d.cts +21 -0
  42. package/dist/commitlint/monorepo.d.ts +21 -0
  43. package/dist/commitlint/monorepo.js +22 -0
  44. package/dist/index.cjs +11 -4
  45. package/dist/index.d.cts +2 -2
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.js +19 -12
  48. package/dist/release/config.cjs +3 -3
  49. package/dist/release/config.d.cts +3 -2
  50. package/dist/release/config.d.ts +3 -2
  51. package/dist/release/config.js +2 -2
  52. package/dist/types.cjs +12 -2
  53. package/dist/types.d.cts +153 -16
  54. package/dist/types.d.ts +153 -16
  55. package/dist/types.js +17 -7
  56. package/package.json +4 -46
  57. package/dist/chunk-OZ5QCRGG.js +0 -18
  58. package/dist/chunk-SXO5R5AG.cjs +0 -18
  59. package/dist/commit/config.cjs +0 -7
  60. package/dist/commit/config.d.cts +0 -7
  61. package/dist/commit/config.d.ts +0 -7
  62. package/dist/commit/config.js +0 -7
  63. package/dist/commitlint/config.cjs +0 -46
  64. package/dist/commitlint/config.js +0 -46
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunkXH6F7XTV_cjs.getConfig();
10
+ const config = await chunkLD4V463J_cjs.getConfig();
11
11
  try {
12
- chunkXH6F7XTV_cjs.handleProcess(config);
13
- chunkXH6F7XTV_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunkLD4V463J_cjs.handleProcess(config);
13
+ chunkLD4V463J_cjs.writeInfo("Running post-checkout hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunkXH6F7XTV_cjs.writeError(
18
+ chunkLD4V463J_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-checkout.
20
20
  Error: ${error?.message}`,
21
21
  config
22
22
  );
23
- chunkXH6F7XTV_cjs.exitWithError(config);
23
+ chunkLD4V463J_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
26
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
26
+ chunkLD4V463J_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkXH6F7XTV_cjs.writeFatal(
28
+ chunkLD4V463J_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkXH6F7XTV_cjs.exitWithError(config);
32
+ chunkLD4V463J_cjs.exitWithError(config);
33
33
  process.exit(1);
34
34
  }
35
35
  })();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-VATYGW5F.js';
5
5
 
6
6
  // bin/post-checkout.ts
7
7
  void (async () => {
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunkXH6F7XTV_cjs.getConfig();
10
+ const config = await chunkLD4V463J_cjs.getConfig();
11
11
  try {
12
- chunkXH6F7XTV_cjs.handleProcess(config);
13
- chunkXH6F7XTV_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunkLD4V463J_cjs.handleProcess(config);
13
+ chunkLD4V463J_cjs.writeInfo("Running post-commit hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunkXH6F7XTV_cjs.writeError(
18
+ chunkLD4V463J_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-commit.
20
20
  Error: ${error?.message}`,
21
21
  config
22
22
  );
23
- chunkXH6F7XTV_cjs.exitWithError(config);
23
+ chunkLD4V463J_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
26
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
26
+ chunkLD4V463J_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkXH6F7XTV_cjs.writeFatal(
28
+ chunkLD4V463J_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkXH6F7XTV_cjs.exitWithError(config);
32
+ chunkLD4V463J_cjs.exitWithError(config);
33
33
  process.exit(1);
34
34
  }
35
35
  })();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-VATYGW5F.js';
5
5
 
6
6
  // bin/post-commit.ts
7
7
  void (async () => {
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
7
7
 
8
8
  // bin/post-merge.ts
9
9
  void (async () => {
10
- const config = await chunkXH6F7XTV_cjs.getConfig();
10
+ const config = await chunkLD4V463J_cjs.getConfig();
11
11
  try {
12
- chunkXH6F7XTV_cjs.handleProcess(config);
13
- chunkXH6F7XTV_cjs.writeInfo("Running post-merge hook...", config);
12
+ chunkLD4V463J_cjs.handleProcess(config);
13
+ chunkLD4V463J_cjs.writeInfo("Running post-merge hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunkXH6F7XTV_cjs.writeError(
18
+ chunkLD4V463J_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
- chunkXH6F7XTV_cjs.exitWithError(config);
23
+ chunkLD4V463J_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
26
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
26
+ chunkLD4V463J_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkXH6F7XTV_cjs.writeFatal(
28
+ chunkLD4V463J_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkXH6F7XTV_cjs.exitWithError(config);
32
+ chunkLD4V463J_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-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-VATYGW5F.js';
5
5
 
6
6
  // bin/post-merge.ts
7
7
  void (async () => {
@@ -2,29 +2,29 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
5
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
6
6
 
7
7
  // bin/pre-commit.ts
8
8
  void (async () => {
9
- const config = await chunkXH6F7XTV_cjs.getConfig();
9
+ const config = await chunkLD4V463J_cjs.getConfig();
10
10
  try {
11
- chunkXH6F7XTV_cjs.handleProcess(config);
12
- chunkXH6F7XTV_cjs.writeInfo("Running pre-commit hook...", config);
11
+ chunkLD4V463J_cjs.handleProcess(config);
12
+ chunkLD4V463J_cjs.writeInfo("Running pre-commit hook...", config);
13
13
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
14
14
  if (chunkSWXHQXUT_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
15
- chunkXH6F7XTV_cjs.writeError(
15
+ chunkLD4V463J_cjs.writeError(
16
16
  "Please regenerate the package lock file before committing...",
17
17
  config
18
18
  );
19
- chunkXH6F7XTV_cjs.exitWithError(config);
19
+ chunkLD4V463J_cjs.exitWithError(config);
20
20
  }
21
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
21
+ chunkLD4V463J_cjs.exitWithSuccess(config);
22
22
  } catch (error) {
23
- chunkXH6F7XTV_cjs.writeFatal(
23
+ chunkLD4V463J_cjs.writeFatal(
24
24
  `A fatal error occurred while running the program: ${error.message}`,
25
25
  config
26
26
  );
27
- chunkXH6F7XTV_cjs.exitWithError(config);
27
+ chunkLD4V463J_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-AMSZ7DVW.js';
3
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-VATYGW5F.js';
4
4
 
5
5
  // bin/pre-commit.ts
6
6
  void (async () => {
@@ -2,26 +2,26 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
5
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
6
6
 
7
7
  // bin/pre-install.ts
8
8
  void (async () => {
9
- const config = await chunkXH6F7XTV_cjs.getConfig();
9
+ const config = await chunkLD4V463J_cjs.getConfig();
10
10
  try {
11
- chunkXH6F7XTV_cjs.handleProcess(config);
12
- chunkXH6F7XTV_cjs.writeInfo("Running pre-install hook...", config);
11
+ chunkLD4V463J_cjs.handleProcess(config);
12
+ chunkLD4V463J_cjs.writeInfo("Running pre-install hook...", config);
13
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
14
- chunkXH6F7XTV_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
14
+ chunkLD4V463J_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunkLD4V463J_cjs.exitWithSuccess(config);
16
16
  }
17
17
  chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
18
+ chunkLD4V463J_cjs.exitWithSuccess(config);
19
19
  } catch (error) {
20
- chunkXH6F7XTV_cjs.writeFatal(
20
+ chunkLD4V463J_cjs.writeFatal(
21
21
  `A fatal error occurred while running the program: ${error.message}`,
22
22
  config
23
23
  );
24
- chunkXH6F7XTV_cjs.exitWithError(config);
24
+ chunkLD4V463J_cjs.exitWithError(config);
25
25
  process.exit(1);
26
26
  }
27
27
  })();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { run } from './chunk-54Q5U5WW.js';
3
- import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7TA5K5AW.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-VATYGW5F.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 chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.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 chunkXH6F7XTV_cjs.getConfig();
17
+ const config = await chunkLD4V463J_cjs.getConfig();
18
18
  try {
19
- chunkXH6F7XTV_cjs.handleProcess(config);
20
- chunkXH6F7XTV_cjs.writeInfo("Running pre-push hook...", config);
19
+ chunkLD4V463J_cjs.handleProcess(config);
20
+ chunkLD4V463J_cjs.writeInfo("Running pre-push hook...", config);
21
21
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
- chunkXH6F7XTV_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
22
+ chunkLD4V463J_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
- chunkXH6F7XTV_cjs.writeError("\u274C Lock file validation failed", config);
57
+ chunkLD4V463J_cjs.writeError("\u274C Lock file validation failed", config);
58
58
  for (const error of errors) {
59
59
  console.error(error);
60
60
  }
61
- chunkXH6F7XTV_cjs.exitWithError(config);
61
+ chunkLD4V463J_cjs.exitWithError(config);
62
62
  }
63
- chunkXH6F7XTV_cjs.writeSuccess("Lock file is valid \u2705", config);
63
+ chunkLD4V463J_cjs.writeSuccess("Lock file is valid \u2705", config);
64
64
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
65
65
  try {
66
66
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
67
67
  } catch (error) {
68
- chunkXH6F7XTV_cjs.writeError(
68
+ chunkLD4V463J_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
- chunkXH6F7XTV_cjs.exitWithError(config);
73
+ chunkLD4V463J_cjs.exitWithError(config);
74
74
  }
75
75
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
76
+ chunkLD4V463J_cjs.exitWithSuccess(config);
77
77
  } catch (error) {
78
- chunkXH6F7XTV_cjs.writeFatal(
78
+ chunkLD4V463J_cjs.writeFatal(
79
79
  `A fatal error occurred while running the program: ${error.message}`,
80
80
  config
81
81
  );
82
- chunkXH6F7XTV_cjs.exitWithError(config);
82
+ chunkLD4V463J_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-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-VATYGW5F.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 chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
5
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
6
6
 
7
7
  // bin/prepare.ts
8
8
  void (async () => {
9
- const config = await chunkXH6F7XTV_cjs.getConfig();
9
+ const config = await chunkLD4V463J_cjs.getConfig();
10
10
  try {
11
- chunkXH6F7XTV_cjs.handleProcess(config);
12
- chunkXH6F7XTV_cjs.writeInfo("Running prepare hook...", config);
11
+ chunkLD4V463J_cjs.handleProcess(config);
12
+ chunkLD4V463J_cjs.writeInfo("Running prepare hook...", config);
13
13
  if (!process.env.CI && !process.env.STORM_CI) {
14
14
  chunkCIJVSMK2_cjs.run(config, "lefthook install");
15
15
  }
16
- chunkXH6F7XTV_cjs.exitWithSuccess(config);
16
+ chunkLD4V463J_cjs.exitWithSuccess(config);
17
17
  } catch (error) {
18
- chunkXH6F7XTV_cjs.writeFatal(
18
+ chunkLD4V463J_cjs.writeFatal(
19
19
  `A fatal error occurred while running the program: ${error.message}`,
20
20
  config
21
21
  );
22
- chunkXH6F7XTV_cjs.exitWithError(config);
22
+ chunkLD4V463J_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-54Q5U5WW.js';
3
- import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7TA5K5AW.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-VATYGW5F.js';
4
4
 
5
5
  // bin/prepare.ts
6
6
  void (async () => {
@@ -2,20 +2,20 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
- var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
5
+ var chunkLD4V463J_cjs = require('./chunk-LD4V463J.cjs');
6
6
 
7
7
  // bin/version-warning.ts
8
8
  void (async () => {
9
- const config = await chunkXH6F7XTV_cjs.getConfig();
9
+ const config = await chunkLD4V463J_cjs.getConfig();
10
10
  try {
11
- chunkXH6F7XTV_cjs.handleProcess(config);
11
+ chunkLD4V463J_cjs.handleProcess(config);
12
12
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
13
13
  } catch (error) {
14
- chunkXH6F7XTV_cjs.writeFatal(
14
+ chunkLD4V463J_cjs.writeFatal(
15
15
  `A fatal error occurred while running the program: ${error.message}`,
16
16
  config
17
17
  );
18
- chunkXH6F7XTV_cjs.exitWithError(config);
18
+ chunkLD4V463J_cjs.exitWithError(config);
19
19
  process.exit(1);
20
20
  }
21
21
  })();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
- import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-7TA5K5AW.js';
3
+ import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-VATYGW5F.js';
4
4
 
5
5
  // bin/version-warning.ts
6
6
  void (async () => {
@@ -128,7 +128,7 @@ var COMMIT_TYPES = {
128
128
  }
129
129
  }
130
130
  };
131
- var DEFAULT_COMMIT_QUESTIONS = {
131
+ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
132
132
  type: {
133
133
  type: "select",
134
134
  title: "Commit Type",
@@ -143,15 +143,6 @@ var DEFAULT_COMMIT_QUESTIONS = {
143
143
  maxLength: 20,
144
144
  minLength: 3
145
145
  },
146
- scope: {
147
- type: "select",
148
- title: "Commit Scope",
149
- description: "Select the monorepo project that is primarily impacted by this change",
150
- enum: {},
151
- defaultValue: "monorepo",
152
- maxLength: 50,
153
- minLength: 1
154
- },
155
146
  subject: {
156
147
  type: "input",
157
148
  title: "Commit Subject",
@@ -194,6 +185,24 @@ var DEFAULT_COMMIT_QUESTIONS = {
194
185
  minLength: 3
195
186
  }
196
187
  };
188
+ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
189
+ type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
190
+ scope: {
191
+ type: "select",
192
+ title: "Commit Scope",
193
+ description: "Select the project that's the most impacted by this change",
194
+ enum: {},
195
+ defaultValue: "monorepo",
196
+ maxLength: 50,
197
+ minLength: 1
198
+ },
199
+ subject: DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
200
+ body: DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
201
+ isBreaking: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
202
+ breakingBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
203
+ isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
204
+ issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
205
+ };
197
206
  var DEFAULT_COMMIT_PROMPT_MESSAGES = {
198
207
  skip: "press enter to skip",
199
208
  max: "must be %d chars at most",
@@ -203,13 +212,21 @@ var DEFAULT_COMMIT_PROMPT_MESSAGES = {
203
212
  lowerLimitWarning: "%s is %d characters less than the lower limit",
204
213
  closedIssueMessage: "Closes: "
205
214
  };
206
- var DEFAULT_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
207
- var DEFAULT_COMMIT_SETTINGS = {
215
+ var DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
216
+ var DEFAULT_MINIMAL_COMMIT_SETTINGS = {
217
+ enableMultipleScopes: false,
218
+ disableEmoji: true,
219
+ breakingChangePrefix: "\u{1F4A3} ",
220
+ closedIssuePrefix: "\u2705 ",
221
+ format: DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT
222
+ };
223
+ var DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
224
+ var DEFAULT_MONOREPO_COMMIT_SETTINGS = {
208
225
  enableMultipleScopes: false,
209
226
  disableEmoji: true,
210
227
  breakingChangePrefix: "\u{1F4A3} ",
211
228
  closedIssuePrefix: "\u2705 ",
212
- format: DEFAULT_COMMIT_MESSAGE_FORMAT
229
+ format: DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT
213
230
  };
214
231
  var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
215
232
  RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
@@ -217,12 +234,65 @@ var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
217
234
  RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
218
235
  return RuleConfigSeverity2;
219
236
  })(RuleConfigSeverity || {});
237
+ var DEFAULT_MINIMAL_COMMIT_RULES = {
238
+ "body-leading-blank": [1 /* Warning */, "always"],
239
+ "body-max-length": [2 /* Error */, "always", 600],
240
+ "footer-leading-blank": [1 /* Warning */, "always"],
241
+ "footer-max-line-length": [2 /* Error */, "always", 150],
242
+ "header-max-length": [2 /* Error */, "always", 150],
243
+ "header-trim": [2 /* Error */, "always"],
244
+ "subject-case": [2 /* Error */, "always", ["sentence-case"]],
245
+ "subject-empty": [2 /* Error */, "never"],
246
+ "subject-full-stop": [2 /* Error */, "never", "."],
247
+ "subject-max-length": [2 /* Error */, "always", 150],
248
+ "subject-min-length": [2 /* Error */, "always", 3],
249
+ "type-case": [2 /* Error */, "always", "kebab-case"],
250
+ "type-empty": [2 /* Error */, "never"],
251
+ "type-enum": [
252
+ 2 /* Error */,
253
+ "always",
254
+ Object.keys(COMMIT_TYPES)
255
+ ],
256
+ "type-max-length": [2 /* Error */, "always", 20],
257
+ "type-min-length": [2 /* Error */, "always", 3],
258
+ "scope-case": 0 /* Disabled */,
259
+ "scope-empty": 0 /* Disabled */
260
+ };
261
+ var DEFAULT_MONOREPO_COMMIT_RULES = {
262
+ "body-leading-blank": [1 /* Warning */, "always"],
263
+ "body-max-length": [2 /* Error */, "always", 600],
264
+ "footer-leading-blank": [1 /* Warning */, "always"],
265
+ "footer-max-line-length": [2 /* Error */, "always", 150],
266
+ "header-max-length": [2 /* Error */, "always", 150],
267
+ "header-trim": [2 /* Error */, "always"],
268
+ "subject-case": [2 /* Error */, "always", ["sentence-case"]],
269
+ "subject-empty": [2 /* Error */, "never"],
270
+ "subject-full-stop": [2 /* Error */, "never", "."],
271
+ "subject-max-length": [2 /* Error */, "always", 150],
272
+ "subject-min-length": [2 /* Error */, "always", 3],
273
+ "type-case": [2 /* Error */, "always", "kebab-case"],
274
+ "type-empty": [2 /* Error */, "never"],
275
+ "type-enum": [
276
+ 2 /* Error */,
277
+ "always",
278
+ Object.keys(COMMIT_TYPES)
279
+ ],
280
+ "type-max-length": [2 /* Error */, "always", 20],
281
+ "type-min-length": [2 /* Error */, "always", 3],
282
+ "scope-case": [2 /* Error */, "always", ["kebab-case"]],
283
+ "scope-empty": [2 /* Error */, "never"]
284
+ };
220
285
 
221
286
  export {
222
287
  COMMIT_TYPES,
223
- DEFAULT_COMMIT_QUESTIONS,
288
+ DEFAULT_MINIMAL_COMMIT_QUESTIONS,
289
+ DEFAULT_MONOREPO_COMMIT_QUESTIONS,
224
290
  DEFAULT_COMMIT_PROMPT_MESSAGES,
225
- DEFAULT_COMMIT_MESSAGE_FORMAT,
226
- DEFAULT_COMMIT_SETTINGS,
227
- RuleConfigSeverity
291
+ DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT,
292
+ DEFAULT_MINIMAL_COMMIT_SETTINGS,
293
+ DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT,
294
+ DEFAULT_MONOREPO_COMMIT_SETTINGS,
295
+ RuleConfigSeverity,
296
+ DEFAULT_MINIMAL_COMMIT_RULES,
297
+ DEFAULT_MONOREPO_COMMIT_RULES
228
298
  };
@@ -0,0 +1,19 @@
1
+ import {
2
+ COMMIT_TYPES,
3
+ DEFAULT_COMMIT_PROMPT_MESSAGES,
4
+ DEFAULT_MONOREPO_COMMIT_QUESTIONS,
5
+ DEFAULT_MONOREPO_COMMIT_SETTINGS
6
+ } from "./chunk-5XXXTVPU.js";
7
+
8
+ // src/commit/config/monorepo.ts
9
+ var config = {
10
+ settings: DEFAULT_MONOREPO_COMMIT_SETTINGS,
11
+ messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
12
+ questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
13
+ types: COMMIT_TYPES
14
+ };
15
+ var monorepo_default = config;
16
+
17
+ export {
18
+ monorepo_default
19
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkZE542BCUcjs = require('./chunk-ZE542BCU.cjs');
7
+
8
+ // src/commit/config/monorepo.ts
9
+ var config = {
10
+ settings: _chunkZE542BCUcjs.DEFAULT_MONOREPO_COMMIT_SETTINGS,
11
+ messages: _chunkZE542BCUcjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
12
+ questions: _chunkZE542BCUcjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
13
+ types: _chunkZE542BCUcjs.COMMIT_TYPES
14
+ };
15
+ var monorepo_default = config;
16
+
17
+
18
+
19
+ exports.monorepo_default = monorepo_default;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  COMMIT_TYPES,
3
- DEFAULT_COMMIT_QUESTIONS
4
- } from "./chunk-A4HFPO7F.js";
3
+ DEFAULT_MONOREPO_COMMIT_QUESTIONS
4
+ } from "./chunk-5XXXTVPU.js";
5
5
 
6
6
  // src/release/config.ts
7
7
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
8
- questions: DEFAULT_COMMIT_QUESTIONS,
8
+ questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
9
9
  types: COMMIT_TYPES
10
10
  };
11
11
  var DEFAULT_RELEASE_GROUP_CONFIG = {
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMDOOV3KFcjs = require('./chunk-MDOOV3KF.cjs');
4
+ var _chunkZE542BCUcjs = require('./chunk-ZE542BCU.cjs');
5
5
 
6
6
  // src/release/config.ts
7
7
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
8
- questions: _chunkMDOOV3KFcjs.DEFAULT_COMMIT_QUESTIONS,
9
- types: _chunkMDOOV3KFcjs.COMMIT_TYPES
8
+ questions: _chunkZE542BCUcjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
9
+ types: _chunkZE542BCUcjs.COMMIT_TYPES
10
10
  };
11
11
  var DEFAULT_RELEASE_GROUP_CONFIG = {
12
12
  projectsRelationship: "independent",