@storm-software/git-tools 2.131.22 → 2.131.23

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 (75) hide show
  1. package/bin/{chunk-K3M4EFXG.js → chunk-2JR3HPAL.js} +3 -3
  2. package/bin/{chunk-K3M4EFXG.js.map → chunk-2JR3HPAL.js.map} +1 -1
  3. package/bin/{chunk-2K6K4B6C.js → chunk-5OEE2E65.js} +3 -3
  4. package/bin/{chunk-2K6K4B6C.js.map → chunk-5OEE2E65.js.map} +1 -1
  5. package/bin/{chunk-7FLNOTUH.cjs → chunk-77NN2DPB.cjs} +4 -4
  6. package/bin/{chunk-7FLNOTUH.cjs.map → chunk-77NN2DPB.cjs.map} +1 -1
  7. package/bin/{chunk-2DHSN2C3.cjs → chunk-7I4XZL7P.cjs} +6 -6
  8. package/bin/{chunk-2DHSN2C3.cjs.map → chunk-7I4XZL7P.cjs.map} +1 -1
  9. package/bin/{chunk-OOFHIS6Q.cjs → chunk-AU2HBQCB.cjs} +8 -4
  10. package/bin/{chunk-OOFHIS6Q.cjs.map → chunk-AU2HBQCB.cjs.map} +1 -1
  11. package/bin/{chunk-NPCKWTZG.js → chunk-CBJFXXVE.js} +3 -3
  12. package/bin/{chunk-NPCKWTZG.js.map → chunk-CBJFXXVE.js.map} +1 -1
  13. package/bin/{chunk-PXSKDL54.cjs → chunk-FNM5AXPR.cjs} +4 -4
  14. package/bin/{chunk-PXSKDL54.cjs.map → chunk-FNM5AXPR.cjs.map} +1 -1
  15. package/bin/{chunk-JZL474YC.js → chunk-J76RVP3G.js} +3 -3
  16. package/bin/{chunk-JZL474YC.js.map → chunk-J76RVP3G.js.map} +1 -1
  17. package/bin/{chunk-S2KYF4B5.js → chunk-KBH5ZZ4V.js} +3 -3
  18. package/bin/{chunk-S2KYF4B5.js.map → chunk-KBH5ZZ4V.js.map} +1 -1
  19. package/bin/{chunk-RNHFC7RJ.js → chunk-KDRZY2YU.js} +8 -4
  20. package/bin/{chunk-RNHFC7RJ.js.map → chunk-KDRZY2YU.js.map} +1 -1
  21. package/bin/{chunk-GVYZ5VMU.cjs → chunk-KHPLFH3X.cjs} +4 -4
  22. package/bin/{chunk-GVYZ5VMU.cjs.map → chunk-KHPLFH3X.cjs.map} +1 -1
  23. package/bin/{chunk-CZGE4575.cjs → chunk-NKCKZ3E3.cjs} +4 -4
  24. package/bin/{chunk-CZGE4575.cjs.map → chunk-NKCKZ3E3.cjs.map} +1 -1
  25. package/bin/{chunk-NFY3U5Y5.js → chunk-S2N3WA4O.js} +3 -3
  26. package/bin/{chunk-NFY3U5Y5.js.map → chunk-S2N3WA4O.js.map} +1 -1
  27. package/bin/{chunk-WVG2JDAL.js → chunk-YDVAE433.js} +3 -3
  28. package/bin/{chunk-WVG2JDAL.js.map → chunk-YDVAE433.js.map} +1 -1
  29. package/bin/{chunk-TCH5N4G6.cjs → chunk-Z5SKX5XN.cjs} +4 -4
  30. package/bin/{chunk-TCH5N4G6.cjs.map → chunk-Z5SKX5XN.cjs.map} +1 -1
  31. package/bin/{chunk-KQFEBKJ6.cjs → chunk-ZRZDX2ZA.cjs} +5 -5
  32. package/bin/{chunk-KQFEBKJ6.cjs.map → chunk-ZRZDX2ZA.cjs.map} +1 -1
  33. package/bin/git.cjs +152 -163
  34. package/bin/git.cjs.map +1 -1
  35. package/bin/git.js +15 -26
  36. package/bin/git.js.map +1 -1
  37. package/bin/post-checkout.cjs +7 -7
  38. package/bin/post-checkout.js +2 -2
  39. package/bin/post-commit.cjs +7 -7
  40. package/bin/post-commit.js +2 -2
  41. package/bin/post-merge.cjs +7 -7
  42. package/bin/post-merge.js +2 -2
  43. package/bin/pre-commit.cjs +7 -7
  44. package/bin/pre-commit.js +2 -2
  45. package/bin/pre-install.cjs +7 -7
  46. package/bin/pre-install.js +2 -2
  47. package/bin/pre-push.cjs +7 -7
  48. package/bin/pre-push.js +2 -2
  49. package/bin/prepare.cjs +7 -7
  50. package/bin/prepare.js +2 -2
  51. package/bin/version-warning.cjs +5 -5
  52. package/bin/version-warning.js +1 -1
  53. package/dist/{chunk-3ISKKN7V.cjs → chunk-2KO5IEIY.cjs} +2 -2
  54. package/dist/{chunk-3NDL3NYQ.cjs → chunk-46DT23BR.cjs} +6 -2
  55. package/dist/{chunk-22KHZEQ7.js → chunk-4KMJAFZI.js} +1 -1
  56. package/dist/{chunk-MWHYSQOS.cjs → chunk-6HBRIYPP.cjs} +3 -3
  57. package/dist/{chunk-HLX2O3W5.js → chunk-BNXSIXM2.js} +5 -16
  58. package/dist/{chunk-PV25OROZ.js → chunk-BPDSCBOI.js} +6 -2
  59. package/dist/{chunk-4SXK4XZ7.js → chunk-C53K5W6J.js} +1 -1
  60. package/dist/{chunk-Q22WRFSZ.cjs → chunk-CUC73XZD.cjs} +15 -26
  61. package/dist/{chunk-PUNY63CE.cjs → chunk-D2TE2WQZ.cjs} +2 -2
  62. package/dist/{chunk-ICTL4AOJ.js → chunk-FBGULNA7.js} +1 -1
  63. package/dist/{chunk-BBFGZEK2.cjs → chunk-GNPQRGZ2.cjs} +4 -4
  64. package/dist/{chunk-JOWTWLTO.js → chunk-HRYBIFJL.js} +1 -1
  65. package/dist/{chunk-K6YQY3XT.cjs → chunk-IDG5O4UL.cjs} +2 -2
  66. package/dist/{chunk-GQZU3KQU.cjs → chunk-KVTWY6IN.cjs} +2 -2
  67. package/dist/{chunk-GPIIJKQ7.js → chunk-NABJ2MII.js} +1 -1
  68. package/dist/{chunk-TUICLGR7.js → chunk-UVEWNW75.js} +1 -1
  69. package/dist/{chunk-VVDS3FJO.js → chunk-WVCBWTDU.js} +1 -1
  70. package/dist/{chunk-OWXRRH4A.cjs → chunk-YOBEA3QU.cjs} +2 -2
  71. package/dist/index.cjs +33 -33
  72. package/dist/index.js +9 -9
  73. package/dist/release/config.cjs +19 -19
  74. package/dist/release/config.js +2 -2
  75. package/package.json +6 -6
