@storm-software/git-tools 2.113.15 → 2.113.18

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 (66) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-TOALWLBQ.js → chunk-54Q5U5WW.js} +2 -8
  3. package/bin/chunk-AMSZ7DVW.js +17 -0
  4. package/bin/chunk-CIJVSMK2.cjs +23 -0
  5. package/bin/chunk-DDGJVTT5.cjs +1622 -0
  6. package/bin/chunk-NRQQ6RND.js +1581 -0
  7. package/bin/{chunk-TDO6B2H4.js → chunk-SWXHQXUT.cjs} +3 -8
  8. package/bin/git.cjs +3013 -81697
  9. package/bin/git.js +2825 -91795
  10. package/bin/post-checkout.cjs +16 -36
  11. package/bin/post-checkout.js +3 -25
  12. package/bin/post-commit.cjs +16 -36
  13. package/bin/post-commit.js +3 -25
  14. package/bin/post-merge.cjs +16 -36
  15. package/bin/post-merge.js +3 -25
  16. package/bin/pre-commit.cjs +13 -32
  17. package/bin/pre-commit.js +2 -23
  18. package/bin/pre-install.cjs +12 -29
  19. package/bin/pre-install.js +2 -21
  20. package/bin/pre-push.cjs +33 -50
  21. package/bin/pre-push.js +6 -30
  22. package/bin/prepare.cjs +10 -27
  23. package/bin/prepare.js +2 -21
  24. package/bin/version-warning.cjs +8 -23
  25. package/bin/version-warning.js +2 -19
  26. package/package.json +15 -32
  27. package/bin/chunk-2EJN2ZIP.cjs +0 -3631
  28. package/bin/chunk-2FWQQ2X4.js +0 -35624
  29. package/bin/chunk-335YPSVH.cjs +0 -111
  30. package/bin/chunk-5OLGPOTK.js +0 -1003
  31. package/bin/chunk-5QFXXGFE.js +0 -7427
  32. package/bin/chunk-D2AN4H4B.js +0 -111
  33. package/bin/chunk-DTYNP6HG.js +0 -3634
  34. package/bin/chunk-FMYKTN2Z.cjs +0 -7427
  35. package/bin/chunk-GSZ2Y7H4.cjs +0 -1003
  36. package/bin/chunk-GWDOCACN.cjs +0 -27
  37. package/bin/chunk-H4MEIOPL.cjs +0 -476
  38. package/bin/chunk-HTVOKCRJ.cjs +0 -25
  39. package/bin/chunk-IG6EXAQU.cjs +0 -59
  40. package/bin/chunk-JHBHEVIE.js +0 -55
  41. package/bin/chunk-MXO7CLUN.cjs +0 -739
  42. package/bin/chunk-OKG5KNKQ.js +0 -419
  43. package/bin/chunk-QWTKUQL3.js +0 -739
  44. package/bin/chunk-R7ZVOQ5D.js +0 -476
  45. package/bin/chunk-TVPM4C6Y.cjs +0 -419
  46. package/bin/chunk-UQFYXF6V.cjs +0 -74
  47. package/bin/chunk-VU7MBHMN.js +0 -74
  48. package/bin/chunk-WOADGD4X.cjs +0 -35563
  49. package/bin/dist-GTHSKIW6.cjs +0 -16571
  50. package/bin/dist-JFDTSOSQ.js +0 -33
  51. package/bin/dist-JIPEOSES.js +0 -16736
  52. package/bin/dist-S2SQNR26.cjs +0 -33
  53. package/bin/esm-MJTK2O7U.js +0 -1708
  54. package/bin/esm-NOFJXYSW.cjs +0 -1708
  55. package/bin/json5-PMDKQHWU.js +0 -10
  56. package/bin/json5-XWK64HEF.cjs +0 -10
  57. package/bin/jsonc-GWY6R4PV.js +0 -15
  58. package/bin/jsonc-SBYIKOG2.cjs +0 -15
  59. package/bin/multipart-parser-HT3QRMAQ.cjs +0 -181
  60. package/bin/multipart-parser-LDIDKHXR.js +0 -185
  61. package/bin/toml-CWI7LORJ.cjs +0 -10
  62. package/bin/toml-KVVESQIU.js +0 -10
  63. package/bin/utils-EKXINDVD.js +0 -101
  64. package/bin/utils-P2DNOMLG.cjs +0 -101
  65. package/bin/yaml-WPTJ2ZU5.cjs +0 -10
  66. package/bin/yaml-XEVR3LQS.js +0 -10
