@storm-software/git-tools 2.130.20 → 2.130.21

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 (60) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-CW3OIFB4.cjs → chunk-ATE3TAGF.cjs} +4 -4
  3. package/bin/{chunk-CW3OIFB4.cjs.map → chunk-ATE3TAGF.cjs.map} +1 -1
  4. package/bin/{chunk-I7B6IYBB.cjs → chunk-DI6PREU4.cjs} +8 -4
  5. package/bin/chunk-DI6PREU4.cjs.map +1 -0
  6. package/bin/{chunk-OGI5YX4H.js → chunk-ECWQIUB4.js} +3 -3
  7. package/bin/{chunk-OGI5YX4H.js.map → chunk-ECWQIUB4.js.map} +1 -1
  8. package/bin/{chunk-MOZKMSXM.cjs → chunk-EGDFRWIN.cjs} +4 -4
  9. package/bin/{chunk-MOZKMSXM.cjs.map → chunk-EGDFRWIN.cjs.map} +1 -1
  10. package/bin/{chunk-T4KL5T3Y.cjs → chunk-EGX3JSKB.cjs} +5 -5
  11. package/bin/{chunk-T4KL5T3Y.cjs.map → chunk-EGX3JSKB.cjs.map} +1 -1
  12. package/bin/{chunk-FQBQE6ZB.js → chunk-FVR6F5QB.js} +3 -3
  13. package/bin/{chunk-FQBQE6ZB.js.map → chunk-FVR6F5QB.js.map} +1 -1
  14. package/bin/{chunk-RKEJZ2TR.js → chunk-KTR6DN32.js} +3 -3
  15. package/bin/{chunk-RKEJZ2TR.js.map → chunk-KTR6DN32.js.map} +1 -1
  16. package/bin/{chunk-J7EC3A2H.cjs → chunk-LSV4BGLC.cjs} +4 -4
  17. package/bin/{chunk-J7EC3A2H.cjs.map → chunk-LSV4BGLC.cjs.map} +1 -1
  18. package/bin/{chunk-VPYYIUSQ.js → chunk-MQWJPO5J.js} +3 -3
  19. package/bin/{chunk-VPYYIUSQ.js.map → chunk-MQWJPO5J.js.map} +1 -1
  20. package/bin/{chunk-7F3TVMCA.cjs → chunk-QOXHPYED.cjs} +4 -4
  21. package/bin/{chunk-7F3TVMCA.cjs.map → chunk-QOXHPYED.cjs.map} +1 -1
  22. package/bin/{chunk-MWT3CRQG.js → chunk-QP6P24WO.js} +3 -3
  23. package/bin/{chunk-MWT3CRQG.js.map → chunk-QP6P24WO.js.map} +1 -1
  24. package/bin/{chunk-EQGVGVJD.js → chunk-UHJ3INXD.js} +3 -3
  25. package/bin/{chunk-EQGVGVJD.js.map → chunk-UHJ3INXD.js.map} +1 -1
  26. package/bin/{chunk-GUBKGNXI.js → chunk-VFP2YC56.js} +8 -4
  27. package/bin/chunk-VFP2YC56.js.map +1 -0
  28. package/bin/{chunk-CVJTBRYR.js → chunk-WRLNGX7N.js} +3 -3
  29. package/bin/{chunk-CVJTBRYR.js.map → chunk-WRLNGX7N.js.map} +1 -1
  30. package/bin/{chunk-I2HNX3GG.cjs → chunk-XFAV5NG6.cjs} +4 -4
  31. package/bin/{chunk-I2HNX3GG.cjs.map → chunk-XFAV5NG6.cjs.map} +1 -1
  32. package/bin/{chunk-OE7KAAB5.cjs → chunk-ZGZ6JZDP.cjs} +6 -6
  33. package/bin/{chunk-OE7KAAB5.cjs.map → chunk-ZGZ6JZDP.cjs.map} +1 -1
  34. package/bin/git.cjs +118 -118
  35. package/bin/git.js +8 -8
  36. package/bin/post-checkout.cjs +7 -7
  37. package/bin/post-checkout.js +2 -2
  38. package/bin/post-commit.cjs +7 -7
  39. package/bin/post-commit.js +2 -2
  40. package/bin/post-merge.cjs +7 -7
  41. package/bin/post-merge.js +2 -2
  42. package/bin/pre-commit.cjs +7 -7
  43. package/bin/pre-commit.js +2 -2
  44. package/bin/pre-install.cjs +7 -7
  45. package/bin/pre-install.js +2 -2
  46. package/bin/pre-push.cjs +7 -7
  47. package/bin/pre-push.js +2 -2
  48. package/bin/prepare.cjs +7 -7
  49. package/bin/prepare.js +2 -2
  50. package/bin/version-warning.cjs +5 -5
  51. package/bin/version-warning.js +1 -1
  52. package/dist/{chunk-UVILOGFH.cjs → chunk-N7GR4PRY.cjs} +6 -2
  53. package/dist/{chunk-NTYI6N67.js → chunk-ZHSRGVUS.js} +6 -2
  54. package/dist/index.cjs +8 -8
  55. package/dist/index.js +1 -1
  56. package/dist/release/config.cjs +8 -8
  57. package/dist/release/config.js +1 -1
  58. package/package.json +5 -5
  59. package/bin/chunk-GUBKGNXI.js.map +0 -1
  60. package/bin/chunk-I7B6IYBB.cjs.map +0 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-2.130.18-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-2.130.19-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunkI7B6IYBB_cjs = require('./chunk-I7B6IYBB.cjs');
