@storm-software/git-tools 2.131.29 → 2.131.32

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 (56) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-AX3PXQKJ.js → chunk-3I7DR63M.js} +3 -3
  3. package/bin/{chunk-AX3PXQKJ.js.map → chunk-3I7DR63M.js.map} +1 -1
  4. package/bin/{chunk-C6K3ZRT6.js → chunk-3NC3GIM6.js} +3 -3
  5. package/bin/{chunk-C6K3ZRT6.js.map → chunk-3NC3GIM6.js.map} +1 -1
  6. package/bin/{chunk-MQOEMLKV.cjs → chunk-6AN4QYAN.cjs} +4 -4
  7. package/bin/{chunk-MQOEMLKV.cjs.map → chunk-6AN4QYAN.cjs.map} +1 -1
  8. package/bin/{chunk-QITSXT5W.cjs → chunk-AY74OKG5.cjs} +6 -6
  9. package/bin/{chunk-QITSXT5W.cjs.map → chunk-AY74OKG5.cjs.map} +1 -1
  10. package/bin/{chunk-M4UDDFX2.cjs → chunk-B56KWU7H.cjs} +4 -4
  11. package/bin/{chunk-M4UDDFX2.cjs.map → chunk-B56KWU7H.cjs.map} +1 -1
  12. package/bin/{chunk-3XAQUPZK.js → chunk-BPY6SBLC.js} +5 -5
  13. package/bin/chunk-BPY6SBLC.js.map +1 -0
  14. package/bin/{chunk-GPHBDU6A.js → chunk-DDC7F5UZ.js} +3 -3
  15. package/bin/{chunk-GPHBDU6A.js.map → chunk-DDC7F5UZ.js.map} +1 -1
  16. package/bin/{chunk-Y7OK7243.js → chunk-EQ7Z3P24.js} +3 -3
  17. package/bin/{chunk-Y7OK7243.js.map → chunk-EQ7Z3P24.js.map} +1 -1
  18. package/bin/{chunk-4GZZR7XL.js → chunk-FC4WBB3T.js} +3 -3
  19. package/bin/{chunk-4GZZR7XL.js.map → chunk-FC4WBB3T.js.map} +1 -1
  20. package/bin/{chunk-QOOEK76B.cjs → chunk-M4LUWNQR.cjs} +5 -5
  21. package/bin/chunk-M4LUWNQR.cjs.map +1 -0
  22. package/bin/{chunk-WZZIVUHI.cjs → chunk-O3X5QPCQ.cjs} +4 -4
  23. package/bin/{chunk-WZZIVUHI.cjs.map → chunk-O3X5QPCQ.cjs.map} +1 -1
  24. package/bin/{chunk-DOELUOOS.js → chunk-O5U4PY3Z.js} +3 -3
  25. package/bin/{chunk-DOELUOOS.js.map → chunk-O5U4PY3Z.js.map} +1 -1
  26. package/bin/{chunk-3PI2VV32.js → chunk-SJQTSJGU.js} +3 -3
  27. package/bin/{chunk-3PI2VV32.js.map → chunk-SJQTSJGU.js.map} +1 -1
  28. package/bin/{chunk-3LVCR6LS.cjs → chunk-U7X6DX3D.cjs} +4 -4
  29. package/bin/{chunk-3LVCR6LS.cjs.map → chunk-U7X6DX3D.cjs.map} +1 -1
  30. package/bin/{chunk-4CS5RPMP.cjs → chunk-Y7LS5W35.cjs} +5 -5
  31. package/bin/{chunk-4CS5RPMP.cjs.map → chunk-Y7LS5W35.cjs.map} +1 -1
  32. package/bin/{chunk-NSP7UDOF.cjs → chunk-ZMVLIEV4.cjs} +4 -4
  33. package/bin/{chunk-NSP7UDOF.cjs.map → chunk-ZMVLIEV4.cjs.map} +1 -1
  34. package/bin/git.cjs +177 -224
  35. package/bin/git.cjs.map +1 -1
  36. package/bin/git.js +33 -80
  37. package/bin/git.js.map +1 -1
  38. package/bin/post-checkout.cjs +7 -7
  39. package/bin/post-checkout.js +2 -2
  40. package/bin/post-commit.cjs +7 -7
  41. package/bin/post-commit.js +2 -2
  42. package/bin/post-merge.cjs +7 -7
  43. package/bin/post-merge.js +2 -2
  44. package/bin/pre-commit.cjs +7 -7
  45. package/bin/pre-commit.js +2 -2
  46. package/bin/pre-install.cjs +7 -7
  47. package/bin/pre-install.js +2 -2
  48. package/bin/pre-push.cjs +7 -7
  49. package/bin/pre-push.js +2 -2
  50. package/bin/prepare.cjs +7 -7
  51. package/bin/prepare.js +2 -2
  52. package/bin/version-warning.cjs +5 -5
  53. package/bin/version-warning.js +1 -1
  54. package/package.json +11 -11
  55. package/bin/chunk-3XAQUPZK.js.map +0 -1
  56. package/bin/chunk-QOOEK76B.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.131.28-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.131.29-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,6 +1,6 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
