@storm-software/git-tools 2.88.1 → 2.88.3

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.
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
16
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
17
17
  require('./chunk-JMRHG3KS.cjs');
18
18
  require('./chunk-NHO7HSOE.cjs');
19
19
  require('./chunk-WOZSAFMN.cjs');
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
27
27
  // bin/post-merge.ts
28
28
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
30
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
33
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
32
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
33
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
34
34
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkGZO33STHcjs.writeError.call(void 0, `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.
38
+ _chunkUJOC6MGUcjs.writeError.call(void 0, `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.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
40
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-merge");
43
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
45
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
package/bin/post-merge.js CHANGED
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  exitWithError,
10
10
  exitWithSuccess,
11
+ getConfig,
11
12
  handleProcess,
12
- loadStormConfig,
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-U55MG3QC.js";
16
+ } from "./chunk-PLNZHR5C.js";
17
17
  import "./chunk-BNZUDAPR.js";
18
18
  import "./chunk-4NALH4AO.js";
19
19
  import "./chunk-3QBEWJXQ.js";
@@ -27,7 +27,7 @@ import {
27
27
  // bin/post-merge.ts
28
28
  init_esm_shims();
29
29
  void (async () => {
30
- const config = await loadStormConfig();
30
+ const config = await getConfig();
31
31
  try {
32
32
  handleProcess(config);
33
33
  writeInfo("Running post-merge hook...", config);
@@ -11,7 +11,7 @@ var _chunkBXSXKKIZcjs = require('./chunk-BXSXKKIZ.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
14
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
15
15
  require('./chunk-JMRHG3KS.cjs');
16
16
  require('./chunk-NHO7HSOE.cjs');
17
17
  require('./chunk-WOZSAFMN.cjs');
@@ -25,19 +25,19 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
25
25
  // bin/pre-commit.ts
26
26
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
27
27
  void (async () => {
28
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
28
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
29
29
  try {
30
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
31
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
30
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
31
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
32
32
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
33
33
  if (_chunkBXSXKKIZcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
34
- _chunkGZO33STHcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
34
+ _chunkUJOC6MGUcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
36
36
  }
37
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
37
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
38
38
  } catch (error) {
39
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
39
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
41
41
  process.exit(1);
42
42
  }
43
43
  })();
package/bin/pre-commit.js CHANGED
@@ -6,12 +6,12 @@ import {
6
6
  import {
7
7
  exitWithError,
8
8
  exitWithSuccess,
9
+ getConfig,
9
10
  handleProcess,
10
- loadStormConfig,
11
11
  writeError,
12
12
  writeFatal,
13
13
  writeInfo
14
- } from "./chunk-U55MG3QC.js";
14
+ } from "./chunk-PLNZHR5C.js";
15
15
  import "./chunk-BNZUDAPR.js";
16
16
  import "./chunk-4NALH4AO.js";
17
17
  import "./chunk-3QBEWJXQ.js";
@@ -25,7 +25,7 @@ import {
25
25
  // bin/pre-commit.ts
26
26
  init_esm_shims();
27
27
  void (async () => {
28
- const config = await loadStormConfig();
28
+ const config = await getConfig();
29
29
  try {
30
30
  handleProcess(config);
31
31
  writeInfo("Running pre-commit hook...", config);
@@ -9,7 +9,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
12
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
13
13
  require('./chunk-JMRHG3KS.cjs');
14
14
  require('./chunk-NHO7HSOE.cjs');
15
15
  require('./chunk-WOZSAFMN.cjs');
@@ -23,19 +23,19 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
23
23
  // bin/pre-install.ts
24
24
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
25
25
  void (async () => {
26
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
26
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
29
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
28
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
29
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
30
30
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
31
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
31
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
33
33
  }
34
34
  _chunkUAKVQGZUcjs.run.call(void 0, config, "npx -y only-allow pnpm");
35
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
35
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
36
36
  } catch (error) {
37
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
37
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
39
39
  process.exit(1);
40
40
  }
41
41
  })();
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  exitWithError,
7
7
  exitWithSuccess,
8
+ getConfig,
8
9
  handleProcess,
9
- loadStormConfig,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-U55MG3QC.js";
12
+ } from "./chunk-PLNZHR5C.js";
13
13
  import "./chunk-BNZUDAPR.js";
14
14
  import "./chunk-4NALH4AO.js";
15
15
  import "./chunk-3QBEWJXQ.js";
@@ -23,7 +23,7 @@ import {
23
23
  // bin/pre-install.ts
24
24
  init_esm_shims();
25
25
  void (async () => {
26
- const config = await loadStormConfig();
26
+ const config = await getConfig();
27
27
  try {
28
28
  handleProcess(config);
29
29
  writeInfo("Running pre-install hook...", config);
package/bin/pre-push.cjs CHANGED
@@ -14,7 +14,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
17
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
18
18
  require('./chunk-JMRHG3KS.cjs');
19
19
  require('./chunk-NHO7HSOE.cjs');
20
20
  require('./chunk-WOZSAFMN.cjs');
@@ -31,12 +31,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
31
31
  var _promises = require('fs/promises');
32
32
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
33
33
  void (async () => {
34
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
34
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
35
35
  try {
36
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
37
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
36
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
37
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
38
38
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
39
- _chunkGZO33STHcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
39
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
40
40
  const errors = [];
41
41
  if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
42
42
  errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
@@ -58,26 +58,26 @@ void (async () => {
58
58
  errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
59
59
  }
60
60
  if (errors.length > 0) {
61
- _chunkGZO33STHcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
61
+ _chunkUJOC6MGUcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
62
62
  for (const error of errors) {
63
63
  console.error(error);
64
64
  }
65
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
65
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
66
66
  }
67
- _chunkGZO33STHcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
67
+ _chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
68
68
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs pre-push origin");
69
69
  try {
70
70
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
71
71
  } catch (error) {
72
- _chunkGZO33STHcjs.writeError.call(void 0, `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.
72
+ _chunkUJOC6MGUcjs.writeError.call(void 0, `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.
73
73
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
74
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
74
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
75
75
  }
76
76
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs pre-push origin");
77
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
77
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
78
78
  } catch (error) {
79
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
79
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
81
81
  process.exit(1);
82
82
  }
83
83
  })();
package/bin/pre-push.js CHANGED
@@ -8,13 +8,13 @@ import {
8
8
  import {
9
9
  exitWithError,
10
10
  exitWithSuccess,
11
+ getConfig,
11
12
  handleProcess,
12
- loadStormConfig,
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo,
16
16
  writeSuccess
17
- } from "./chunk-U55MG3QC.js";
17
+ } from "./chunk-PLNZHR5C.js";
18
18
  import "./chunk-BNZUDAPR.js";
19
19
  import "./chunk-4NALH4AO.js";
20
20
  import "./chunk-3QBEWJXQ.js";
@@ -31,7 +31,7 @@ import fs from "node:fs";
31
31
  import { readFile } from "node:fs/promises";
32
32
  import path from "node:path";
33
33
  void (async () => {
34
- const config = await loadStormConfig();
34
+ const config = await getConfig();
35
35
  try {
36
36
  handleProcess(config);
37
37
  writeInfo("Running pre-push hook...", config);
package/bin/prepare.cjs CHANGED
@@ -9,7 +9,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
12
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
13
13
  require('./chunk-JMRHG3KS.cjs');
14
14
  require('./chunk-NHO7HSOE.cjs');
15
15
  require('./chunk-WOZSAFMN.cjs');
@@ -23,17 +23,17 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
23
23
  // bin/prepare.ts
24
24
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
25
25
  void (async () => {
26
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
26
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
29
- _chunkGZO33STHcjs.writeInfo.call(void 0, "Running prepare hook...", config);
28
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
29
+ _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running prepare hook...", config);
30
30
  if (!process.env.CI && !process.env.STORM_CI) {
31
31
  _chunkUAKVQGZUcjs.run.call(void 0, config, "lefthook install");
32
32
  }
33
- _chunkGZO33STHcjs.exitWithSuccess.call(void 0, config);
33
+ _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
34
34
  } catch (error) {
35
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
35
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
37
37
  process.exit(1);
38
38
  }
39
39
  })();
package/bin/prepare.js CHANGED
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  exitWithError,
7
7
  exitWithSuccess,
8
+ getConfig,
8
9
  handleProcess,
9
- loadStormConfig,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-U55MG3QC.js";
12
+ } from "./chunk-PLNZHR5C.js";
13
13
  import "./chunk-BNZUDAPR.js";
14
14
  import "./chunk-4NALH4AO.js";
15
15
  import "./chunk-3QBEWJXQ.js";
@@ -23,7 +23,7 @@ import {
23
23
  // bin/prepare.ts
24
24
  init_esm_shims();
25
25
  void (async () => {
26
- const config = await loadStormConfig();
26
+ const config = await getConfig();
27
27
  try {
28
28
  handleProcess(config);
29
29
  writeInfo("Running prepare hook...", config);
@@ -7,7 +7,7 @@ var _chunkBXSXKKIZcjs = require('./chunk-BXSXKKIZ.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkGZO33STHcjs = require('./chunk-GZO33STH.cjs');
10
+ var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
11
11
  require('./chunk-JMRHG3KS.cjs');
12
12
  require('./chunk-NHO7HSOE.cjs');
13
13
  require('./chunk-WOZSAFMN.cjs');
@@ -21,13 +21,13 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
21
21
  // bin/version-warning.ts
22
22
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
23
23
  void (async () => {
24
- const config = await _chunkGZO33STHcjs.loadStormConfig.call(void 0, );
24
+ const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
25
25
  try {
26
- _chunkGZO33STHcjs.handleProcess.call(void 0, config);
26
+ _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
27
27
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
28
28
  } catch (error) {
29
- _chunkGZO33STHcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
- _chunkGZO33STHcjs.exitWithError.call(void 0, config);
29
+ _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
+ _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
31
31
  process.exit(1);
32
32
  }
33
33
  })();
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-427CJVMZ.js";
5
5
  import {
6
6
  exitWithError,
7
+ getConfig,
7
8
  handleProcess,
8
- loadStormConfig,
9
9
  writeFatal
10
- } from "./chunk-U55MG3QC.js";
10
+ } from "./chunk-PLNZHR5C.js";
11
11
  import "./chunk-BNZUDAPR.js";
12
12
  import "./chunk-4NALH4AO.js";
13
13
  import "./chunk-3QBEWJXQ.js";
@@ -21,7 +21,7 @@ import {
21
21
  // bin/version-warning.ts
22
22
  init_esm_shims();
23
23
  void (async () => {
24
- const config = await loadStormConfig();
24
+ const config = await getConfig();
25
25
  try {
26
26
  handleProcess(config);
27
27
  checkPackageVersion(process.argv.slice(1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.88.1",
3
+ "version": "2.88.3",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {