@storm-software/git-tools 2.131.121 → 2.131.123

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-2AV5HYTF.cjs → chunk-2NTFR3EF.cjs} +6 -6
  3. package/bin/{chunk-2AV5HYTF.cjs.map → chunk-2NTFR3EF.cjs.map} +1 -1
  4. package/bin/{chunk-IATNESIH.cjs → chunk-B5CZCP2Y.cjs} +4 -4
  5. package/bin/{chunk-IATNESIH.cjs.map → chunk-B5CZCP2Y.cjs.map} +1 -1
  6. package/bin/{chunk-NJMSWUK7.cjs → chunk-DGRFGD2R.cjs} +6 -5
  7. package/bin/chunk-DGRFGD2R.cjs.map +1 -0
  8. package/bin/{chunk-S7XHJBRS.js → chunk-GAHICIOD.js} +3 -3
  9. package/bin/{chunk-S7XHJBRS.js.map → chunk-GAHICIOD.js.map} +1 -1
  10. package/bin/{chunk-BBYXIOTE.cjs → chunk-IXUKWNVT.cjs} +4 -4
  11. package/bin/{chunk-BBYXIOTE.cjs.map → chunk-IXUKWNVT.cjs.map} +1 -1
  12. package/bin/{chunk-MHLCOIRK.js → chunk-KFRB3UCF.js} +3 -3
  13. package/bin/{chunk-MHLCOIRK.js.map → chunk-KFRB3UCF.js.map} +1 -1
  14. package/bin/{chunk-LJN53JNW.cjs → chunk-KJMWPKRH.cjs} +4 -4
  15. package/bin/{chunk-LJN53JNW.cjs.map → chunk-KJMWPKRH.cjs.map} +1 -1
  16. package/bin/{chunk-YKPFFJLQ.js → chunk-MSQDEBW3.js} +3 -3
  17. package/bin/{chunk-YKPFFJLQ.js.map → chunk-MSQDEBW3.js.map} +1 -1
  18. package/bin/{chunk-Z2M4I2BJ.cjs → chunk-MUNEGKNC.cjs} +5 -5
  19. package/bin/{chunk-Z2M4I2BJ.cjs.map → chunk-MUNEGKNC.cjs.map} +1 -1
  20. package/bin/{chunk-KN36EKQK.js → chunk-NNIW4L2Q.js} +3 -3
  21. package/bin/{chunk-KN36EKQK.js.map → chunk-NNIW4L2Q.js.map} +1 -1
  22. package/bin/{chunk-JORAXF7H.cjs → chunk-NZ4HDNJ7.cjs} +4 -4
  23. package/bin/{chunk-JORAXF7H.cjs.map → chunk-NZ4HDNJ7.cjs.map} +1 -1
  24. package/bin/{chunk-YNYCZK6A.js → chunk-SASCLX6I.js} +3 -3
  25. package/bin/{chunk-YNYCZK6A.js.map → chunk-SASCLX6I.js.map} +1 -1
  26. package/bin/{chunk-CYET4YQA.js → chunk-VIFL2F7H.js} +3 -3
  27. package/bin/{chunk-CYET4YQA.js.map → chunk-VIFL2F7H.js.map} +1 -1
  28. package/bin/{chunk-7J7WTT44.js → chunk-ZBZINLOA.js} +3 -3
  29. package/bin/{chunk-7J7WTT44.js.map → chunk-ZBZINLOA.js.map} +1 -1
  30. package/bin/{chunk-XQOIAFJG.cjs → chunk-ZL2JPPJF.cjs} +4 -4
  31. package/bin/{chunk-XQOIAFJG.cjs.map → chunk-ZL2JPPJF.cjs.map} +1 -1
  32. package/bin/{chunk-42Y4PTRA.js → chunk-ZW42VDY5.js} +6 -5
  33. package/bin/chunk-ZW42VDY5.js.map +1 -0
  34. package/bin/git.cjs +160 -156
  35. package/bin/git.cjs.map +1 -1
  36. package/bin/git.js +13 -9
  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 +6 -6
  55. package/bin/chunk-42Y4PTRA.js.map +0 -1
  56. package/bin/chunk-NJMSWUK7.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.120-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.122-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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSP3UCTLI_cjs = require('./chunk-SP3UCTLI.cjs');