4
+ var chunkDI6PREU4_cjs = require('./chunk-DI6PREU4.cjs');
5
5
 
6
6
  // src/hooks/pre-commit.ts
7
7
  async function preCommitHook(config, files) {
8
- chunkI7B6IYBB_cjs.writeInfo("Running pre-commit hook...", config);
8
+ chunkDI6PREU4_cjs.writeInfo("Running pre-commit hook...", config);
9
9
  chunkYHZNDNCW_cjs.checkPackageVersion(files);
10
10
  if (chunkYHZNDNCW_cjs.isPackageVersionChanged(files)) {
11
11
  throw new Error(
@@ -15,5 +15,5 @@ async function preCommitHook(config, files) {
15
15
  }
16
16
 
17
17
  exports.preCommitHook = preCommitHook;
18
- //# sourceMappingURL=chunk-CW3OIFB4.cjs.map
19
- //# sourceMappingURL=chunk-CW3OIFB4.cjs.map
18
+ //# sourceMappingURL=chunk-ATE3TAGF.cjs.map
19
+ //# sourceMappingURL=chunk-ATE3TAGF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-commit.ts"],"names":["writeInfo","checkPackageVersion","isPackageVersionChanged"],"mappings":";;;;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAIC,yCAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-CW3OIFB4.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { writeInfo } from \"@storm-software/config-tools\";\nimport {\n checkPackageVersion,\n isPackageVersionChanged\n} from \"../utilities/check-package-version\";\n\nexport async function preCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-commit hook...\", config);\n\n checkPackageVersion(files);\n if (isPackageVersionChanged(files)) {\n throw new Error(\n \"Please regenerate the package lock file before committing...\"\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/pre-commit.ts"],"names":["writeInfo","checkPackageVersion","isPackageVersionChanged"],"mappings":";;;;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAIC,yCAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-ATE3TAGF.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { writeInfo } from \"@storm-software/config-tools\";\nimport {\n checkPackageVersion,\n isPackageVersionChanged\n} from \"../utilities/check-package-version\";\n\nexport async function preCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-commit hook...\", config);\n\n checkPackageVersion(files);\n if (isPackageVersionChanged(files)) {\n throw new Error(\n \"Please regenerate the package lock file before committing...\"\n );\n }\n}\n"]}
@@ -3393,9 +3393,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3393
3393
  configInput.variant = fs.existsSync(joinPaths(_workspaceRoot, "nx.json")) || fs.existsSync(joinPaths(_workspaceRoot, ".nx")) || fs.existsSync(joinPaths(_workspaceRoot, "lerna.json")) || fs.existsSync(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
3394
3394
  }
3395
3395
  try {
3396
- result = applyDefaultConfig(
3397
- await workspaceConfigSchema.parseAsync(configInput)
3396
+ const parseResult = await Promise.resolve(
3397
+ workspaceConfigSchema._zod.parse(
3398
+ { value: configInput, issues: [] },
3399
+ { async: true }
3400
+ )
3398
3401
  );
3402
+ result = applyDefaultConfig(parseResult.value);
3399
3403
  result.workspaceRoot ??= _workspaceRoot;
3400
3404
  } catch (error) {
3401
3405
  throw new Error(
@@ -3466,5 +3470,5 @@ exports.writeInfo = writeInfo;
3466
3470
  exports.writeSuccess = writeSuccess;
3467
3471
  exports.writeTrace = writeTrace;
3468
3472
  exports.writeWarning = writeWarning;
3469
- //# sourceMappingURL=chunk-I7B6IYBB.cjs.map
3470
- //# sourceMappingURL=chunk-I7B6IYBB.cjs.map
3473
+ //# sourceMappingURL=chunk-DI6PREU4.cjs.map
3474
+ //# sourceMappingURL=chunk-DI6PREU4.cjs.map