@storm-software/git-tools 2.131.106 → 2.131.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-VWM473G5.js → chunk-2YVIE3BK.js} +3 -3
  3. package/bin/{chunk-VWM473G5.js.map → chunk-2YVIE3BK.js.map} +1 -1
  4. package/bin/{chunk-4ZNUGFUK.js → chunk-42Y4PTRA.js} +5 -3
  5. package/bin/chunk-42Y4PTRA.js.map +1 -0
  6. package/bin/{chunk-3NXGC5ST.js → chunk-DKB6PGG3.js} +3 -3
  7. package/bin/{chunk-3NXGC5ST.js.map → chunk-DKB6PGG3.js.map} +1 -1
  8. package/bin/{chunk-DYZLP2KW.cjs → chunk-EQSXP2RC.cjs} +6 -6
  9. package/bin/{chunk-DYZLP2KW.cjs.map → chunk-EQSXP2RC.cjs.map} +1 -1
  10. package/bin/{chunk-6G73LSPC.cjs → chunk-FG3I2VCP.cjs} +4 -4
  11. package/bin/{chunk-6G73LSPC.cjs.map → chunk-FG3I2VCP.cjs.map} +1 -1
  12. package/bin/{chunk-MEXEBGMK.cjs → chunk-FNMZLTI2.cjs} +4 -4
  13. package/bin/{chunk-MEXEBGMK.cjs.map → chunk-FNMZLTI2.cjs.map} +1 -1
  14. package/bin/{chunk-7NZOOZ4Y.js → chunk-GUKZHV4C.js} +3 -3
  15. package/bin/{chunk-7NZOOZ4Y.js.map → chunk-GUKZHV4C.js.map} +1 -1
  16. package/bin/{chunk-G6BAFKYK.js → chunk-IFGNDIXB.js} +3 -3
  17. package/bin/{chunk-G6BAFKYK.js.map → chunk-IFGNDIXB.js.map} +1 -1
  18. package/bin/{chunk-PNNIWPDQ.js → chunk-JJVQKQSQ.js} +3 -3
  19. package/bin/{chunk-PNNIWPDQ.js.map → chunk-JJVQKQSQ.js.map} +1 -1
  20. package/bin/{chunk-UDTVAYLD.cjs → chunk-K6GWYEPW.cjs} +4 -4
  21. package/bin/{chunk-UDTVAYLD.cjs.map → chunk-K6GWYEPW.cjs.map} +1 -1
  22. package/bin/{chunk-HHHCNXKG.js → chunk-KMPLSTO3.js} +3 -3
  23. package/bin/{chunk-HHHCNXKG.js.map → chunk-KMPLSTO3.js.map} +1 -1
  24. package/bin/{chunk-EOUDKHXD.cjs → chunk-NJMSWUK7.cjs} +5 -3
  25. package/bin/chunk-NJMSWUK7.cjs.map +1 -0
  26. package/bin/{chunk-4FQ44OAT.cjs → chunk-PWU3UV75.cjs} +4 -4
  27. package/bin/{chunk-4FQ44OAT.cjs.map → chunk-PWU3UV75.cjs.map} +1 -1
  28. package/bin/{chunk-SGNASXPC.cjs → chunk-SGL3Y2VO.cjs} +5 -5
  29. package/bin/{chunk-SGNASXPC.cjs.map → chunk-SGL3Y2VO.cjs.map} +1 -1
  30. package/bin/{chunk-J4XLLB7C.cjs → chunk-TQGWTIZB.cjs} +4 -4
  31. package/bin/{chunk-J4XLLB7C.cjs.map → chunk-TQGWTIZB.cjs.map} +1 -1
  32. package/bin/{chunk-RTCFD7IE.js → chunk-WPUDOWXK.js} +3 -3
  33. package/bin/{chunk-RTCFD7IE.js.map → chunk-WPUDOWXK.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/{chunk-FSWYRWN4.cjs → chunk-FN4S2UNY.cjs} +3 -1
  53. package/dist/{chunk-BALS7LKN.js → chunk-UX5W5DUP.js} +3 -1
  54. package/dist/index.cjs +18 -18
  55. package/dist/index.js +1 -1
  56. package/dist/release/config.cjs +18 -18
  57. package/dist/release/config.js +1 -1
  58. package/package.json +6 -6
  59. package/bin/chunk-4ZNUGFUK.js.map +0 -1
  60. package/bin/chunk-EOUDKHXD.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
- import { writeInfo, writeSuccess } from './chunk-4ZNUGFUK.js';
2
+ import { writeInfo, writeSuccess } from './chunk-42Y4PTRA.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-3NXGC5ST.js.map
52
- //# sourceMappingURL=chunk-3NXGC5ST.js.map
51
+ //# sourceMappingURL=chunk-DKB6PGG3.js.map
52
+ //# sourceMappingURL=chunk-DKB6PGG3.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-3NXGC5ST.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-DKB6PGG3.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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
4
+ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.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
- chunkEOUDKHXD_cjs.writeInfo("Running pre-push hook...", config);
15
+ chunkNJMSWUK7_cjs.writeInfo("Running pre-push hook...", config);
16
16
  chunkYHZNDNCW_cjs.checkPackageVersion(files);
17
- chunkEOUDKHXD_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
17
+ chunkNJMSWUK7_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
- chunkEOUDKHXD_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
54
+ chunkNJMSWUK7_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
55
55
  }