4
- var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
4
+ var chunkDGRFGD2R_cjs = require('./chunk-DGRFGD2R.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
- chunkNJMSWUK7_cjs.writeInfo("Running pre-push hook...", config);
15
+ chunkDGRFGD2R_cjs.writeInfo("Running pre-push hook...", config);
16
16
  chunkSP3UCTLI_cjs.checkPackageVersion(files, config);
17
- chunkNJMSWUK7_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
17
+ chunkDGRFGD2R_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
18
18
  const workspaceRoot = config.workspaceRoot ?? "./";
19
19
  const lockFileName = chunkSP3UCTLI_cjs.getLockFileName(config.packageManager);
20
20
  const installCommand = chunkSP3UCTLI_cjs.getInstallCommand(config.packageManager);
@@ -50,9 +50,9 @@ async function prePushHook(config, files) {
50
50
  "\u274C Lock file validation failed\n" + errors.join("\n")
51
51
  );
52
52
  }
53
- chunkNJMSWUK7_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
53
+ chunkDGRFGD2R_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
54
54
  }
55
55
 
56
56
  exports.prePushHook = prePushHook;
57
- //# sourceMappingURL=chunk-2AV5HYTF.cjs.map
58
- //# sourceMappingURL=chunk-2AV5HYTF.cjs.map
57
+ //# sourceMappingURL=chunk-2NTFR3EF.cjs.map
58
+ //# sourceMappingURL=chunk-2NTFR3EF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-push.ts"],"names":["writeInfo","checkPackageVersion","getLockFileName","getInstallCommand","getOtherLockFileNames","fs","path","readFile","writeSuccess"],"mappings":";;;;;;;;;;;;;AAcA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAAC,qCAAA,CAAoB,OAAO,MAAM,CAAA;AAEjC,EAAAD,2BAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,aAAA,GAAgB,OAAO,aAAA,IAAiB,IAAA;AAC9C,EAAA,MAAM,YAAA,GAAeE,iCAAA,CAAgB,MAAA,CAAO,cAAc,CAAA;AAC1D,EAAA,MAAM,cAAA,GAAiBC,mCAAA,CAAkB,MAAA,CAAO,cAAc,CAAA;AAC9D,EAAA,MAAM,SAAS,EAAC;AAEhB,EAAA,KAAA,MAAW,aAAA,IAAiBC,uCAAA,CAAsB,MAAA,CAAO,cAAc,CAAA,EAAG;AACxE,IAAA,IAAIC,oBAAG,UAAA,CAAWC,qBAAA,CAAK,KAAK,aAAA,EAAe,aAAa,CAAC,CAAA,EAAG;AAC1D,MAAA,MAAA,CAAO,IAAA;AAAA,QACL,CAAA,uBAAA,EAA0B,aAAa,CAAA,uCAAA,EAA0C,YAAY,CAAA,CAAA;AAAA,OAC/F;AAAA,IACF;AAAA,EACF;AAEA,EAAA,IAAI;AACF,IAAA,MAAM,UAAU,MAAMC,iBAAA,CAASD,sBAAK,IAAA,CAAK,aAAA,EAAe,YAAY,CAAA,EAAG;AAAA,MACrE,QAAA,EAAU;AAAA,KACX,CAAA;AAED,IAAA,IAAI,MAAA,CAAO,mBAAmB,MAAA,EAAQ;AACpC,MAAA,IAAI,OAAA,EAAS,KAAA,CAAM,eAAe,CAAA,EAAG;AACnC,QAAA,MAAA,CAAO,IAAA;AAAA,UACL,CAAA,KAAA,EAAQ,YAAY,CAAA,iHAAA,EAAoH,cAAc,CAAA,CAAA;AAAA,SACxJ;AAAA,MACF;AACA,MAAA,IAAI,OAAA,EAAS,KAAA,CAAM,uBAAuB,CAAA,EAAG;AAC3C,QAAA,MAAA,CAAO,IAAA;AAAA,UACL,QAAQ,YAAY,CAAA,gEAAA;AAAA,SACtB;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,MAAA,CAAO,IAAA,CAAK,CAAA,KAAA,EAAQ,YAAY,CAAA,kCAAA,CAAoC,CAAA;AAAA,EACtE;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-2AV5HYTF.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\";\nimport {\n getInstallCommand,\n getLockFileName,\n getOtherLockFileNames\n} from \"../utilities/package-manager\";\n\nexport async function prePushHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-push hook...\", config);\n checkPackageVersion(files, config);\n\n writeInfo(\"🔒🔒🔒 Validating lock files 🔒🔒🔒\", config);\n\n const workspaceRoot = config.workspaceRoot ?? \"./\";\n const lockFileName = getLockFileName(config.packageManager);\n const installCommand = getInstallCommand(config.packageManager);\n const errors = [] as string[];\n\n for (const otherLockFile of getOtherLockFileNames(config.packageManager)) {\n if (fs.existsSync(path.join(workspaceRoot, otherLockFile))) {\n errors.push(\n `Invalid occurrence of \"${otherLockFile}\" file. Please remove it and use only \"${lockFileName}\"`\n );\n }\n }\n\n try {\n const content = await readFile(path.join(workspaceRoot, lockFileName), {\n encoding: \"utf8\"\n });\n\n if (config.packageManager === \"pnpm\") {\n if (content?.match(/localhost:487/)) {\n errors.push(\n `The \"${lockFileName}\" has reference to local repository (\"localhost:4873\"). Please ensure you disable local registry before running \"${installCommand}\"`\n );\n }\n if (content?.match(/resolution: \\{tarball/)) {\n errors.push(\n `The \"${lockFileName}\" has reference to tarball package. Please use npm registry only`\n );\n }\n }\n } catch {\n errors.push(`The \"${lockFileName}\" 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","getLockFileName","getInstallCommand","getOtherLockFileNames","fs","path","readFile","writeSuccess"],"mappings":";;;;;;;;;;;;;AAcA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAAC,qCAAA,CAAoB,OAAO,MAAM,CAAA;AAEjC,EAAAD,2BAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,aAAA,GAAgB,OAAO,aAAA,IAAiB,IAAA;AAC9C,EAAA,MAAM,YAAA,GAAeE,iCAAA,CAAgB,MAAA,CAAO,cAAc,CAAA;AAC1D,EAAA,MAAM,cAAA,GAAiBC,mCAAA,CAAkB,MAAA,CAAO,cAAc,CAAA;AAC9D,EAAA,MAAM,SAAS,EAAC;AAEhB,EAAA,KAAA,MAAW,aAAA,IAAiBC,uCAAA,CAAsB,MAAA,CAAO,cAAc,CAAA,EAAG;AACxE,IAAA,IAAIC,oBAAG,UAAA,CAAWC,qBAAA,CAAK,KAAK,aAAA,EAAe,aAAa,CAAC,CAAA,EAAG;AAC1D,MAAA,MAAA,CAAO,IAAA;AAAA,QACL,CAAA,uBAAA,EAA0B,aAAa,CAAA,uCAAA,EAA0C,YAAY,CAAA,CAAA;AAAA,OAC/F;AAAA,IACF;AAAA,EACF;AAEA,EAAA,IAAI;AACF,IAAA,MAAM,UAAU,MAAMC,iBAAA,CAASD,sBAAK,IAAA,CAAK,aAAA,EAAe,YAAY,CAAA,EAAG;AAAA,MACrE,QAAA,EAAU;AAAA,KACX,CAAA;AAED,IAAA,IAAI,MAAA,CAAO,mBAAmB,MAAA,EAAQ;AACpC,MAAA,IAAI,OAAA,EAAS,KAAA,CAAM,eAAe,CAAA,EAAG;AACnC,QAAA,MAAA,CAAO,IAAA;AAAA,UACL,CAAA,KAAA,EAAQ,YAAY,CAAA,iHAAA,EAAoH,cAAc,CAAA,CAAA;AAAA,SACxJ;AAAA,MACF;AACA,MAAA,IAAI,OAAA,EAAS,KAAA,CAAM,uBAAuB,CAAA,EAAG;AAC3C,QAAA,MAAA,CAAO,IAAA;AAAA,UACL,QAAQ,YAAY,CAAA,gEAAA;AAAA,SACtB;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,MAAA,CAAO,IAAA,CAAK,CAAA,KAAA,EAAQ,YAAY,CAAA,kCAAA,CAAoC,CAAA;AAAA,EACtE;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-2NTFR3EF.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\";\nimport {\n getInstallCommand,\n getLockFileName,\n getOtherLockFileNames\n} from \"../utilities/package-manager\";\n\nexport async function prePushHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-push hook...\", config);\n checkPackageVersion(files, config);\n\n writeInfo(\"🔒🔒🔒 Validating lock files 🔒🔒🔒\", config);\n\n const workspaceRoot = config.workspaceRoot ?? \"./\";\n const lockFileName = getLockFileName(config.packageManager);\n const installCommand = getInstallCommand(config.packageManager);\n const errors = [] as string[];\n\n for (const otherLockFile of getOtherLockFileNames(config.packageManager)) {\n if (fs.existsSync(path.join(workspaceRoot, otherLockFile))) {\n errors.push(\n `Invalid occurrence of \"${otherLockFile}\" file. Please remove it and use only \"${lockFileName}\"`\n );\n }\n }\n\n try {\n const content = await readFile(path.join(workspaceRoot, lockFileName), {\n encoding: \"utf8\"\n });\n\n if (config.packageManager === \"pnpm\") {\n if (content?.match(/localhost:487/)) {\n errors.push(\n `The \"${lockFileName}\" has reference to local repository (\"localhost:4873\"). Please ensure you disable local registry before running \"${installCommand}\"`\n );\n }\n if (content?.match(/resolution: \\{tarball/)) {\n errors.push(\n `The \"${lockFileName}\" has reference to tarball package. Please use npm registry only`\n );\n }\n }\n } catch {\n errors.push(`The \"${lockFileName}\" 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 chunkSP3UCTLI_cjs = require('./chunk-SP3UCTLI.cjs');
4
4
  var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