@@ -1,5 +1,5 @@
1
1
  import { run } from './chunk-RPK5AKGK.js';
2
- import { writeInfo } from './chunk-RNHFC7RJ.js';
2
+ import { writeInfo } from './chunk-KDRZY2YU.js';
3
3
 
4
4
  // src/hooks/prepare.ts
5
5
  async function prepareHook(config) {
@@ -10,5 +10,5 @@ async function prepareHook(config) {
10
10
  }
11
11
 
12
12
  export { prepareHook };
13
- //# sourceMappingURL=chunk-NPCKWTZG.js.map
14
- //# sourceMappingURL=chunk-NPCKWTZG.js.map
13
+ //# sourceMappingURL=chunk-CBJFXXVE.js.map
14
+ //# sourceMappingURL=chunk-CBJFXXVE.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/prepare.ts"],"names":[],"mappings":";;;;AAKA,eAAsB,YAAY,MAAA,EAA8B;AAC9D,EAAA,SAAA,CAAU,2BAA2B,MAAM,CAAA;AAE3C,EAAA,IAAI,CAAC,OAAA,CAAQ,GAAA,CAAI,MAAM,CAAC,OAAA,CAAQ,IAAI,QAAA,EAAU;AAC5C,IAAA,GAAA,CAAI,QAAQ,uBAAuB,CAAA;AAAA,EACrC;AACF","file":"chunk-NPCKWTZG.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 prepareHook(config: StormWorkspaceConfig) {\n writeInfo(\"Running prepare hook...\", config);\n\n if (!process.env.CI && !process.env.STORM_CI) {\n run(config, \"pnpm lefthook install\");\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/prepare.ts"],"names":[],"mappings":";;;;AAKA,eAAsB,YAAY,MAAA,EAA8B;AAC9D,EAAA,SAAA,CAAU,2BAA2B,MAAM,CAAA;AAE3C,EAAA,IAAI,CAAC,OAAA,CAAQ,GAAA,CAAI,MAAM,CAAC,OAAA,CAAQ,IAAI,QAAA,EAAU;AAC5C,IAAA,GAAA,CAAI,QAAQ,uBAAuB,CAAA;AAAA,EACrC;AACF","file":"chunk-CBJFXXVE.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 prepareHook(config: StormWorkspaceConfig) {\n writeInfo(\"Running prepare hook...\", config);\n\n if (!process.env.CI && !process.env.STORM_CI) {\n run(config, \"pnpm lefthook install\");\n }\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 chunkOOFHIS6Q_cjs = require('./chunk-OOFHIS6Q.cjs');
5
+ var chunkAU2HBQCB_cjs = require('./chunk-AU2HBQCB.cjs');
6
6
 
7
7
  // src/hooks/post-merge.ts
8
8
  async function postMergeHook(config, files) {
9
- chunkOOFHIS6Q_cjs.writeInfo("Running post-merge hook...", config);
9
+ chunkAU2HBQCB_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-PXSKDL54.cjs.map
24
- //# sourceMappingURL=chunk-PXSKDL54.cjs.map
23
+ //# sourceMappingURL=chunk-FNM5AXPR.cjs.map
24
+ //# sourceMappingURL=chunk-FNM5AXPR.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-PXSKDL54.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-FNM5AXPR.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,5 +1,5 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
- import { writeInfo, writeSuccess } from './chunk-RNHFC7RJ.js';
2
+ import { writeInfo, writeSuccess } from './chunk-KDRZY2YU.js';
3
3
  import fs from 'node:fs';
4
4
  import { readFile } from 'node:fs/promises';
5
5
  import path from 'node:path';
@@ -48,5 +48,5 @@ async function prePushHook(config, files) {
48
48
  }
49
49
 
50
50
  export { prePushHook };
51
- //# sourceMappingURL=chunk-JZL474YC.js.map
52
- //# sourceMappingURL=chunk-JZL474YC.js.map
51
+ //# sourceMappingURL=chunk-J76RVP3G.js.map
52
+ //# sourceMappingURL=chunk-J76RVP3G.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-push.ts"],"names":[],"mappings":";;;;;;AASA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,SAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,SAAS,EAAC;AAChB,EAAA,IACE,EAAA,CAAG,WAAW,IAAA,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,IAAI,EAAA,CAAG,WAAW,IAAA,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,MAAM,QAAA;AAAA,MACpB,IAAA,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,EAAA,YAAA,CAAa,sCAAiC,MAAM,CAAA;AAetD","file":"chunk-JZL474YC.js","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":[],"mappings":";;;;;;AASA,eAAsB,WAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,4BAA4B,MAAM,CAAA;AAC5C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,SAAA,CAAU,iFAAuC,MAAM,CAAA;AAEvD,EAAA,MAAM,SAAS,EAAC;AAChB,EAAA,IACE,EAAA,CAAG,WAAW,IAAA,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,IAAI,EAAA,CAAG,WAAW,IAAA,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,MAAM,QAAA;AAAA,MACpB,IAAA,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,EAAA,YAAA,CAAa,sCAAiC,MAAM,CAAA;AAetD","file":"chunk-J76RVP3G.js","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,6 +1,6 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
2
  import { run } from './chunk-RPK5AKGK.js';
3
- import { writeInfo } from './chunk-RNHFC7RJ.js';
3
+ import { writeInfo } from './chunk-KDRZY2YU.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-S2KYF4B5.js.map
22
- //# sourceMappingURL=chunk-S2KYF4B5.js.map
21
+ //# sourceMappingURL=chunk-KBH5ZZ4V.js.map
22
+ //# sourceMappingURL=chunk-KBH5ZZ4V.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-S2KYF4B5.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-KBH5ZZ4V.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"]}
@@ -356,9 +356,13 @@ ${message.map(
356
356
  depth2 + 1
357
357
  )}`
358
358
  ).join("\n")}` : typeof message === "object" ? `
359
- ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a, b) => a.localeCompare(b) : void 0).map(
359
+ ${Object.keys(message).filter(
360
+ (key) => !skip.map((k) => k.toLowerCase()).includes(typeof key === "string" ? key.toLowerCase() : key)
361
+ ).sort(sort ? (a, b) => a.localeCompare(b) : void 0).map(
360
362
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
361
- (key2) => !skip.includes(key2)
363
+ (key2) => !skip.map((k) => k.toLowerCase()).includes(
364
+ typeof key2 === "string" ? key2.toLowerCase() : key2
365
+ )
362
366
  ).length === 0 ? "{}" : formatLogMessage(
363
367
  message[key],
364
368
  { prefix: `${prefix}--`, skip, sort },
@@ -3541,5 +3545,5 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3541
3545
  }
3542
3546
 
3543
3547
  export { STORM_DEFAULT_RELEASE_BANNER, __require, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, formatLogMessage, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3544
- //# sourceMappingURL=chunk-RNHFC7RJ.js.map
3545
- //# sourceMappingURL=chunk-RNHFC7RJ.js.map
3548
+ //# sourceMappingURL=chunk-KDRZY2YU.js.map
3549
+ //# sourceMappingURL=chunk-KDRZY2YU.js.map