@storm-software/git-tools 2.123.16 → 2.124.0
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.
- package/README.md +1 -1
- package/bin/{chunk-SWXHQXUT.cjs → chunk-AU5PZKTN.cjs} +2 -0
- package/bin/chunk-AU5PZKTN.cjs.map +1 -0
- package/bin/{chunk-G3JMIIRF.cjs → chunk-EHPPIARR.cjs} +12 -17
- package/bin/chunk-EHPPIARR.cjs.map +1 -0
- package/bin/{chunk-L64XVBGM.cjs → chunk-FH5OSXAJ.cjs} +2 -0
- package/bin/chunk-FH5OSXAJ.cjs.map +1 -0
- package/bin/{chunk-S5PS23TL.js → chunk-G3YPGVPS.js} +2 -0
- package/bin/chunk-G3YPGVPS.js.map +1 -0
- package/bin/{chunk-AMSZ7DVW.js → chunk-Q3DQKTOI.js} +2 -0
- package/bin/chunk-Q3DQKTOI.js.map +1 -0
- package/bin/{chunk-K3LWFM6S.js → chunk-VBJB46HW.js} +13 -17
- package/bin/chunk-VBJB46HW.js.map +1 -0
- package/bin/git.cjs +941 -1500
- package/bin/git.cjs.map +1 -0
- package/bin/git.js +887 -1447
- package/bin/git.js.map +1 -0
- package/bin/post-checkout.cjs +16 -14
- package/bin/post-checkout.cjs.map +1 -0
- package/bin/post-checkout.js +5 -3
- package/bin/post-checkout.js.map +1 -0
- package/bin/post-commit.cjs +16 -14
- package/bin/post-commit.cjs.map +1 -0
- package/bin/post-commit.js +5 -3
- package/bin/post-commit.js.map +1 -0
- package/bin/post-merge.cjs +16 -14
- package/bin/post-merge.cjs.map +1 -0
- package/bin/post-merge.js +5 -3
- package/bin/post-merge.js.map +1 -0
- package/bin/pre-commit.cjs +14 -12
- package/bin/pre-commit.cjs.map +1 -0
- package/bin/pre-commit.js +4 -2
- package/bin/pre-commit.js.map +1 -0
- package/bin/pre-install.cjs +13 -11
- package/bin/pre-install.cjs.map +1 -0
- package/bin/pre-install.js +4 -2
- package/bin/pre-install.js.map +1 -0
- package/bin/pre-push.cjs +21 -19
- package/bin/pre-push.cjs.map +1 -0
- package/bin/pre-push.js +5 -3
- package/bin/pre-push.js.map +1 -0
- package/bin/prepare.cjs +11 -9
- package/bin/prepare.cjs.map +1 -0
- package/bin/prepare.js +4 -2
- package/bin/prepare.js.map +1 -0
- package/bin/version-warning.cjs +9 -7
- package/bin/version-warning.cjs.map +1 -0
- package/bin/version-warning.js +4 -2
- package/bin/version-warning.js.map +1 -0
- package/dist/chunk-3GGWHKRP.js +3 -6
- package/dist/chunk-4VPJA7YJ.cjs +9 -9
- package/dist/chunk-5XU2KBM6.js +1 -3
- package/dist/chunk-F7OO6L26.cjs +11 -16
- package/dist/chunk-JCEVFJCA.js +4 -14
- package/dist/chunk-KZRVQ5RZ.js +3 -11
- package/dist/chunk-M4QURF2M.cjs +2454 -0
- package/dist/chunk-NY53WLGC.cjs +16 -23
- package/dist/chunk-RJCCG4TV.js +2420 -0
- package/dist/chunk-YBAE6I5L.cjs +3 -3
- package/dist/commit/minimal.cjs +11 -3
- package/dist/commit/minimal.js +3 -10
- package/dist/commit/monorepo.cjs +11 -3
- package/dist/commit/monorepo.d.cts +1 -0
- package/dist/commit/monorepo.d.ts +1 -0
- package/dist/commit/monorepo.js +4 -11
- package/dist/commitlint/minimal.cjs +4 -5
- package/dist/commitlint/minimal.js +3 -6
- package/dist/commitlint/monorepo.cjs +4 -5
- package/dist/commitlint/monorepo.js +3 -6
- package/dist/index.cjs +40 -14
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -20
- package/dist/release/config.cjs +30 -6
- package/dist/release/config.d.cts +33 -243
- package/dist/release/config.d.ts +33 -243
- package/dist/release/config.js +5 -14
- package/dist/types.cjs +7 -3
- package/dist/types.d.cts +91 -94
- package/dist/types.d.ts +91 -94
- package/dist/types.js +1 -6
- package/package.json +12 -12
- package/dist/chunk-GOKUSEH3.cjs +0 -77
- package/dist/chunk-YCEUZFMU.js +0 -77
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../config-tools/src/utilities/run.ts"],"names":["execSync"],"mappings":";;;;;AAGO,IAAM,eAAe,IAAA,GAAO,GAAA;AAmB5B,IAAM,GAAA,GAAM,CACjB,MAAA,EACA,OAAA,EACA,MAAc,MAAA,CAAO,aAAA,IAAiB,OAAA,CAAQ,GAAA,EAAI,EAClD,KAAA,GAAsB,SAAA,EACtB,GAAA,GAAyB,QAAQ,GAAA,KAC9B;AACH,EAAA,OAAOA,uBAAS,OAAA,EAAS;AAAA,IACvB,GAAA;AAAA,IACA,GAAA,EAAK;AAAA,MACH,GAAG,OAAA,CAAQ,GAAA;AAAA,MACX,GAAG,GAAA;AAAA,MACH,QAAA,EAAU,MAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,WAAA,EAAa,IAAA;AAAA,IACb,KAAA;AAAA,IACA,SAAA,EAAW,YAAA;AAAA,IACX,UAAA,EAAY,SAAA;AAAA,IACZ,QAAA,EAAU;AAAA,GACX,CAAA;AACH","file":"chunk-FH5OSXAJ.cjs","sourcesContent":["import type { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { exec, execSync } from \"node:child_process\";\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\n/**\n * Run a command line process\n *\n * @remarks\n * A wrapper around `execSync` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param stdio - The standard input/output options\n * @param env - The environment variables\n * @returns The result of the command\n */\nexport const run = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n stdio: StdioOptions = \"inherit\",\n env: NodeJS.ProcessEnv = process.env\n) => {\n return execSync(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n stdio,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n\n/**\n * Run an asynchronous command line process\n *\n * @remarks\n * A wrapper around `exec` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param env - The environment variables\n * @returns A promise with the result of the command\n */\nexport const runAsync = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n env: NodeJS.ProcessEnv = process.env\n) => {\n return exec(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../config-tools/src/utilities/run.ts"],"names":[],"mappings":";;;AAGO,IAAM,eAAe,IAAA,GAAO,GAAA;AAmB5B,IAAM,GAAA,GAAM,CACjB,MAAA,EACA,OAAA,EACA,MAAc,MAAA,CAAO,aAAA,IAAiB,OAAA,CAAQ,GAAA,EAAI,EAClD,KAAA,GAAsB,SAAA,EACtB,GAAA,GAAyB,QAAQ,GAAA,KAC9B;AACH,EAAA,OAAO,SAAS,OAAA,EAAS;AAAA,IACvB,GAAA;AAAA,IACA,GAAA,EAAK;AAAA,MACH,GAAG,OAAA,CAAQ,GAAA;AAAA,MACX,GAAG,GAAA;AAAA,MACH,QAAA,EAAU,MAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,WAAA,EAAa,IAAA;AAAA,IACb,KAAA;AAAA,IACA,SAAA,EAAW,YAAA;AAAA,IACX,UAAA,EAAY,SAAA;AAAA,IACZ,QAAA,EAAU;AAAA,GACX,CAAA;AACH","file":"chunk-G3YPGVPS.js","sourcesContent":["import type { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { exec, execSync } from \"node:child_process\";\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\n/**\n * Run a command line process\n *\n * @remarks\n * A wrapper around `execSync` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param stdio - The standard input/output options\n * @param env - The environment variables\n * @returns The result of the command\n */\nexport const run = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n stdio: StdioOptions = \"inherit\",\n env: NodeJS.ProcessEnv = process.env\n) => {\n return execSync(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n stdio,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n\n/**\n * Run an asynchronous command line process\n *\n * @remarks\n * A wrapper around `exec` to run our command line processes\n *\n * @param config - The Storm configuration object\n * @param command - The command to run\n * @param cwd - The current working directory\n * @param env - The environment variables\n * @returns A promise with the result of the command\n */\nexport const runAsync = (\n config: Partial<StormWorkspaceConfig>,\n command: string,\n cwd: string = config.workspaceRoot ?? process.cwd(),\n env: NodeJS.ProcessEnv = process.env\n) => {\n return exec(command, {\n cwd,\n env: {\n ...process.env,\n ...env,\n CLICOLOR: \"true\",\n FORCE_COLOR: \"true\"\n },\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\",\n encoding: \"utf8\"\n });\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/check-package-version.ts"],"names":[],"mappings":";AAAO,IAAM,uBAAA,GAA0B,YACrC,MAAA,EAAQ,IAAA;AAAA,EACN,CAAA,GAAA,KACE,IAAI,QAAA,CAAS,mBAAmB,KAChC,GAAA,CAAI,QAAA,CAAS,WAAW,CAAA,IACxB,GAAA,CAAI,QAAA,CAAS,gBAAgB,CAAA,IAC7B,GAAA,CAAI,QAAA,CAAS,gBAAgB,CAAA,IAC7B,GAAA,CAAI,SAAS,eAAe,CAAA,IAC5B,GAAA,CAAI,QAAA,CAAS,WAAW;AAC5B;AAEK,IAAM,sBAAsB,CAAA,MAAA,KAAU;AAC3C,EAAA,IAAI,uBAAA,CAAwB,MAAM,CAAA,EAAG;AACnC,IAAA,OAAA,CAAQ,IAAA;AAAA,MACN;AAAA,QACE,qHAAA;AAAA,QACA,qHAAA;AAAA,QACA;AAAA,OACF,CAAE,KAAK,IAAI;AAAA,KACb;AAAA,EACF;AACF","file":"chunk-Q3DQKTOI.js","sourcesContent":["export const isPackageVersionChanged = fields =>\n fields?.some(\n arg =>\n arg.includes(\"package-lock.json\") ||\n arg.includes(\"yarn.lock\") ||\n arg.includes(\"pnpm-lock.json\") ||\n arg.includes(\"pnpm-lock.yaml\") ||\n arg.includes(\"pnpm-lock.yml\") ||\n arg.includes(\"bun.lockb\")\n );\n\nexport const checkPackageVersion = fields => {\n if (isPackageVersionChanged(fields)) {\n console.warn(\n [\n \"⚠️ ----------------------------------------------------------------------------------------- ⚠️\",\n \"⚠️ The pnpm-lock file changed! Please run `pnpm i` to ensure your packages are up to date. ⚠️\",\n \"⚠️ ----------------------------------------------------------------------------------------- ⚠️\"\n ].join(\"\\n\")\n );\n }\n};\n"]}
|
|
@@ -5,12 +5,6 @@ import { join } from 'node:path';
|
|
|
5
5
|
import { readFile } from 'node:fs/promises';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
8
|
var __export = (target, all) => {
|
|
15
9
|
for (var name in all)
|
|
16
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -371,7 +365,7 @@ function config(newConfig) {
|
|
|
371
365
|
return globalConfig;
|
|
372
366
|
}
|
|
373
367
|
|
|
374
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
368
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
|
|
375
369
|
var util_exports = {};
|
|
376
370
|
__export(util_exports, {
|
|
377
371
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -1003,7 +997,7 @@ var Class = class {
|
|
|
1003
997
|
}
|
|
1004
998
|
};
|
|
1005
999
|
|
|
1006
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1000
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
|
|
1007
1001
|
var initializer = (inst, def) => {
|
|
1008
1002
|
inst.name = "$ZodError";
|
|
1009
1003
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1023,7 +1017,7 @@ var initializer = (inst, def) => {
|
|
|
1023
1017
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1024
1018
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1025
1019
|
|
|
1026
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1020
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
|
|
1027
1021
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1028
1022
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1029
1023
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1075,7 +1069,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1075
1069
|
};
|
|
1076
1070
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1077
1071
|
|
|
1078
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1072
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
|
|
1079
1073
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
1080
1074
|
var string = (params) => {
|
|
1081
1075
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
@@ -1083,7 +1077,7 @@ var string = (params) => {
|
|
|
1083
1077
|
};
|
|
1084
1078
|
var boolean = /^(?:true|false)$/i;
|
|
1085
1079
|
|
|
1086
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1080
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
|
|
1087
1081
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1088
1082
|
var _a;
|
|
1089
1083
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1175,14 +1169,14 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1175
1169
|
};
|
|
1176
1170
|
});
|
|
1177
1171
|
|
|
1178
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1172
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
|
|
1179
1173
|
var version = {
|
|
1180
1174
|
major: 4,
|
|
1181
1175
|
minor: 1,
|
|
1182
|
-
patch:
|
|
1176
|
+
patch: 12
|
|
1183
1177
|
};
|
|
1184
1178
|
|
|
1185
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1179
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
|
|
1186
1180
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1187
1181
|
var _a;
|
|
1188
1182
|
inst ?? (inst = {});
|
|
@@ -1873,7 +1867,7 @@ function registry() {
|
|
|
1873
1867
|
return new $ZodRegistry();
|
|
1874
1868
|
}
|
|
1875
1869
|
|
|
1876
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1870
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
|
|
1877
1871
|
function _string(Class2, params) {
|
|
1878
1872
|
return new Class2({
|
|
1879
1873
|
type: "string",
|
|
@@ -1928,7 +1922,7 @@ function _toLowerCase() {
|
|
|
1928
1922
|
return _overwrite((input) => input.toLowerCase());
|
|
1929
1923
|
}
|
|
1930
1924
|
|
|
1931
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1925
|
+
// ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/mini/schemas.js
|
|
1932
1926
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
1933
1927
|
if (!inst._zod)
|
|
1934
1928
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -3758,4 +3752,6 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
3758
3752
|
return getConfig(workspaceRoot, skipLogs);
|
|
3759
3753
|
}
|
|
3760
3754
|
|
|
3761
|
-
export { STORM_DEFAULT_RELEASE_BANNER,
|
|
3755
|
+
export { STORM_DEFAULT_RELEASE_BANNER, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
|
|
3756
|
+
//# sourceMappingURL=chunk-VBJB46HW.js.map
|
|
3757
|
+
//# sourceMappingURL=chunk-VBJB46HW.js.map
|