5
- var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
5
+ var chunkDGRFGD2R_cjs = require('./chunk-DGRFGD2R.cjs');
6
6
 
7
7
  // src/hooks/post-commit.ts
8
8
  async function postCommitHook(config, files) {
9
- chunkNJMSWUK7_cjs.writeInfo("Running post-commit hook...", config);
9
+ chunkDGRFGD2R_cjs.writeInfo("Running post-commit hook...", config);
10
10
  chunkSP3UCTLI_cjs.checkPackageVersion(files, config);
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.postCommitHook = postCommitHook;
23
- //# sourceMappingURL=chunk-IATNESIH.cjs.map
24
- //# sourceMappingURL=chunk-IATNESIH.cjs.map
23
+ //# sourceMappingURL=chunk-B5CZCP2Y.cjs.map
24
+ //# sourceMappingURL=chunk-B5CZCP2Y.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-commit.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,cAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,+BAA+B,MAAM,CAAA;AAC/C,EAAAC,qCAAA,CAAoB,OAAO,MAAM,CAAA;AAEjC,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,qBAAqB,CAAA;AACnC","file":"chunk-IATNESIH.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 postCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-commit hook...\", config);\n checkPackageVersion(files, config);\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-commit.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-commit\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/post-commit.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,cAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,+BAA+B,MAAM,CAAA;AAC/C,EAAAC,qCAAA,CAAoB,OAAO,MAAM,CAAA;AAEjC,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,qBAAqB,CAAA;AACnC","file":"chunk-B5CZCP2Y.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 postCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-commit hook...\", config);\n checkPackageVersion(files, config);\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-commit.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-commit\");\n}\n"]}
@@ -403,15 +403,16 @@ var handleProcess = (config2) => {
403
403
  );
404
404
  process.on("unhandledRejection", (error) => {
405
405
  writeError(
406
- `An Unhandled Rejection occurred while running the program: ${error}`,
406
+ `An Unhandled Rejection occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
407
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
407
408
  config2
408
409
  );
409
410
  exitWithError(config2);
410
411
  });
411
412
  process.on("uncaughtException", (error) => {
412
413
  writeError(
413
- `An Uncaught Exception occurred while running the program: ${error.message}
414
- Stacktrace: ${error.stack}`,
414
+ `An Uncaught Exception occurred while running the program: ${error && typeof error === "object" && "message" in error && error?.message ? error.message : typeof error === "string" ? error : "Unknown error"}
415
+ Stacktrace: ${error && typeof error === "object" && "stack" in error && error?.stack ? error.stack : ""}`,
415
416
  config2
416
417
  );
417
418
  exitWithError(config2);
@@ -3573,5 +3574,5 @@ exports.writeInfo = writeInfo;
3573
3574
  exports.writeSuccess = writeSuccess;
3574
3575
  exports.writeTrace = writeTrace;
3575
3576
  exports.writeWarning = writeWarning;
3576
- //# sourceMappingURL=chunk-NJMSWUK7.cjs.map
3577
- //# sourceMappingURL=chunk-NJMSWUK7.cjs.map
3577
+ //# sourceMappingURL=chunk-DGRFGD2R.cjs.map
3578
+ //# sourceMappingURL=chunk-DGRFGD2R.cjs.map