56
56
 
57
57
  exports.prePushHook = prePushHook;
58
- //# sourceMappingURL=chunk-DYZLP2KW.cjs.map
59
- //# sourceMappingURL=chunk-DYZLP2KW.cjs.map
58
+ //# sourceMappingURL=chunk-EQSXP2RC.cjs.map
59
+ //# sourceMappingURL=chunk-EQSXP2RC.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-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"]}
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-EQSXP2RC.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 chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
5
+ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
6
6
 
7
7
  // src/hooks/post-merge.ts
8
8
  async function postMergeHook(config, files) {
9
- chunkEOUDKHXD_cjs.writeInfo("Running post-merge hook...", config);
9
+ chunkNJMSWUK7_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-6G73LSPC.cjs.map
24
- //# sourceMappingURL=chunk-6G73LSPC.cjs.map
23
+ //# sourceMappingURL=chunk-FG3I2VCP.cjs.map
24
+ //# sourceMappingURL=chunk-FG3I2VCP.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-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
+ {"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-FG3I2VCP.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,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
4
- var chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
4
+ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
5
5
 
6
6
  // src/hooks/pre-commit.ts
7
7
  async function preCommitHook(config, files) {
8
- chunkEOUDKHXD_cjs.writeInfo("Running pre-commit hook...", config);
8
+ chunkNJMSWUK7_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-MEXEBGMK.cjs.map
19
- //# sourceMappingURL=chunk-MEXEBGMK.cjs.map
18
+ //# sourceMappingURL=chunk-FNMZLTI2.cjs.map
19
+ //# sourceMappingURL=chunk-FNMZLTI2.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-MEXEBGMK.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-FNMZLTI2.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,6 +1,6 @@
1
1
  import { checkPackageVersion } from './chunk-HBLWPOJV.js';
2
2
  import { run } from './chunk-RPK5AKGK.js';
3
- import { writeInfo } from './chunk-4ZNUGFUK.js';
3
+ import { writeInfo } from './chunk-42Y4PTRA.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-7NZOOZ4Y.js.map
22
- //# sourceMappingURL=chunk-7NZOOZ4Y.js.map
21
+ //# sourceMappingURL=chunk-GUKZHV4C.js.map
22
+ //# sourceMappingURL=chunk-GUKZHV4C.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-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
+ {"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-GUKZHV4C.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,5 +1,5 @@
1
1
  import { checkPackageVersion, isPackageVersionChanged } from './chunk-HBLWPOJV.js';
2
- import { writeInfo } from './chunk-4ZNUGFUK.js';
2
+ import { writeInfo } from './chunk-42Y4PTRA.js';
3
3
 
4
4
  // src/hooks/pre-commit.ts
5
5
  async function preCommitHook(config, files) {
@@ -13,5 +13,5 @@ async function preCommitHook(config, files) {
13
13
  }
14
14
 
15
15
  export { preCommitHook };
16
- //# sourceMappingURL=chunk-G6BAFKYK.js.map
17
- //# sourceMappingURL=chunk-G6BAFKYK.js.map
16
+ //# sourceMappingURL=chunk-IFGNDIXB.js.map
17
+ //# sourceMappingURL=chunk-IFGNDIXB.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/pre-commit.ts"],"names":[],"mappings":";;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAI,uBAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-G6BAFKYK.js","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":[],"mappings":";;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAA,SAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAA,mBAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAI,uBAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-IFGNDIXB.js","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,5 +1,5 @@
1
1
  import { run } from './chunk-RPK5AKGK.js';
2
- import { writeInfo } from './chunk-4ZNUGFUK.js';
2
+ import { writeInfo } from './chunk-42Y4PTRA.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-PNNIWPDQ.js.map
14
- //# sourceMappingURL=chunk-PNNIWPDQ.js.map
13
+ //# sourceMappingURL=chunk-JJVQKQSQ.js.map
14
+ //# sourceMappingURL=chunk-JJVQKQSQ.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-PNNIWPDQ.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-JJVQKQSQ.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 chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
5
+ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
6
6
 
7
7
  // src/hooks/post-checkout.ts
8
8
  async function postCheckoutHook(config, files) {
9
- chunkEOUDKHXD_cjs.writeInfo("Running post-checkout hook...", config);
9
+ chunkNJMSWUK7_cjs.writeInfo("Running post-checkout 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.postCheckoutHook = postCheckoutHook;
23
- //# sourceMappingURL=chunk-UDTVAYLD.cjs.map
24
- //# sourceMappingURL=chunk-UDTVAYLD.cjs.map
23
+ //# sourceMappingURL=chunk-K6GWYEPW.cjs.map
24
+ //# sourceMappingURL=chunk-K6GWYEPW.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/post-checkout.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,gBAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,iCAAiC,MAAM,CAAA;AACjD,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,uBAAuB,CAAA;AACrC","file":"chunk-UDTVAYLD.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 postCheckoutHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-checkout 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-checkout.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-checkout\");\n}\n"]}
1
+ {"version":3,"sources":["../../src/hooks/post-checkout.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,gBAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,iCAAiC,MAAM,CAAA;AACjD,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,uBAAuB,CAAA;AACrC","file":"chunk-K6GWYEPW.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 postCheckoutHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running post-checkout 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-checkout.\\nError: ${\n (error as Error)?.message\n }`\n );\n }\n\n run(config, \"git lfs post-checkout\");\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-4ZNUGFUK.js';
3
+ import { writeInfo } from './chunk-42Y4PTRA.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-HHHCNXKG.js.map
22
- //# sourceMappingURL=chunk-HHHCNXKG.js.map
21
+ //# sourceMappingURL=chunk-KMPLSTO3.js.map
22
+ //# sourceMappingURL=chunk-KMPLSTO3.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-HHHCNXKG.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-KMPLSTO3.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"]}
@@ -2663,7 +2663,9 @@ var rootFiles = [
2663
2663
  "npm-lock.yml",
2664
2664
  "yarn-lock.yml",
2665
2665
  "pnpm-lock.yml",
2666
- "bun.lockb"
2666
+ "bun.lockb",
2667
+ "bun.lock",
2668
+ "bunfig.toml"
2667
2669
  ];
2668
2670
  var rootDirectories = [
2669
2671
  ".storm-workspace",
@@ -3571,5 +3573,5 @@ exports.writeInfo = writeInfo;
3571
3573
  exports.writeSuccess = writeSuccess;
3572
3574
  exports.writeTrace = writeTrace;
3573
3575
  exports.writeWarning = writeWarning;
3574
- //# sourceMappingURL=chunk-EOUDKHXD.cjs.map
3575
- //# sourceMappingURL=chunk-EOUDKHXD.cjs.map
3576
+ //# sourceMappingURL=chunk-NJMSWUK7.cjs.map
3577
+ //# sourceMappingURL=chunk-NJMSWUK7.cjs.map