@storm-software/git-tools 2.131.75 → 2.131.76

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 (54) hide show
  1. package/README.md +7 -7
  2. package/bin/{chunk-GOHR7F5T.js → chunk-3NXGC5ST.js} +3 -3
  3. package/bin/{chunk-GOHR7F5T.js.map → chunk-3NXGC5ST.js.map} +1 -1
  4. package/bin/{chunk-JSI5AO4T.cjs → chunk-4FQ44OAT.cjs} +4 -4
  5. package/bin/{chunk-JSI5AO4T.cjs.map → chunk-4FQ44OAT.cjs.map} +1 -1
  6. package/bin/{chunk-MURFL6BB.js → chunk-4ZNUGFUK.js} +3 -3
  7. package/bin/{chunk-MURFL6BB.js.map → chunk-4ZNUGFUK.js.map} +1 -1
  8. package/bin/{chunk-HUNBUYVC.cjs → chunk-6G73LSPC.cjs} +4 -4
  9. package/bin/{chunk-HUNBUYVC.cjs.map → chunk-6G73LSPC.cjs.map} +1 -1
  10. package/bin/{chunk-L4IDLWWW.js → chunk-7NZOOZ4Y.js} +3 -3
  11. package/bin/{chunk-L4IDLWWW.js.map → chunk-7NZOOZ4Y.js.map} +1 -1
  12. package/bin/{chunk-WO432SEZ.cjs → chunk-DYZLP2KW.cjs} +6 -6
  13. package/bin/{chunk-WO432SEZ.cjs.map → chunk-DYZLP2KW.cjs.map} +1 -1
  14. package/bin/{chunk-5YEEPJM2.cjs → chunk-EOUDKHXD.cjs} +3 -3
  15. package/bin/{chunk-5YEEPJM2.cjs.map → chunk-EOUDKHXD.cjs.map} +1 -1
  16. package/bin/{chunk-IHYUNB2B.js → chunk-G6BAFKYK.js} +3 -3
  17. package/bin/{chunk-IHYUNB2B.js.map → chunk-G6BAFKYK.js.map} +1 -1
  18. package/bin/{chunk-W34H3XG2.js → chunk-HHHCNXKG.js} +3 -3
  19. package/bin/{chunk-W34H3XG2.js.map → chunk-HHHCNXKG.js.map} +1 -1
  20. package/bin/{chunk-B7J7QYQE.cjs → chunk-J4XLLB7C.cjs} +4 -4
  21. package/bin/{chunk-B7J7QYQE.cjs.map → chunk-J4XLLB7C.cjs.map} +1 -1
  22. package/bin/{chunk-5ATBB4TN.cjs → chunk-MEXEBGMK.cjs} +4 -4
  23. package/bin/{chunk-5ATBB4TN.cjs.map → chunk-MEXEBGMK.cjs.map} +1 -1
  24. package/bin/{chunk-KW4FEIVT.js → chunk-PNNIWPDQ.js} +3 -3
  25. package/bin/{chunk-KW4FEIVT.js.map → chunk-PNNIWPDQ.js.map} +1 -1
  26. package/bin/{chunk-RENIENIJ.js → chunk-RTCFD7IE.js} +3 -3
  27. package/bin/{chunk-RENIENIJ.js.map → chunk-RTCFD7IE.js.map} +1 -1
  28. package/bin/{chunk-JTWC65QP.cjs → chunk-SGNASXPC.cjs} +5 -5
  29. package/bin/{chunk-JTWC65QP.cjs.map → chunk-SGNASXPC.cjs.map} +1 -1
  30. package/bin/{chunk-5IKION45.cjs → chunk-UDTVAYLD.cjs} +4 -4
  31. package/bin/{chunk-5IKION45.cjs.map → chunk-UDTVAYLD.cjs.map} +1 -1
  32. package/bin/{chunk-LTBMRLM6.js → chunk-VWM473G5.js} +3 -3
  33. package/bin/{chunk-LTBMRLM6.js.map → chunk-VWM473G5.js.map} +1 -1
  34. package/bin/git.cjs +155 -155
  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/readme/templates/README.footer.md +3 -3
  53. package/dist/readme/templates/README.header.md +3 -3
  54. package/package.json +6 -6