@@ -1,55 +1,35 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+ 'use strict';
3
3
 
4
- var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
5
-
6
-
7
- var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
17
- require('./chunk-FMYKTN2Z.cjs');
18
- require('./chunk-MXO7CLUN.cjs');
19
- require('./chunk-GSZ2Y7H4.cjs');
20
- require('./chunk-H4MEIOPL.cjs');
21
- require('./chunk-TVPM4C6Y.cjs');
22
- require('./chunk-UQFYXF6V.cjs');
23
-
24
-
25
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
+ var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
+ var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
26
7
 
27
8
  // bin/post-checkout.ts
28
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
29
9
  void (async () => {
30
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
10
+ const config = await chunkDDGJVTT5_cjs.getConfig();
31
11
  try {
32
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
33
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
34
- _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
12
+ chunkDDGJVTT5_cjs.handleProcess(config);
13
+ chunkDDGJVTT5_cjs.writeInfo("Running post-checkout hook...", config);
14
+ chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
35
15
  try {
36
- _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
16
+ chunkCIJVSMK2_cjs.run(config, "git-lfs version");
37
17
  } catch (error) {
38
- _chunkWOADGD4Xcjs.writeError.call(void 0,
18
+ chunkDDGJVTT5_cjs.writeError(
39
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.
40
- Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
20
+ Error: ${error?.message}`,
41
21
  config
42
22
  );
43
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
23
+ chunkDDGJVTT5_cjs.exitWithError(config);
44
24
  }
45
- _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-checkout");
46
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
25
+ chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
26
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
47
27
  } catch (error) {
48
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
28
+ chunkDDGJVTT5_cjs.writeFatal(
49
29
  `A fatal error occurred while running the program: ${error.message}`,
50
30
  config
51
31
  );
52
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
32
+ chunkDDGJVTT5_cjs.exitWithError(config);
53
33
  process.exit(1);
54
34
  }
55
35
  })();
@@ -1,31 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- checkPackageVersion
4
- } from "./chunk-TDO6B2H4.js";
5
- import {
6
- run
7
- } from "./chunk-TOALWLBQ.js";
8
- import {
9
- exitWithError,
10
- exitWithSuccess,
11
- getConfig,
12
- handleProcess,
13
- writeError,
14
- writeFatal,
15
- writeInfo
16
- } from "./chunk-2FWQQ2X4.js";
17
- import "./chunk-5QFXXGFE.js";
18
- import "./chunk-QWTKUQL3.js";
19
- import "./chunk-5OLGPOTK.js";
20
- import "./chunk-R7ZVOQ5D.js";
21
- import "./chunk-OKG5KNKQ.js";
22
- import "./chunk-VU7MBHMN.js";
23
- import {
24
- init_esm_shims
25
- } from "./chunk-JHBHEVIE.js";
2
+ import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
+ import { run } from './chunk-54Q5U5WW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-NRQQ6RND.js';
26
5
 
27
6
  // bin/post-checkout.ts
28
- init_esm_shims();
29
7
  void (async () => {
30
8
  const config = await getConfig();
31
9
  try {
@@ -1,55 +1,35 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+ 'use strict';
3
3
 
4
- var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
5
-
6
-
7
- var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
17
- require('./chunk-FMYKTN2Z.cjs');
18
- require('./chunk-MXO7CLUN.cjs');
19
- require('./chunk-GSZ2Y7H4.cjs');
20
- require('./chunk-H4MEIOPL.cjs');
21
- require('./chunk-TVPM4C6Y.cjs');
22
- require('./chunk-UQFYXF6V.cjs');
23
-
24
-
25
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
+ var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
+ var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
26
7
 
27
8
  // bin/post-commit.ts
28
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
29
9
  void (async () => {
30
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
10
+ const config = await chunkDDGJVTT5_cjs.getConfig();
31
11
  try {
32
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
33
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
34
- _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
12
+ chunkDDGJVTT5_cjs.handleProcess(config);
13
+ chunkDDGJVTT5_cjs.writeInfo("Running post-commit hook...", config);
14
+ chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
35
15
  try {
36
- _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
16
+ chunkCIJVSMK2_cjs.run(config, "git-lfs version");
37
17
  } catch (error) {
38
- _chunkWOADGD4Xcjs.writeError.call(void 0,
18
+ chunkDDGJVTT5_cjs.writeError(
39
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.
40
- Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
20
+ Error: ${error?.message}`,
41
21
  config
42
22
  );
43
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
23
+ chunkDDGJVTT5_cjs.exitWithError(config);
44
24
  }
45
- _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-commit");
46
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
25
+ chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
26
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
47
27
  } catch (error) {
48
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
28
+ chunkDDGJVTT5_cjs.writeFatal(
49
29
  `A fatal error occurred while running the program: ${error.message}`,
50
30
  config
51
31
  );
52
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
32
+ chunkDDGJVTT5_cjs.exitWithError(config);
53
33
  process.exit(1);
54
34
  }
55
35
  })();
@@ -1,31 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- checkPackageVersion
4
- } from "./chunk-TDO6B2H4.js";
5
- import {
6
- run
7
- } from "./chunk-TOALWLBQ.js";
8
- import {
9
- exitWithError,
10
- exitWithSuccess,
11
- getConfig,
12
- handleProcess,
13
- writeError,
14
- writeFatal,
15
- writeInfo
16
- } from "./chunk-2FWQQ2X4.js";
17
- import "./chunk-5QFXXGFE.js";
18
- import "./chunk-QWTKUQL3.js";
19
- import "./chunk-5OLGPOTK.js";
20
- import "./chunk-R7ZVOQ5D.js";
21
- import "./chunk-OKG5KNKQ.js";
22
- import "./chunk-VU7MBHMN.js";
23
- import {
24
- init_esm_shims
25
- } from "./chunk-JHBHEVIE.js";
2
+ import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
+ import { run } from './chunk-54Q5U5WW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-NRQQ6RND.js';
26
5
 