2
  import { run } from './chunk-RPK5AKGK.js';
3
- import { writeInfo } from './chunk-3XAQUPZK.js';
3
+ import { writeInfo } from './chunk-BPY6SBLC.js';
4
4
 
5
5
  // src/hooks/post-merge.ts
6
6
  async function postMergeHook(config, files) {
@@ -18,5 +18,5 @@ Error: ${error?.message}`
18
18
  }
19
19
 
20
20
  export { postMergeHook };
21
- //# sourceMappingURL=chunk-AX3PXQKJ.js.map
22
- //# sourceMappingURL=chunk-AX3PXQKJ.js.map
21
+ //# sourceMappingURL=chunk-3I7DR63M.js.map
22
+ //# sourceMappingURL=chunk-3I7DR63M.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-merge.ts"],"names":[],"mappings":";;;;;AAMA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,8BAA8B,MAAM,CAAA;AAC9C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAA,GAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,oBAAoB,CAAA;AAClC","file":"chunk-AX3PXQKJ.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postMergeHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-merge hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `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.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-merge\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/post-merge.ts"],"names":[],"mappings":";;;;;AAMA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,8BAA8B,MAAM,CAAA;AAC9C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAA,GAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,oBAAoB,CAAA;AAClC","file":"chunk-3I7DR63M.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postMergeHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-merge hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `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.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-merge\");\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { run } from './chunk-RPK5AKGK.js';
2
- import { writeInfo } from './chunk-3XAQUPZK.js';
2
+ import { writeInfo } from './chunk-BPY6SBLC.js';
3
3
 
4
4
  // src/hooks/pre-install.ts
5
5
  async function preInstallHook(config) {
@@ -12,5 +12,5 @@ async function preInstallHook(config) {
12
12
  }
13
13
 
14
14
  export { preInstallHook };
15
- //# sourceMappingURL=chunk-C6K3ZRT6.js.map
16
- //# sourceMappingURL=chunk-C6K3ZRT6.js.map
15
+ //# sourceMappingURL=chunk-3NC3GIM6.js.map
16
+ //# sourceMappingURL=chunk-3NC3GIM6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-install.ts"],"names":[],"mappings":";;;;AAKA,eAAsB,eAAe,MAAA,EAA8B;AACjE,EAAA,SAAA,CAAU,+BAA+B,MAAM,CAAA;AAE/C,EAAA,IAAI,OAAA,CAAQ,QAAQ,GAAA,CAAI,EAAE,KAAK,OAAA,CAAQ,OAAA,CAAQ,GAAA,CAAI,QAAQ,CAAA,EAAG;AAC5D,IAAA,SAAA,CAAU,0CAA0C,MAAM,CAAA;AAC1D,IAAA;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,wBAAwB,CAAA;AACtC","file":"chunk-C6K3ZRT6.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\n\nexport async function preInstallHook(config: StormWorkspaceConfig) {\n writeInfo(\"Running pre-install hook...\", config);\n\n if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {\n writeInfo(\"Skipping pre-install for CI process...\", config);\n return;\n }\n\n run(config, \"npx -y only-allow pnpm\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/pre-install.ts"],"names":[],"mappings":";;;;AAKA,eAAsB,eAAe,MAAA,EAA8B;AACjE,EAAA,SAAA,CAAU,+BAA+B,MAAM,CAAA;AAE/C,EAAA,IAAI,OAAA,CAAQ,QAAQ,GAAA,CAAI,EAAE,KAAK,OAAA,CAAQ,OAAA,CAAQ,GAAA,CAAI,QAAQ,CAAA,EAAG;AAC5D,IAAA,SAAA,CAAU,0CAA0C,MAAM,CAAA;AAC1D,IAAA;AAAA,EACF;AAEA,EAAA,GAAA,CAAI,QAAQ,wBAAwB,CAAA;AACtC","file":"chunk-3NC3GIM6.js","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\n\nexport async function preInstallHook(config: StormWorkspaceConfig) {\n writeInfo(\"Running pre-install hook...\", config);\n\n if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {\n writeInfo(\"Skipping pre-install for CI process...\", config);\n return;\n }\n\n run(config, \"npx -y only-allow pnpm\");\n}\n"]}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunkQOOEK76B_cjs = require('./chunk-QOOEK76B.cjs');
4
+ var chunkM4LUWNQR_cjs = require('./chunk-M4LUWNQR.cjs');
5
5
 
6
6
  // src/hooks/pre-commit.ts
7
7
  async function preCommitHook(config, files) {
8
- chunkQOOEK76B_cjs.writeInfo("Running pre-commit hook...", config);
8
+ chunkM4LUWNQR_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-MQOEMLKV.cjs.map
19
- //# sourceMappingURL=chunk-MQOEMLKV.cjs.map
18
+ //# sourceMappingURL=chunk-6AN4QYAN.cjs.map
19
+ //# sourceMappingURL=chunk-6AN4QYAN.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-MQOEMLKV.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-6AN4QYAN.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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunkQOOEK76B_cjs = require('./chunk-QOOEK76B.cjs');
4
+ var chunkM4LUWNQR_cjs = require('./chunk-M4LUWNQR.cjs');
5
5
  var fs = require('fs');
6
6
  var promises = require('fs/promises');
7
7
  var path = require('path');
@@ -12,9 +12,9 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
12
12
  var path__default = /*#__PURE__*/_interopDefault(path);
13
13
 
14
14
  async function prePushHook(config, files) {
15
- chunkQOOEK76B_cjs.writeInfo("Running pre-push hook...", config);
15
+ chunkM4LUWNQR_cjs.writeInfo("Running pre-push hook...", config);
16
16
  chunkYHZNDNCW_cjs.checkPackageVersion(files);
17
- chunkQOOEK76B_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
17
+ chunkM4LUWNQR_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
18
18
  const errors = [];
19
19
  if (fs__default.default.existsSync(path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json"))) {
20
20
  errors.push(
@@ -51,9 +51,9 @@ async function prePushHook(config, files) {
51
51
  "\u274C Lock file validation failed\n" + errors.join("\n")
52
52
  );
53
53
  }
54
- chunkQOOEK76B_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
54
+ chunkM4LUWNQR_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
55
55
  }
56
56
 
57
57
  exports.prePushHook = prePushHook;
58
- //# sourceMappingURL=chunk-QITSXT5W.cjs.map
59
- //# sourceMappingURL=chunk-QITSXT5W.cjs.map
58
+ //# sourceMappingURL=chunk-AY74OKG5.cjs.map
59
+ //# sourceMappingURL=chunk-AY74OKG5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-push.ts"],"names":["writeInfo","checkPackageVersion","fs","path","readFile","writeSuccess"],"mappings":";;;;;;;;;;;;;AASA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AAEzB,EAAAD,2BAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,SAAS,EAAC;AAChB,EAAA,IACEE,mBAAA,CAAG,WAAWC,qBAAA,CAAK,IAAA,CAAK,OAAO,aAAA,IAAiB,IAAA,EAAM,mBAAmB,CAAC,CAAA,EAC1E;AACA,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AAAA,EACF;AACA,EAAA,IAAID,mBAAA,CAAG,WAAWC,qBAAA,CAAK,IAAA,CAAK,OAAO,aAAA,IAAiB,IAAA,EAAM,WAAW,CAAC,CAAA,EAAG;AACvE,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AAAA,EACF;AAEA,EAAA,IAAI;AACF,IAAA,MAAM,UAAU,MAAMC,iBAAA;AAAA,MACpBD,qBAAA,CAAK,IAAA,CAAK,MAAA,CAAO,aAAA,IAAiB,MAAM,gBAAgB,CAAA;AAAA,MACxD;AAAA,QACE,QAAA,EAAU;AAAA;AACZ,KACF;AACA,IAAA,IAAI,OAAA,EAAS,KAAA,CAAM,eAAe,CAAA,EAAG;AACnC,MAAA,MAAA,CAAO,IAAA;AAAA,QACL;AAAA,OACF;AAAA,IACF;AACA,IAAA,IAAI,OAAA,EAAS,KAAA,CAAM,uBAAuB,CAAA,EAAG;AAC3C,MAAA,MAAA,CAAO,IAAA;AAAA,QACL;AAAA,OACF;AAAA,IACF;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,MAAA,CAAO,KAAK,uDAAuD,CAAA;AAAA,EACrE;AAEA,EAAA,IAAI,MAAA,CAAO,SAAS,CAAA,EAAG;AACrB,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,sCAAA,GAAyC,MAAA,CAAO,IAAA,CAAK,IAAI;AAAA,KAC3D;AAAA,EACF;AAEA,EAAAE,8BAAA,CAAa,sCAAiC,MAAM,CAAA;AAetD","file":"chunk-QITSXT5W.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { writeInfo, writeSuccess } from \"@storm-software/config-tools\";\nimport fs from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function prePushHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-push hook...\", config);\n checkPackageVersion(files);\n\n writeInfo(\"🔒🔒🔒 Validating lock files 🔒🔒🔒\", config);\n\n const errors = [] as string[];\n if (\n fs.existsSync(path.join(config.workspaceRoot ?? \"./\", \"package-lock.json\"))\n ) {\n errors.push(\n 'Invalid occurrence of \"package-lock.json\" file. Please remove it and use only \"pnpm-lock.yaml\"'\n );\n }\n if (fs.existsSync(path.join(config.workspaceRoot ?? \"./\", \"yarn.lock\"))) {\n errors.push(\n 'Invalid occurrence of \"yarn.lock\" file. Please remove it and use only \"pnpm-lock.yaml\"'\n );\n }\n\n try {\n const content = await readFile(\n path.join(config.workspaceRoot ?? \"./\", \"pnpm-lock.yaml\"),\n {\n encoding: \"utf8\"\n }\n );\n if (content?.match(/localhost:487/)) {\n errors.push(\n 'The \"pnpm-lock.yaml\" has reference to local repository (\"localhost:4873\"). Please use ensure you disable local registry before running \"pnpm i\"'\n );\n }\n if (content?.match(/resolution: \\{tarball/)) {\n errors.push(\n 'The \"pnpm-lock.yaml\" has reference to tarball package. Please use npm registry only'\n );\n }\n } catch {\n errors.push('The \"pnpm-lock.yaml\" does not exist or cannot be read');\n }\n\n if (errors.length > 0) {\n throw new Error(\n \"❌ Lock file validation failed\" + \"\\n\" + errors.join(\"\\n\")\n );\n }\n\n writeSuccess(\"✔ Lock file is valid for push\", config);\n\n // run(config, \"git lfs pre-push origin\");\n\n // try {\n // run(config, \"git-lfs version\");\n // } catch (error) {\n // throw new Error(\n // `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.\\nError: ${\n // (error as Error)?.message\n // }`\n // );\n // }\n\n // run(config, \"git lfs pre-push origin\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/pre-push.ts"],"names":["writeInfo","checkPackageVersion","fs","path","readFile","writeSuccess"],"mappings":";;;;;;;;;;;;;AASA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AAEzB,EAAAD,2BAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,SAAS,EAAC;AAChB,EAAA,IACEE,mBAAA,CAAG,WAAWC,qBAAA,CAAK,IAAA,CAAK,OAAO,aAAA,IAAiB,IAAA,EAAM,mBAAmB,CAAC,CAAA,EAC1E;AACA,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AAAA,EACF;AACA,EAAA,IAAID,mBAAA,CAAG,WAAWC,qBAAA,CAAK,IAAA,CAAK,OAAO,aAAA,IAAiB,IAAA,EAAM,WAAW,CAAC,CAAA,EAAG;AACvE,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AAAA,EACF;AAEA,EAAA,IAAI;AACF,IAAA,MAAM,UAAU,MAAMC,iBAAA;AAAA,MACpBD,qBAAA,CAAK,IAAA,CAAK,MAAA,CAAO,aAAA,IAAiB,MAAM,gBAAgB,CAAA;AAAA,MACxD;AAAA,QACE,QAAA,EAAU;AAAA;AACZ,KACF;AACA,IAAA,IAAI,OAAA,EAAS,KAAA,CAAM,eAAe,CAAA,EAAG;AACnC,MAAA,MAAA,CAAO,IAAA;AAAA,QACL;AAAA,OACF;AAAA,IACF;AACA,IAAA,IAAI,OAAA,EAAS,KAAA,CAAM,uBAAuB,CAAA,EAAG;AAC3C,MAAA,MAAA,CAAO,IAAA;AAAA,QACL;AAAA,OACF;AAAA,IACF;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,MAAA,CAAO,KAAK,uDAAuD,CAAA;AAAA,EACrE;AAEA,EAAA,IAAI,MAAA,CAAO,SAAS,CAAA,EAAG;AACrB,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,sCAAA,GAAyC,MAAA,CAAO,IAAA,CAAK,IAAI;AAAA,KAC3D;AAAA,EACF;AAEA,EAAAE,8BAAA,CAAa,sCAAiC,MAAM,CAAA;AAetD","file":"chunk-AY74OKG5.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { writeInfo, writeSuccess } from \"@storm-software/config-tools\";\nimport fs from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function prePushHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-push hook...\", config);\n checkPackageVersion(files);\n\n writeInfo(\"🔒🔒🔒 Validating lock files 🔒🔒🔒\", config);\n\n const errors = [] as string[];\n if (\n fs.existsSync(path.join(config.workspaceRoot ?? \"./\", \"package-lock.json\"))\n ) {\n errors.push(\n 'Invalid occurrence of \"package-lock.json\" file. Please remove it and use only \"pnpm-lock.yaml\"'\n );\n }\n if (fs.existsSync(path.join(config.workspaceRoot ?? \"./\", \"yarn.lock\"))) {\n errors.push(\n 'Invalid occurrence of \"yarn.lock\" file. Please remove it and use only \"pnpm-lock.yaml\"'\n );\n }\n\n try {\n const content = await readFile(\n path.join(config.workspaceRoot ?? \"./\", \"pnpm-lock.yaml\"),\n {\n encoding: \"utf8\"\n }\n );\n if (content?.match(/localhost:487/)) {\n errors.push(\n 'The \"pnpm-lock.yaml\" has reference to local repository (\"localhost:4873\"). Please use ensure you disable local registry before running \"pnpm i\"'\n );\n }\n if (content?.match(/resolution: \\{tarball/)) {\n errors.push(\n 'The \"pnpm-lock.yaml\" has reference to tarball package. Please use npm registry only'\n );\n }\n } catch {\n errors.push('The \"pnpm-lock.yaml\" does not exist or cannot be read');\n }\n\n if (errors.length > 0) {\n throw new Error(\n \"❌ Lock file validation failed\" + \"\\n\" + errors.join(\"\\n\")\n );\n }\n\n writeSuccess(\"✔ Lock file is valid for push\", config);\n\n // run(config, \"git lfs pre-push origin\");\n\n // try {\n // run(config, \"git-lfs version\");\n // } catch (error) {\n // throw new Error(\n // `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.\\nError: ${\n // (error as Error)?.message\n // }`\n // );\n // }\n\n // run(config, \"git lfs pre-push origin\");\n}\n"]}
@@ -2,11 +2,11 @@
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
4
  var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
5
- var chunkQOOEK76B_cjs = require('./chunk-QOOEK76B.cjs');
5
+ var chunkM4LUWNQR_cjs = require('./chunk-M4LUWNQR.cjs');
6
6
 
7
7
  // src/hooks/post-merge.ts
8
8
  async function postMergeHook(config, files) {
9
- chunkQOOEK76B_cjs.writeInfo("Running post-merge hook...", config);
9
+ chunkM4LUWNQR_cjs.writeInfo("Running post-merge hook...", config);
10
10
  chunkYHZNDNCW_cjs.checkPackageVersion(files);
11
11
  try {
12
12
  chunkMTAYUS7E_cjs.run(config, "git-lfs version");
@@ -20,5 +20,5 @@ Error: ${error?.message}`
20
20
  }
21
21
 
22
22
  exports.postMergeHook = postMergeHook;
23
- //# sourceMappingURL=chunk-M4UDDFX2.cjs.map
24
- //# sourceMappingURL=chunk-M4UDDFX2.cjs.map
23
+ //# sourceMappingURL=chunk-B56KWU7H.cjs.map
24
+ //# sourceMappingURL=chunk-B56KWU7H.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-merge.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAC9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAAC,qBAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAAA,qBAAA,CAAI,QAAQ,oBAAoB,CAAA;AAClC","file":"chunk-M4UDDFX2.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postMergeHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-merge hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `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.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-merge\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/post-merge.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAC9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAAC,qBAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAAA,qBAAA,CAAI,QAAQ,oBAAoB,CAAA;AAClC","file":"chunk-B56KWU7H.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postMergeHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-merge hook...\", config);\n checkPackageVersion(files);\n\n try {\n run(config, \"git-lfs version\");\n } catch (error) {\n throw new Error(\n `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.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-merge\");\n}\n"]}
@@ -2426,7 +2426,7 @@ schemaRegistry.add(extensionsSchema, {
2426
2426
  description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
2427
2427
  });
2428
2428
 
2429
- // ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
2429
+ // ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
2430
2430
  function isPlainObject2(value) {
2431
2431
  if (value === null || typeof value !== "object") {
2432
2432
  return false;
@@ -2447,8 +2447,8 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
2447
2447
  if (!isPlainObject2(defaults)) {
2448
2448
  return _defu(baseObject, {}, namespace, merger);
2449
2449
  }
2450
- const object2 = Object.assign({}, defaults);
2451
- for (const key in baseObject) {
2450
+ const object2 = { ...defaults };
2451
+ for (const key of Object.keys(baseObject)) {
2452
2452
  if (key === "__proto__" || key === "constructor") {
2453
2453
  continue;
2454
2454
  }
@@ -3547,5 +3547,5 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3547
3547
  }
3548
3548
 
3549
3549
  export { STORM_DEFAULT_RELEASE_BANNER, __require, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, formatLogMessage, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3550
- //# sourceMappingURL=chunk-3XAQUPZK.js.map
3551
- //# sourceMappingURL=chunk-3XAQUPZK.js.map
3550
+ //# sourceMappingURL=chunk-BPY6SBLC.js.map
3551
+ //# sourceMappingURL=chunk-BPY6SBLC.js.map