@@ -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 chunk5YEEPJM2_cjs = require('./chunk-5YEEPJM2.cjs');
5
+ var chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
6
6
 
7
7
  // src/hooks/post-merge.ts
8
8
  async function postMergeHook(config, files) {
9
- chunk5YEEPJM2_cjs.writeInfo("Running post-merge hook...", config);
9
+ chunkEOUDKHXD_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-HUNBUYVC.cjs.map
24
- //# sourceMappingURL=chunk-HUNBUYVC.cjs.map
23
+ //# sourceMappingURL=chunk-6G73LSPC.cjs.map
24
+ //# sourceMappingURL=chunk-6G73LSPC.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-HUNBUYVC.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-6G73LSPC.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,6 +1,6 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
2
  import { run } from './chunk-RPK5AKGK.js';
3
- import { writeInfo } from './chunk-MURFL6BB.js';
3
+ import { writeInfo } from './chunk-4ZNUGFUK.js';
4
4
 
5
5
  // src/hooks/post-commit.ts
6
6
  async function postCommitHook(config, files) {
@@ -18,5 +18,5 @@ Error: ${error?.message}`
18
18
  }
19
19
 
20
20
  export { postCommitHook };
21
- //# sourceMappingURL=chunk-L4IDLWWW.js.map
22
- //# sourceMappingURL=chunk-L4IDLWWW.js.map
21
+ //# sourceMappingURL=chunk-7NZOOZ4Y.js.map
22
+ //# sourceMappingURL=chunk-7NZOOZ4Y.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-commit.ts"],"names":[],"mappings":";;;;;AAMA,eAAsB,cAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,+BAA+B,MAAM,CAAA;AAC/C,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,qBAAqB,CAAA;AACnC","file":"chunk-L4IDLWWW.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 postCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-commit 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-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":[],"mappings":";;;;;AAMA,eAAsB,cAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,+BAA+B,MAAM,CAAA;AAC/C,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,qBAAqB,CAAA;AACnC","file":"chunk-7NZOOZ4Y.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 postCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-commit 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-commit.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-commit\");\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunk5YEEPJM2_cjs = require('./chunk-5YEEPJM2.cjs');
4
+ var chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.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
- chunk5YEEPJM2_cjs.writeInfo("Running pre-push hook...", config);
15
+ chunkEOUDKHXD_cjs.writeInfo("Running pre-push hook...", config);
16
16
  chunkYHZNDNCW_cjs.checkPackageVersion(files);
17
- chunk5YEEPJM2_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
17
+ chunkEOUDKHXD_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
- chunk5YEEPJM2_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
54
+ chunkEOUDKHXD_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
55
55
  }
56
56
 
57
57
  exports.prePushHook = prePushHook;
58
- //# sourceMappingURL=chunk-WO432SEZ.cjs.map
59
- //# sourceMappingURL=chunk-WO432SEZ.cjs.map
58
+ //# sourceMappingURL=chunk-DYZLP2KW.cjs.map
59
+ //# sourceMappingURL=chunk-DYZLP2KW.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-WO432SEZ.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-DYZLP2KW.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"]}
@@ -1860,7 +1860,7 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
1860
1860
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
1861
1861
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
1862
1862
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
1863
- var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
1863
+ var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/storm-software/media/banner-1280x320.gif";
1864
1864
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
1865
1865
  var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
1866
1866
 
@@ -3571,5 +3571,5 @@ exports.writeInfo = writeInfo;
3571
3571
  exports.writeSuccess = writeSuccess;
3572
3572
  exports.writeTrace = writeTrace;
3573
3573
  exports.writeWarning = writeWarning;
3574
- //# sourceMappingURL=chunk-5YEEPJM2.cjs.map
3575
- //# sourceMappingURL=chunk-5YEEPJM2.cjs.map
3574
+ //# sourceMappingURL=chunk-EOUDKHXD.cjs.map
3575
+ //# sourceMappingURL=chunk-EOUDKHXD.cjs.map