@storm-software/git-tools 2.104.3 → 2.104.5
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-YTMPCK35.js → chunk-JT7CY52A.js} +32 -12
- package/bin/{chunk-KX7Y62QY.cjs → chunk-WZ6ONU2G.cjs} +32 -12
- package/bin/git.cjs +590 -556
- package/bin/git.js +522 -488
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -39678,7 +39678,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
39678
39678
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
39679
39679
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
39680
39680
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
39681
|
-
var
|
|
39681
|
+
var errorConfigSchema = z.object({
|
|
39682
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
39683
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
39684
|
+
}).describe("The workspace's error config used during the error process");
|
|
39685
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
39682
39686
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
39683
39687
|
extends: ExtendsSchema.optional(),
|
|
39684
39688
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -39696,6 +39700,7 @@ var StormConfigSchema = z.object({
|
|
|
39696
39700
|
bot: WorkspaceBotConfigSchema,
|
|
39697
39701
|
release: WorkspaceReleaseConfigSchema,
|
|
39698
39702
|
account: WorkspaceAccountConfigSchema,
|
|
39703
|
+
error: errorConfigSchema,
|
|
39699
39704
|
mode: z.enum([
|
|
39700
39705
|
"development",
|
|
39701
39706
|
"staging",
|
|
@@ -40039,7 +40044,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
40039
40044
|
license,
|
|
40040
40045
|
homepage,
|
|
40041
40046
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
40042
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
40047
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
40048
|
+
error: {
|
|
40049
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
40050
|
+
}
|
|
40043
40051
|
};
|
|
40044
40052
|
}, "getDefaultConfig");
|
|
40045
40053
|
|
|
@@ -41046,6 +41054,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
41046
41054
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
41047
41055
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
41048
41056
|
},
|
|
41057
|
+
error: {
|
|
41058
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
41059
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
41060
|
+
},
|
|
41049
41061
|
account: {
|
|
41050
41062
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
41051
41063
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -41220,6 +41232,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
41220
41232
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
41221
41233
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
41222
41234
|
}
|
|
41235
|
+
if (config.error) {
|
|
41236
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
41237
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
41238
|
+
}
|
|
41223
41239
|
if (config.release) {
|
|
41224
41240
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
41225
41241
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -41350,7 +41366,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
41350
41366
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
41351
41367
|
}
|
|
41352
41368
|
if (config.registry.container) {
|
|
41353
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
41369
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
41354
41370
|
}
|
|
41355
41371
|
}
|
|
41356
41372
|
if (config.logLevel) {
|
|
@@ -41470,7 +41486,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
41470
41486
|
// ../config-tools/src/create-storm-config.ts
|
|
41471
41487
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
41472
41488
|
var _static_cache = void 0;
|
|
41473
|
-
var
|
|
41489
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
41474
41490
|
let result;
|
|
41475
41491
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
41476
41492
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -41485,7 +41501,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
41485
41501
|
logLevel: "all"
|
|
41486
41502
|
});
|
|
41487
41503
|
}
|
|
41488
|
-
result = await
|
|
41504
|
+
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
41489
41505
|
result.workspaceRoot ??= _workspaceRoot;
|
|
41490
41506
|
} else {
|
|
41491
41507
|
result = _static_cache.data;
|
|
@@ -41501,7 +41517,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
41501
41517
|
data: result
|
|
41502
41518
|
};
|
|
41503
41519
|
return result;
|
|
41504
|
-
}, "
|
|
41520
|
+
}, "createStormWorkspaceConfig");
|
|
41505
41521
|
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
41506
41522
|
const extension_cache_key = {
|
|
41507
41523
|
extensionName
|
|
@@ -41516,22 +41532,26 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
41516
41532
|
_extension_cache.set(extension_cache_key, extension);
|
|
41517
41533
|
return extension;
|
|
41518
41534
|
}, "createConfigExtension");
|
|
41519
|
-
var
|
|
41520
|
-
const config = await
|
|
41535
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
41536
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
41521
41537
|
setConfigEnv(config);
|
|
41522
41538
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
41523
41539
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
41524
41540
|
${formatLogMessage(config)}`, config);
|
|
41525
41541
|
}
|
|
41526
41542
|
return config;
|
|
41527
|
-
}, "
|
|
41543
|
+
}, "loadStormWorkspaceConfig");
|
|
41528
41544
|
|
|
41529
41545
|
// ../config-tools/src/get-config.ts
|
|
41530
41546
|
var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
|
|
41531
|
-
return
|
|
41547
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
41532
41548
|
}, "getConfig");
|
|
41533
|
-
var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false) => {
|
|
41534
|
-
|
|
41549
|
+
var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false, options = {}) => {
|
|
41550
|
+
let workspaceRoot = options.workspaceRoot;
|
|
41551
|
+
if (!workspaceRoot) {
|
|
41552
|
+
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
41553
|
+
}
|
|
41554
|
+
return getConfig(workspaceRoot, skipLogs);
|
|
41535
41555
|
}, "getWorkspaceConfig");
|
|
41536
41556
|
|
|
41537
41557
|
export {
|
|
@@ -39678,7 +39678,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
39678
39678
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
39679
39679
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
39680
39680
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
39681
|
-
var
|
|
39681
|
+
var errorConfigSchema = z.object({
|
|
39682
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
39683
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
39684
|
+
}).describe("The workspace's error config used during the error process");
|
|
39685
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
39682
39686
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
39683
39687
|
extends: ExtendsSchema.optional(),
|
|
39684
39688
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
@@ -39696,6 +39700,7 @@ var StormConfigSchema = z.object({
|
|
|
39696
39700
|
bot: WorkspaceBotConfigSchema,
|
|
39697
39701
|
release: WorkspaceReleaseConfigSchema,
|
|
39698
39702
|
account: WorkspaceAccountConfigSchema,
|
|
39703
|
+
error: errorConfigSchema,
|
|
39699
39704
|
mode: z.enum([
|
|
39700
39705
|
"development",
|
|
39701
39706
|
"staging",
|
|
@@ -40039,7 +40044,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, asy
|
|
|
40039
40044
|
license,
|
|
40040
40045
|
homepage,
|
|
40041
40046
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
40042
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
40047
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
40048
|
+
error: {
|
|
40049
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
40050
|
+
}
|
|
40043
40051
|
};
|
|
40044
40052
|
}, "getDefaultConfig");
|
|
40045
40053
|
|
|
@@ -41049,6 +41057,10 @@ var getConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, () => {
|
|
|
41049
41057
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
41050
41058
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
41051
41059
|
},
|
|
41060
|
+
error: {
|
|
41061
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
41062
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
41063
|
+
},
|
|
41052
41064
|
account: {
|
|
41053
41065
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
41054
41066
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -41223,6 +41235,10 @@ var setConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (config
|
|
|
41223
41235
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
41224
41236
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
41225
41237
|
}
|
|
41238
|
+
if (config.error) {
|
|
41239
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
41240
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
41241
|
+
}
|
|
41226
41242
|
if (config.release) {
|
|
41227
41243
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
41228
41244
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -41353,7 +41369,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (config
|
|
|
41353
41369
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
41354
41370
|
}
|
|
41355
41371
|
if (config.registry.container) {
|
|
41356
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
41372
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
41357
41373
|
}
|
|
41358
41374
|
}
|
|
41359
41375
|
if (config.logLevel) {
|
|
@@ -41473,7 +41489,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(v
|
|
|
41473
41489
|
// ../config-tools/src/create-storm-config.ts
|
|
41474
41490
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
41475
41491
|
var _static_cache = void 0;
|
|
41476
|
-
var
|
|
41492
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
41477
41493
|
let result;
|
|
41478
41494
|
if (!_optionalChain([_static_cache, 'optionalAccess', _154 => _154.data]) || !_optionalChain([_static_cache, 'optionalAccess', _155 => _155.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
41479
41495
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -41488,7 +41504,7 @@ var createStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, as
|
|
|
41488
41504
|
logLevel: "all"
|
|
41489
41505
|
});
|
|
41490
41506
|
}
|
|
41491
|
-
result = await
|
|
41507
|
+
result = await stormWorkspaceConfigSchema.parseAsync(_chunkP2CHIYIKcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
|
|
41492
41508
|
result.workspaceRoot ??= _workspaceRoot;
|
|
41493
41509
|
} else {
|
|
41494
41510
|
result = _static_cache.data;
|
|
@@ -41504,7 +41520,7 @@ var createStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, as
|
|
|
41504
41520
|
data: result
|
|
41505
41521
|
};
|
|
41506
41522
|
return result;
|
|
41507
|
-
}, "
|
|
41523
|
+
}, "createStormWorkspaceConfig");
|
|
41508
41524
|
var createConfigExtension = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (extensionName, schema) => {
|
|
41509
41525
|
const extension_cache_key = {
|
|
41510
41526
|
extensionName
|
|
@@ -41519,22 +41535,26 @@ var createConfigExtension = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0
|
|
|
41519
41535
|
_extension_cache.set(extension_cache_key, extension);
|
|
41520
41536
|
return extension;
|
|
41521
41537
|
}, "createConfigExtension");
|
|
41522
|
-
var
|
|
41523
|
-
const config = await
|
|
41538
|
+
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
41539
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
41524
41540
|
setConfigEnv(config);
|
|
41525
41541
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
41526
41542
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
41527
41543
|
${formatLogMessage(config)}`, config);
|
|
41528
41544
|
}
|
|
41529
41545
|
return config;
|
|
41530
|
-
}, "
|
|
41546
|
+
}, "loadStormWorkspaceConfig");
|
|
41531
41547
|
|
|
41532
41548
|
// ../config-tools/src/get-config.ts
|
|
41533
41549
|
var getConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
|
|
41534
|
-
return
|
|
41550
|
+
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
41535
41551
|
}, "getConfig");
|
|
41536
|
-
var getWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (skipLogs = false) => {
|
|
41537
|
-
|
|
41552
|
+
var getWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (skipLogs = false, options = {}) => {
|
|
41553
|
+
let workspaceRoot = options.workspaceRoot;
|
|
41554
|
+
if (!workspaceRoot) {
|
|
41555
|
+
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
41556
|
+
}
|
|
41557
|
+
return getConfig(workspaceRoot, skipLogs);
|
|
41538
41558
|
}, "getWorkspaceConfig");
|
|
41539
41559
|
|
|
41540
41560
|
|