27
6
  // bin/post-commit.ts
28
- init_esm_shims();
29
7
  void (async () => {
30
8
  const config = await getConfig();
31
9
  try {
@@ -1,55 +1,35 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+ 'use strict';
3
3
 
4
- var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
5
-
6
-
7
- var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
17
- require('./chunk-FMYKTN2Z.cjs');
18
- require('./chunk-MXO7CLUN.cjs');
19
- require('./chunk-GSZ2Y7H4.cjs');
20
- require('./chunk-H4MEIOPL.cjs');
21
- require('./chunk-TVPM4C6Y.cjs');
22
- require('./chunk-UQFYXF6V.cjs');
23
-
24
-
25
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
+ var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
+ var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
26
7
 
27
8
  // bin/post-merge.ts
28
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
29
9
  void (async () => {
30
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
10
+ const config = await chunkDDGJVTT5_cjs.getConfig();
31
11
  try {
32
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
33
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
34
- _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
12
+ chunkDDGJVTT5_cjs.handleProcess(config);
13
+ chunkDDGJVTT5_cjs.writeInfo("Running post-merge hook...", config);
14
+ chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
35
15
  try {
36
- _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
16
+ chunkCIJVSMK2_cjs.run(config, "git-lfs version");
37
17
  } catch (error) {
38
- _chunkWOADGD4Xcjs.writeError.call(void 0,
18
+ chunkDDGJVTT5_cjs.writeError(
39
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.
40
- Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
20
+ Error: ${error?.message}`,
41
21
  config
42
22
  );
43
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
23
+ chunkDDGJVTT5_cjs.exitWithError(config);
44
24
  }
45
- _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-merge");
46
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
25
+ chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
26
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
47
27
  } catch (error) {
48
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
28
+ chunkDDGJVTT5_cjs.writeFatal(
49
29
  `A fatal error occurred while running the program: ${error.message}`,
50
30
  config
51
31
  );
52
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
32
+ chunkDDGJVTT5_cjs.exitWithError(config);
53
33
  process.exit(1);
54
34
  }
55
35
  })();
package/bin/post-merge.js CHANGED
@@ -1,31 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- checkPackageVersion
4
- } from "./chunk-TDO6B2H4.js";
5
- import {
6
- run
7
- } from "./chunk-TOALWLBQ.js";
8
- import {
9
- exitWithError,
10
- exitWithSuccess,
11
- getConfig,
12
- handleProcess,
13
- writeError,
14
- writeFatal,
15
- writeInfo
16
- } from "./chunk-2FWQQ2X4.js";
17
- import "./chunk-5QFXXGFE.js";
18
- import "./chunk-QWTKUQL3.js";
19
- import "./chunk-5OLGPOTK.js";
20
- import "./chunk-R7ZVOQ5D.js";
21
- import "./chunk-OKG5KNKQ.js";
22
- import "./chunk-VU7MBHMN.js";
23
- import {
24
- init_esm_shims
25
- } from "./chunk-JHBHEVIE.js";
2
+ import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
+ import { run } from './chunk-54Q5U5WW.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-NRQQ6RND.js';
26
5
 
27
6
  // bin/post-merge.ts
28
- init_esm_shims();
29
7
  void (async () => {
30
8
  const config = await getConfig();
31
9
  try {
@@ -1,49 +1,30 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+ 'use strict';
3
3
 
4
-
5
- var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
15
- require('./chunk-FMYKTN2Z.cjs');
16
- require('./chunk-MXO7CLUN.cjs');
17
- require('./chunk-GSZ2Y7H4.cjs');
18
- require('./chunk-H4MEIOPL.cjs');
19
- require('./chunk-TVPM4C6Y.cjs');
20
- require('./chunk-UQFYXF6V.cjs');
21
-
22
-
23
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
+ var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
24
6
 
25
7
  // bin/pre-commit.ts
26
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
27
8
  void (async () => {
28
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
9
+ const config = await chunkDDGJVTT5_cjs.getConfig();
29
10
  try {
30
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
31
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
32
- _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
33
- if (_chunkHTVOKCRJcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
34
- _chunkWOADGD4Xcjs.writeError.call(void 0,
11
+ chunkDDGJVTT5_cjs.handleProcess(config);
12
+ chunkDDGJVTT5_cjs.writeInfo("Running pre-commit hook...", config);
13
+ chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
14
+ if (chunkSWXHQXUT_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
15
+ chunkDDGJVTT5_cjs.writeError(
35
16
  "Please regenerate the package lock file before committing...",
36
17
  config
37
18
  );
38
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
19
+ chunkDDGJVTT5_cjs.exitWithError(config);
39
20
  }
40
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
21
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
41
22
  } catch (error) {
42
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
23
+ chunkDDGJVTT5_cjs.writeFatal(
43
24
  `A fatal error occurred while running the program: ${error.message}`,
44
25
  config
45
26
  );
46
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
27
+ chunkDDGJVTT5_cjs.exitWithError(config);
47
28
  process.exit(1);
48
29
  }
49
30
  })();
package/bin/pre-commit.js CHANGED
@@ -1,29 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- checkPackageVersion,
4
- isPackageVersionChanged
5
- } from "./chunk-TDO6B2H4.js";
6
- import {
7
- exitWithError,
8
- exitWithSuccess,
9
- getConfig,
10
- handleProcess,
11
- writeError,
12
- writeFatal,
13
- writeInfo
14
- } from "./chunk-2FWQQ2X4.js";
15
- import "./chunk-5QFXXGFE.js";
16
- import "./chunk-QWTKUQL3.js";
17
- import "./chunk-5OLGPOTK.js";
18
- import "./chunk-R7ZVOQ5D.js";
19
- import "./chunk-OKG5KNKQ.js";
20
- import "./chunk-VU7MBHMN.js";
21
- import {
22
- init_esm_shims
23
- } from "./chunk-JHBHEVIE.js";
2
+ import { checkPackageVersion, isPackageVersionChanged } from './chunk-AMSZ7DVW.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-NRQQ6RND.js';
24
4
 
25
5
  // bin/pre-commit.ts
26
- init_esm_shims();
27
6
  void (async () => {
28
7
  const config = await getConfig();
29
8
  try {
@@ -1,44 +1,27 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
2
+ 'use strict';
3
3
 
4
- var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
13
- require('./chunk-FMYKTN2Z.cjs');
14
- require('./chunk-MXO7CLUN.cjs');
15
- require('./chunk-GSZ2Y7H4.cjs');
16
- require('./chunk-H4MEIOPL.cjs');
17
- require('./chunk-TVPM4C6Y.cjs');
18
- require('./chunk-UQFYXF6V.cjs');
19
-
20
-
21
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
4
+ var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
22
6
 
23
7
  // bin/pre-install.ts
24
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
25
8
  void (async () => {
26
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
9
+ const config = await chunkDDGJVTT5_cjs.getConfig();
27
10
  try {
28
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
29
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
11
+ chunkDDGJVTT5_cjs.handleProcess(config);
12
+ chunkDDGJVTT5_cjs.writeInfo("Running pre-install hook...", config);
30
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
31
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
14
+ chunkDDGJVTT5_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
33
16
  }
34
- _chunkGWDOCACNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
35
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
17
+ chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
36
19
  } catch (error) {
37
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
20
+ chunkDDGJVTT5_cjs.writeFatal(
38
21
  `A fatal error occurred while running the program: ${error.message}`,
39
22
  config
40
23
  );
41
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
24
+ chunkDDGJVTT5_cjs.exitWithError(config);
42
25
  process.exit(1);
43
26
  }
44
27
  })();
@@ -1,27 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- run
4
- } from "./chunk-TOALWLBQ.js";
5
- import {
6
- exitWithError,
7
- exitWithSuccess,
8
- getConfig,
9
- handleProcess,
10
- writeFatal,
11
- writeInfo
12
- } from "./chunk-2FWQQ2X4.js";
13
- import "./chunk-5QFXXGFE.js";
14
- import "./chunk-QWTKUQL3.js";
15
- import "./chunk-5OLGPOTK.js";
16
- import "./chunk-R7ZVOQ5D.js";
17
- import "./chunk-OKG5KNKQ.js";
18
- import "./chunk-VU7MBHMN.js";
19
- import {
20
- init_esm_shims
21
- } from "./chunk-JHBHEVIE.js";
2
+ import { run } from './chunk-54Q5U5WW.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-NRQQ6RND.js';
22
4
 
23
5
  // bin/pre-install.ts
24
- init_esm_shims();
25
6
  void (async () => {
26
7
  const config = await getConfig();
27
8
  try {
package/bin/pre-push.cjs CHANGED
@@ -1,58 +1,41 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+ 'use strict';
3
3
 
4
- var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
4
+ var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
+ var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
+ var chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
7
+ var fs = require('fs');
8
+ var promises = require('fs/promises');
9
+ var path = require('path');
5
10
 
11
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
12
 
7
- var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
13
+ var fs__default = /*#__PURE__*/_interopDefault(fs);
14
+ var path__default = /*#__PURE__*/_interopDefault(path);
8
15
 
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
- var _chunkWOADGD4Xcjs = require('./chunk-WOADGD4X.cjs');
18
- require('./chunk-FMYKTN2Z.cjs');
19
- require('./chunk-MXO7CLUN.cjs');
20
- require('./chunk-GSZ2Y7H4.cjs');
21
- require('./chunk-H4MEIOPL.cjs');
22
- require('./chunk-TVPM4C6Y.cjs');
23
- require('./chunk-UQFYXF6V.cjs');
24
-
25
-
26
- var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
27
-
28
- // bin/pre-push.ts
29
- _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
30
- var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
31
- var _promises = require('fs/promises');
32
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
33
16
  void (async () => {
34
- const config = await _chunkWOADGD4Xcjs.getConfig.call(void 0, );
17
+ const config = await chunkDDGJVTT5_cjs.getConfig();
35
18
  try {
36
- _chunkWOADGD4Xcjs.handleProcess.call(void 0, config);
37
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
38
- _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
39
- _chunkWOADGD4Xcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
19
+ chunkDDGJVTT5_cjs.handleProcess(config);
20
+ chunkDDGJVTT5_cjs.writeInfo("Running pre-push hook...", config);
21
+ chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
+ chunkDDGJVTT5_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
40
23
  const errors = [];
41
- if (_fs2.default.existsSync(
42
- _path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json")
24
+ if (fs__default.default.existsSync(
25
+ path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
43
26
  )) {
44
27
  errors.push(
45
28
  'Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"'
46
29
  );
47
30
  }
48
- if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "yarn.lock"))) {
31
+ if (fs__default.default.existsSync(path__default.default.join(config.workspaceRoot ?? "./", "yarn.lock"))) {
49
32
  errors.push(
50
33
  'Invalid occurrence of "yarn.lock" file. Please remove it and use only "pnpm-lock.yaml"'
51
34
  );
52
35
  }
53
36
  try {
54
- const content = await _promises.readFile.call(void 0,
55
- _path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "pnpm-lock.yaml"),
37
+ const content = await promises.readFile(
38
+ path__default.default.join(config.workspaceRoot ?? "./", "pnpm-lock.yaml"),
56
39
  {
57
40
  encoding: "utf8"
58
41
  }
@@ -67,36 +50,36 @@ void (async () => {
67
50
  'The "pnpm-lock.yaml" has reference to tarball package. Please use npm registry only'
68
51
  );
69
52
  }
70
- } catch (e) {
53
+ } catch {
71
54
  errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
72
55
  }
73
56
  if (errors.length > 0) {
74
- _chunkWOADGD4Xcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
57
+ chunkDDGJVTT5_cjs.writeError("\u274C Lock file validation failed", config);
75
58
  for (const error of errors) {
76
59
  console.error(error);
77
60
  }
78
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
61
+ chunkDDGJVTT5_cjs.exitWithError(config);
79
62
  }
80
- _chunkWOADGD4Xcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
81
- _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
63
+ chunkDDGJVTT5_cjs.writeSuccess("Lock file is valid \u2705", config);
64
+ chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
82
65
  try {
83
- _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
66
+ chunkCIJVSMK2_cjs.run(config, "git-lfs version");
84
67
  } catch (error) {
85
- _chunkWOADGD4Xcjs.writeError.call(void 0,
68
+ chunkDDGJVTT5_cjs.writeError(
86
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.
87
- Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
70
+ Error: ${error?.message}`,
88
71
  config
89
72
  );
90
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
73
+ chunkDDGJVTT5_cjs.exitWithError(config);
91
74
  }
92
- _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
93
- _chunkWOADGD4Xcjs.exitWithSuccess.call(void 0, config);
75
+ chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
+ chunkDDGJVTT5_cjs.exitWithSuccess(config);
94
77
  } catch (error) {
95
- _chunkWOADGD4Xcjs.writeFatal.call(void 0,
78
+ chunkDDGJVTT5_cjs.writeFatal(
96
79
  `A fatal error occurred while running the program: ${error.message}`,
97
80
  config
98
81
  );
99
- _chunkWOADGD4Xcjs.exitWithError.call(void 0, config);
82
+ chunkDDGJVTT5_cjs.exitWithError(config);
100
83
  process.exit(1);
101
84
  }
102
85
  })();