@storm-software/git-tools 2.113.38 → 2.115.0

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.
@@ -2,29 +2,29 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
- var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
5
+ var chunkO7PN47AE_cjs = require('./chunk-O7PN47AE.cjs');
6
6
 
7
7
  // bin/pre-commit.ts
8
8
  void (async () => {
9
- const config = await chunkEBHPAULB_cjs.getConfig();
9
+ const config = await chunkO7PN47AE_cjs.getConfig();
10
10
  try {
11
- chunkEBHPAULB_cjs.handleProcess(config);
12
- chunkEBHPAULB_cjs.writeInfo("Running pre-commit hook...", config);
11
+ chunkO7PN47AE_cjs.handleProcess(config);
12
+ chunkO7PN47AE_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
- chunkEBHPAULB_cjs.writeError(
15
+ chunkO7PN47AE_cjs.writeError(
16
16
  "Please regenerate the package lock file before committing...",
17
17
  config
18
18
  );
19
- chunkEBHPAULB_cjs.exitWithError(config);
19
+ chunkO7PN47AE_cjs.exitWithError(config);
20
20
  }
21
- chunkEBHPAULB_cjs.exitWithSuccess(config);
21
+ chunkO7PN47AE_cjs.exitWithSuccess(config);
22
22
  } catch (error) {
23
- chunkEBHPAULB_cjs.writeFatal(
23
+ chunkO7PN47AE_cjs.writeFatal(
24
24
  `A fatal error occurred while running the program: ${error.message}`,
25
25
  config
26
26
  );
27
- chunkEBHPAULB_cjs.exitWithError(config);
27
+ chunkO7PN47AE_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-W7SSBH3S.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-XOHAV6VL.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 chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
5
+ var chunkO7PN47AE_cjs = require('./chunk-O7PN47AE.cjs');
6
6
 
7
7
  // bin/pre-install.ts
8
8
  void (async () => {
9
- const config = await chunkEBHPAULB_cjs.getConfig();
9
+ const config = await chunkO7PN47AE_cjs.getConfig();
10
10
  try {
11
- chunkEBHPAULB_cjs.handleProcess(config);
12
- chunkEBHPAULB_cjs.writeInfo("Running pre-install hook...", config);
11
+ chunkO7PN47AE_cjs.handleProcess(config);
12
+ chunkO7PN47AE_cjs.writeInfo("Running pre-install hook...", config);
13
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
14
- chunkEBHPAULB_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
- chunkEBHPAULB_cjs.exitWithSuccess(config);
14
+ chunkO7PN47AE_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunkO7PN47AE_cjs.exitWithSuccess(config);
16
16
  }
17
17
  chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
- chunkEBHPAULB_cjs.exitWithSuccess(config);
18
+ chunkO7PN47AE_cjs.exitWithSuccess(config);
19
19
  } catch (error) {
20
- chunkEBHPAULB_cjs.writeFatal(
20
+ chunkO7PN47AE_cjs.writeFatal(
21
21
  `A fatal error occurred while running the program: ${error.message}`,
22
22
  config
23
23
  );
24
- chunkEBHPAULB_cjs.exitWithError(config);
24
+ chunkO7PN47AE_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-W7SSBH3S.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-XOHAV6VL.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 chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
6
+ var chunkO7PN47AE_cjs = require('./chunk-O7PN47AE.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 chunkEBHPAULB_cjs.getConfig();
17
+ const config = await chunkO7PN47AE_cjs.getConfig();
18
18
  try {
19
- chunkEBHPAULB_cjs.handleProcess(config);
20
- chunkEBHPAULB_cjs.writeInfo("Running pre-push hook...", config);
19
+ chunkO7PN47AE_cjs.handleProcess(config);
20
+ chunkO7PN47AE_cjs.writeInfo("Running pre-push hook...", config);
21
21
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
- chunkEBHPAULB_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
22
+ chunkO7PN47AE_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
- chunkEBHPAULB_cjs.writeError("\u274C Lock file validation failed", config);
57
+ chunkO7PN47AE_cjs.writeError("\u274C Lock file validation failed", config);
58
58
  for (const error of errors) {
59
59
  console.error(error);
60
60
  }
61
- chunkEBHPAULB_cjs.exitWithError(config);
61
+ chunkO7PN47AE_cjs.exitWithError(config);
62
62
  }
63
- chunkEBHPAULB_cjs.writeSuccess("Lock file is valid \u2705", config);
63
+ chunkO7PN47AE_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
- chunkEBHPAULB_cjs.writeError(
68
+ chunkO7PN47AE_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
- chunkEBHPAULB_cjs.exitWithError(config);
73
+ chunkO7PN47AE_cjs.exitWithError(config);
74
74
  }
75
75
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
- chunkEBHPAULB_cjs.exitWithSuccess(config);
76
+ chunkO7PN47AE_cjs.exitWithSuccess(config);
77
77
  } catch (error) {
78
- chunkEBHPAULB_cjs.writeFatal(
78
+ chunkO7PN47AE_cjs.writeFatal(
79
79
  `A fatal error occurred while running the program: ${error.message}`,
80
80
  config
81
81
  );
82
- chunkEBHPAULB_cjs.exitWithError(config);
82
+ chunkO7PN47AE_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-W7SSBH3S.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-XOHAV6VL.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 chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
5
+ var chunkO7PN47AE_cjs = require('./chunk-O7PN47AE.cjs');
6
6
 
7
7
  // bin/prepare.ts
8
8
  void (async () => {
9
- const config = await chunkEBHPAULB_cjs.getConfig();
9
+ const config = await chunkO7PN47AE_cjs.getConfig();
10
10
  try {
11
- chunkEBHPAULB_cjs.handleProcess(config);
12
- chunkEBHPAULB_cjs.writeInfo("Running prepare hook...", config);
11
+ chunkO7PN47AE_cjs.handleProcess(config);
12
+ chunkO7PN47AE_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
- chunkEBHPAULB_cjs.exitWithSuccess(config);
16
+ chunkO7PN47AE_cjs.exitWithSuccess(config);
17
17
  } catch (error) {
18
- chunkEBHPAULB_cjs.writeFatal(
18
+ chunkO7PN47AE_cjs.writeFatal(
19
19
  `A fatal error occurred while running the program: ${error.message}`,
20
20
  config
21
21
  );
22
- chunkEBHPAULB_cjs.exitWithError(config);
22
+ chunkO7PN47AE_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-W7SSBH3S.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-XOHAV6VL.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 chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
5
+ var chunkO7PN47AE_cjs = require('./chunk-O7PN47AE.cjs');
6
6
 
7
7
  // bin/version-warning.ts
8
8
  void (async () => {
9
- const config = await chunkEBHPAULB_cjs.getConfig();
9
+ const config = await chunkO7PN47AE_cjs.getConfig();
10
10
  try {
11
- chunkEBHPAULB_cjs.handleProcess(config);
11
+ chunkO7PN47AE_cjs.handleProcess(config);
12
12
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
13
13
  } catch (error) {
14
- chunkEBHPAULB_cjs.writeFatal(
14
+ chunkO7PN47AE_cjs.writeFatal(
15
15
  `A fatal error occurred while running the program: ${error.message}`,
16
16
  config
17
17
  );
18
- chunkEBHPAULB_cjs.exitWithError(config);
18
+ chunkO7PN47AE_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-W7SSBH3S.js';
3
+ import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-XOHAV6VL.js';
4
4
 
5
5
  // bin/version-warning.ts
6
6
  void (async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.113.38",
3
+ "version": "2.115.0",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -221,8 +221,8 @@
221
221
  "@inquirer/prompts": "7.2.1",
222
222
  "@nx/devkit": "^21.3.10",
223
223
  "@nx/js": "^21.3.10",
224
- "@storm-software/config": "^1.126.11",
225
- "@storm-software/config-tools": "^1.178.7",
224
+ "@storm-software/config": "^1.128.0",
225
+ "@storm-software/config-tools": "^1.180.0",
226
226
  "@textlint/ast-node-types": "14.4.2",
227
227
  "@textlint/markdown-to-ast": "14.4.2",
228
228
  "anchor-markdown-header": "0.7.0",
@@ -251,5 +251,5 @@
251
251
  "tsup": "8.4.0"
252
252
  },
253
253
  "publishConfig": { "access": "public" },
254
- "gitHead": "4468c724d9bcbd9d59abbe56d856277bdd524b6e"
254
+ "gitHead": "6a6dd784f46be577947b206ab5e38654a85140e2"
255
255
  }