@storm-software/git-tools 2.52.0 → 2.54.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/bin/git.js +81 -43
- package/bin/post-checkout.js +59 -27
- package/bin/post-commit.js +59 -27
- package/bin/post-merge.js +59 -27
- package/bin/pre-commit.js +58 -27
- package/bin/pre-install.js +59 -27
- package/bin/pre-push.js +59 -27
- package/bin/prepare.js +59 -27
- package/bin/version-warning.js +58 -27
- package/package.json +2 -2
- package/src/cli/index.js +81 -43
- package/src/commit/index.js +60 -46
- package/src/commitizen/index.js +54 -45
- package/src/index.js +81 -43
- package/src/release/index.js +34 -27
package/src/commitizen/index.js
CHANGED
|
@@ -33312,12 +33312,38 @@ var commitPrompt = async (state) => {
|
|
|
33312
33312
|
return state;
|
|
33313
33313
|
};
|
|
33314
33314
|
|
|
33315
|
-
// packages/git-tools/src/commitizen/commit-state.ts
|
|
33316
|
-
import { execSync } from "node:child_process";
|
|
33317
|
-
|
|
33318
33315
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
33319
33316
|
var import_deepmerge = __toESM(require_cjs2());
|
|
33320
33317
|
|
|
33318
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
33319
|
+
var import_chalk12 = __toESM(require_source());
|
|
33320
|
+
var chalkDefault = {
|
|
33321
|
+
hex: (_3) => (message) => message,
|
|
33322
|
+
bgHex: (_3) => ({
|
|
33323
|
+
whiteBright: (message) => message
|
|
33324
|
+
}),
|
|
33325
|
+
whiteBright: (message) => message,
|
|
33326
|
+
bold: {
|
|
33327
|
+
hex: (_3) => (message) => message,
|
|
33328
|
+
bgHex: (_3) => ({
|
|
33329
|
+
whiteBright: (message) => message
|
|
33330
|
+
}),
|
|
33331
|
+
whiteBright: (message) => message
|
|
33332
|
+
}
|
|
33333
|
+
};
|
|
33334
|
+
var getChalk = () => {
|
|
33335
|
+
let _chalk = import_chalk12.default;
|
|
33336
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
33337
|
+
_chalk = chalkDefault;
|
|
33338
|
+
}
|
|
33339
|
+
return _chalk;
|
|
33340
|
+
};
|
|
33341
|
+
|
|
33342
|
+
// packages/config/src/constants.ts
|
|
33343
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
33344
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
33345
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
33346
|
+
|
|
33321
33347
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
33322
33348
|
var util;
|
|
33323
33349
|
(function(util2) {
|
|
@@ -37235,7 +37261,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
37235
37261
|
// packages/config/src/schema.ts
|
|
37236
37262
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
|
|
37237
37263
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
37238
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37264
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#3fc1b0").describe("The primary brand specific color of the workspace");
|
|
37239
37265
|
var Brand2ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
|
|
37240
37266
|
var Brand3ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
|
|
37241
37267
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
@@ -37318,8 +37344,10 @@ var StormConfigSchema = z.object({
|
|
|
37318
37344
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
37319
37345
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
37320
37346
|
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
37321
|
-
license: z.string().trim().default("Apache
|
|
37322
|
-
homepage: z.string().trim().url().default(
|
|
37347
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
37348
|
+
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
37349
|
+
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
37350
|
+
licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
37323
37351
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
37324
37352
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
37325
37353
|
owner: z.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -37463,30 +37491,6 @@ var getLogLevel = (label) => {
|
|
|
37463
37491
|
}
|
|
37464
37492
|
};
|
|
37465
37493
|
|
|
37466
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
37467
|
-
var import_chalk12 = __toESM(require_source());
|
|
37468
|
-
var chalkDefault = {
|
|
37469
|
-
hex: (_3) => (message) => message,
|
|
37470
|
-
bgHex: (_3) => ({
|
|
37471
|
-
whiteBright: (message) => message
|
|
37472
|
-
}),
|
|
37473
|
-
whiteBright: (message) => message,
|
|
37474
|
-
bold: {
|
|
37475
|
-
hex: (_3) => (message) => message,
|
|
37476
|
-
bgHex: (_3) => ({
|
|
37477
|
-
whiteBright: (message) => message
|
|
37478
|
-
}),
|
|
37479
|
-
whiteBright: (message) => message
|
|
37480
|
-
}
|
|
37481
|
-
};
|
|
37482
|
-
var getChalk = () => {
|
|
37483
|
-
let _chalk = import_chalk12.default;
|
|
37484
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
37485
|
-
_chalk = chalkDefault;
|
|
37486
|
-
}
|
|
37487
|
-
return _chalk;
|
|
37488
|
-
};
|
|
37489
|
-
|
|
37490
37494
|
// packages/config-tools/src/utilities/logger.ts
|
|
37491
37495
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
37492
37496
|
let _chalk = getChalk();
|
|
@@ -37593,6 +37597,9 @@ var LARGE_BUFFER = 1024 * 1e6;
|
|
|
37593
37597
|
// packages/config-tools/src/create-storm-config.ts
|
|
37594
37598
|
var import_deepmerge2 = __toESM(require_cjs2());
|
|
37595
37599
|
|
|
37600
|
+
// packages/git-tools/src/commitizen/commit-state.ts
|
|
37601
|
+
import { execSync } from "node:child_process";
|
|
37602
|
+
|
|
37596
37603
|
// packages/git-tools/src/types.ts
|
|
37597
37604
|
var CommitQuestionsKeys = [
|
|
37598
37605
|
"type",
|
|
@@ -37920,7 +37927,7 @@ var createState = async (commitConfig = "@storm-software/git-tools/src/commit/co
|
|
|
37920
37927
|
answers: {}
|
|
37921
37928
|
};
|
|
37922
37929
|
} else {
|
|
37923
|
-
writeInfo(
|
|
37930
|
+
writeInfo(`Using custom commit config file: ${commitConfig}`);
|
|
37924
37931
|
let config2 = (await import(commitConfig))?.default;
|
|
37925
37932
|
if (config2?.default) {
|
|
37926
37933
|
config2 = config2?.default;
|
|
@@ -37945,22 +37952,24 @@ var createState = async (commitConfig = "@storm-software/git-tools/src/commit/co
|
|
|
37945
37952
|
answers: {}
|
|
37946
37953
|
};
|
|
37947
37954
|
}
|
|
37948
|
-
state.config.questions.type.enum = Object.keys(
|
|
37949
|
-
|
|
37950
|
-
|
|
37951
|
-
|
|
37952
|
-
|
|
37953
|
-
|
|
37954
|
-
|
|
37955
|
-
|
|
37956
|
-
|
|
37957
|
-
return { name, value: key, description };
|
|
37955
|
+
state.config.questions.type.enum = Object.keys(
|
|
37956
|
+
config_default.types
|
|
37957
|
+
).map((key) => {
|
|
37958
|
+
let name = key;
|
|
37959
|
+
let description = void 0;
|
|
37960
|
+
const type = key in config_default3.types ? config_default3.types?.[key] : void 0;
|
|
37961
|
+
if (type) {
|
|
37962
|
+
name = `${key} - ${type.title} ${type.emoji} ${type.description ? type.description : ""}`;
|
|
37963
|
+
description = type.description;
|
|
37958
37964
|
}
|
|
37965
|
+
return { name, value: key, description };
|
|
37966
|
+
});
|
|
37967
|
+
state.config.questions.scope.enum = (await getScopeEnum({})).map(
|
|
37968
|
+
(scope) => ({
|
|
37969
|
+
name: scope,
|
|
37970
|
+
value: scope
|
|
37971
|
+
})
|
|
37959
37972
|
);
|
|
37960
|
-
state.config.questions.scope.enum = (await getScopeEnum({})).map((scope) => ({
|
|
37961
|
-
name: scope,
|
|
37962
|
-
value: scope
|
|
37963
|
-
}));
|
|
37964
37973
|
state.answers = Object.keys(state.config.questions).reduce(
|
|
37965
37974
|
(ret, key) => {
|
|
37966
37975
|
ret[key] = "";
|
package/src/index.js
CHANGED
|
@@ -222645,6 +222645,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
222645
222645
|
return result2;
|
|
222646
222646
|
}
|
|
222647
222647
|
|
|
222648
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
222649
|
+
var import_chalk = __toESM(require_source());
|
|
222650
|
+
var chalkDefault = {
|
|
222651
|
+
hex: (_15) => (message) => message,
|
|
222652
|
+
bgHex: (_15) => ({
|
|
222653
|
+
whiteBright: (message) => message
|
|
222654
|
+
}),
|
|
222655
|
+
whiteBright: (message) => message,
|
|
222656
|
+
bold: {
|
|
222657
|
+
hex: (_15) => (message) => message,
|
|
222658
|
+
bgHex: (_15) => ({
|
|
222659
|
+
whiteBright: (message) => message
|
|
222660
|
+
}),
|
|
222661
|
+
whiteBright: (message) => message
|
|
222662
|
+
}
|
|
222663
|
+
};
|
|
222664
|
+
var getChalk = () => {
|
|
222665
|
+
let _chalk = import_chalk.default;
|
|
222666
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
222667
|
+
_chalk = chalkDefault;
|
|
222668
|
+
}
|
|
222669
|
+
return _chalk;
|
|
222670
|
+
};
|
|
222671
|
+
|
|
222672
|
+
// packages/config/src/constants.ts
|
|
222673
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
222674
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
222675
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
222676
|
+
|
|
222648
222677
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
222649
222678
|
var util;
|
|
222650
222679
|
(function(util3) {
|
|
@@ -226562,7 +226591,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
226562
226591
|
// packages/config/src/schema.ts
|
|
226563
226592
|
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
|
|
226564
226593
|
var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
226565
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
226594
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#3fc1b0").describe("The primary brand specific color of the workspace");
|
|
226566
226595
|
var Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
|
|
226567
226596
|
var Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
|
|
226568
226597
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
@@ -226645,8 +226674,10 @@ var StormConfigSchema = z2.object({
|
|
|
226645
226674
|
namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
226646
226675
|
organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
226647
226676
|
repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
226648
|
-
license: z2.string().trim().default("Apache
|
|
226649
|
-
homepage: z2.string().trim().url().default(
|
|
226677
|
+
license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
226678
|
+
homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
226679
|
+
docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
226680
|
+
licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
226650
226681
|
branch: z2.string().trim().default("main").describe("The branch of the workspace"),
|
|
226651
226682
|
preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
226652
226683
|
owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -226805,6 +226836,8 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
226805
226836
|
repository,
|
|
226806
226837
|
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
226807
226838
|
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
226839
|
+
docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
|
|
226840
|
+
licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
|
|
226808
226841
|
extensions: {
|
|
226809
226842
|
...config2.extensions
|
|
226810
226843
|
}
|
|
@@ -226885,30 +226918,6 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
226885
226918
|
return LogLevelLabel.INFO;
|
|
226886
226919
|
};
|
|
226887
226920
|
|
|
226888
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
226889
|
-
var import_chalk = __toESM(require_source());
|
|
226890
|
-
var chalkDefault = {
|
|
226891
|
-
hex: (_15) => (message) => message,
|
|
226892
|
-
bgHex: (_15) => ({
|
|
226893
|
-
whiteBright: (message) => message
|
|
226894
|
-
}),
|
|
226895
|
-
whiteBright: (message) => message,
|
|
226896
|
-
bold: {
|
|
226897
|
-
hex: (_15) => (message) => message,
|
|
226898
|
-
bgHex: (_15) => ({
|
|
226899
|
-
whiteBright: (message) => message
|
|
226900
|
-
}),
|
|
226901
|
-
whiteBright: (message) => message
|
|
226902
|
-
}
|
|
226903
|
-
};
|
|
226904
|
-
var getChalk = () => {
|
|
226905
|
-
let _chalk = import_chalk.default;
|
|
226906
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
226907
|
-
_chalk = chalkDefault;
|
|
226908
|
-
}
|
|
226909
|
-
return _chalk;
|
|
226910
|
-
};
|
|
226911
|
-
|
|
226912
226921
|
// packages/config-tools/src/utilities/logger.ts
|
|
226913
226922
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
226914
226923
|
let _chalk = getChalk();
|
|
@@ -227104,6 +227113,8 @@ var getConfigEnv = () => {
|
|
|
227104
227113
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
227105
227114
|
license: process.env[`${prefix}LICENSE`],
|
|
227106
227115
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
227116
|
+
docs: process.env[`${prefix}DOCS`],
|
|
227117
|
+
licensing: process.env[`${prefix}LICENSING`],
|
|
227107
227118
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
227108
227119
|
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
227109
227120
|
configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
|
|
@@ -227152,6 +227163,20 @@ var getConfigEnv = () => {
|
|
|
227152
227163
|
},
|
|
227153
227164
|
{}
|
|
227154
227165
|
) : getThemeColorConfigEnv(prefix);
|
|
227166
|
+
if (config2.docs === STORM_DEFAULT_DOCS) {
|
|
227167
|
+
if (config2.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
227168
|
+
config2.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config2.name}/docs`;
|
|
227169
|
+
} else {
|
|
227170
|
+
config2.docs = `${config2.homepage}/docs`;
|
|
227171
|
+
}
|
|
227172
|
+
}
|
|
227173
|
+
if (config2.licensing === STORM_DEFAULT_LICENSING) {
|
|
227174
|
+
if (config2.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
227175
|
+
config2.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config2.name}/licensing`;
|
|
227176
|
+
} else {
|
|
227177
|
+
config2.licensing = `${config2.homepage}/docs`;
|
|
227178
|
+
}
|
|
227179
|
+
}
|
|
227155
227180
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
227156
227181
|
if (serializedConfig) {
|
|
227157
227182
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -227261,6 +227286,12 @@ var setConfigEnv = (config2) => {
|
|
|
227261
227286
|
if (config2.homepage) {
|
|
227262
227287
|
process.env[`${prefix}HOMEPAGE`] = config2.homepage;
|
|
227263
227288
|
}
|
|
227289
|
+
if (config2.docs) {
|
|
227290
|
+
process.env[`${prefix}DOCS`] = config2.docs;
|
|
227291
|
+
}
|
|
227292
|
+
if (config2.licensing) {
|
|
227293
|
+
process.env[`${prefix}LICENSING`] = config2.licensing;
|
|
227294
|
+
}
|
|
227264
227295
|
if (config2.timezone) {
|
|
227265
227296
|
process.env[`${prefix}TIMEZONE`] = config2.timezone;
|
|
227266
227297
|
process.env.TZ = config2.timezone;
|
|
@@ -228022,7 +228053,7 @@ var createState = async (commitConfig = "@storm-software/git-tools/src/commit/co
|
|
|
228022
228053
|
answers: {}
|
|
228023
228054
|
};
|
|
228024
228055
|
} else {
|
|
228025
|
-
writeInfo(
|
|
228056
|
+
writeInfo(`Using custom commit config file: ${commitConfig}`);
|
|
228026
228057
|
let config2 = (await import(commitConfig))?.default;
|
|
228027
228058
|
if (config2?.default) {
|
|
228028
228059
|
config2 = config2?.default;
|
|
@@ -228047,22 +228078,24 @@ var createState = async (commitConfig = "@storm-software/git-tools/src/commit/co
|
|
|
228047
228078
|
answers: {}
|
|
228048
228079
|
};
|
|
228049
228080
|
}
|
|
228050
|
-
state.config.questions.type.enum = Object.keys(
|
|
228051
|
-
|
|
228052
|
-
|
|
228053
|
-
|
|
228054
|
-
|
|
228055
|
-
|
|
228056
|
-
|
|
228057
|
-
|
|
228058
|
-
|
|
228059
|
-
return { name, value: key2, description };
|
|
228081
|
+
state.config.questions.type.enum = Object.keys(
|
|
228082
|
+
config_default.types
|
|
228083
|
+
).map((key2) => {
|
|
228084
|
+
let name = key2;
|
|
228085
|
+
let description = void 0;
|
|
228086
|
+
const type2 = key2 in config_default3.types ? config_default3.types?.[key2] : void 0;
|
|
228087
|
+
if (type2) {
|
|
228088
|
+
name = `${key2} - ${type2.title} ${type2.emoji} ${type2.description ? type2.description : ""}`;
|
|
228089
|
+
description = type2.description;
|
|
228060
228090
|
}
|
|
228091
|
+
return { name, value: key2, description };
|
|
228092
|
+
});
|
|
228093
|
+
state.config.questions.scope.enum = (await getScopeEnum({})).map(
|
|
228094
|
+
(scope) => ({
|
|
228095
|
+
name: scope,
|
|
228096
|
+
value: scope
|
|
228097
|
+
})
|
|
228061
228098
|
);
|
|
228062
|
-
state.config.questions.scope.enum = (await getScopeEnum({})).map((scope) => ({
|
|
228063
|
-
name: scope,
|
|
228064
|
-
value: scope
|
|
228065
|
-
}));
|
|
228066
228099
|
state.answers = Object.keys(state.config.questions).reduce(
|
|
228067
228100
|
(ret, key2) => {
|
|
228068
228101
|
ret[key2] = "";
|
|
@@ -228123,7 +228156,12 @@ var runCommit = async (commitConfig = "@storm-software/git-tools/commit/config.j
|
|
|
228123
228156
|
const message = formatCommitMessage(await commitPrompt(state));
|
|
228124
228157
|
const commitMsgFile = join4(getGitDir(), "COMMIT_EDITMSG");
|
|
228125
228158
|
const shellescape = await Promise.resolve().then(() => __toESM(require_shell_escape(), 1));
|
|
228126
|
-
const command = shellescape.default([
|
|
228159
|
+
const command = shellescape.default([
|
|
228160
|
+
"git",
|
|
228161
|
+
"commit",
|
|
228162
|
+
"--file",
|
|
228163
|
+
commitMsgFile
|
|
228164
|
+
]);
|
|
228127
228165
|
if (dryRun) {
|
|
228128
228166
|
console.log("Will execute command:");
|
|
228129
228167
|
console.log(command.replace(commitMsgFile, ".git/COMMIT_EDITMSG"));
|
package/src/release/index.js
CHANGED
|
@@ -1772,6 +1772,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
1772
1772
|
return result;
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
1776
|
+
var import_chalk = __toESM(require_source());
|
|
1777
|
+
var chalkDefault = {
|
|
1778
|
+
hex: (_) => (message) => message,
|
|
1779
|
+
bgHex: (_) => ({
|
|
1780
|
+
whiteBright: (message) => message
|
|
1781
|
+
}),
|
|
1782
|
+
whiteBright: (message) => message,
|
|
1783
|
+
bold: {
|
|
1784
|
+
hex: (_) => (message) => message,
|
|
1785
|
+
bgHex: (_) => ({
|
|
1786
|
+
whiteBright: (message) => message
|
|
1787
|
+
}),
|
|
1788
|
+
whiteBright: (message) => message
|
|
1789
|
+
}
|
|
1790
|
+
};
|
|
1791
|
+
var getChalk = () => {
|
|
1792
|
+
let _chalk = import_chalk.default;
|
|
1793
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
1794
|
+
_chalk = chalkDefault;
|
|
1795
|
+
}
|
|
1796
|
+
return _chalk;
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
// packages/config/src/constants.ts
|
|
1800
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
1801
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
1802
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
1803
|
+
|
|
1775
1804
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
1776
1805
|
var util;
|
|
1777
1806
|
(function(util2) {
|
|
@@ -5689,7 +5718,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5689
5718
|
// packages/config/src/schema.ts
|
|
5690
5719
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
|
|
5691
5720
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
5692
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5721
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#3fc1b0").describe("The primary brand specific color of the workspace");
|
|
5693
5722
|
var Brand2ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
|
|
5694
5723
|
var Brand3ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
|
|
5695
5724
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
@@ -5772,8 +5801,10 @@ var StormConfigSchema = z.object({
|
|
|
5772
5801
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
5773
5802
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
5774
5803
|
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
5775
|
-
license: z.string().trim().default("Apache
|
|
5776
|
-
homepage: z.string().trim().url().default(
|
|
5804
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
5805
|
+
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
5806
|
+
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
5807
|
+
licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
5777
5808
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
5778
5809
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
5779
5810
|
owner: z.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -5917,30 +5948,6 @@ var getLogLevel = (label) => {
|
|
|
5917
5948
|
}
|
|
5918
5949
|
};
|
|
5919
5950
|
|
|
5920
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
5921
|
-
var import_chalk = __toESM(require_source());
|
|
5922
|
-
var chalkDefault = {
|
|
5923
|
-
hex: (_) => (message) => message,
|
|
5924
|
-
bgHex: (_) => ({
|
|
5925
|
-
whiteBright: (message) => message
|
|
5926
|
-
}),
|
|
5927
|
-
whiteBright: (message) => message,
|
|
5928
|
-
bold: {
|
|
5929
|
-
hex: (_) => (message) => message,
|
|
5930
|
-
bgHex: (_) => ({
|
|
5931
|
-
whiteBright: (message) => message
|
|
5932
|
-
}),
|
|
5933
|
-
whiteBright: (message) => message
|
|
5934
|
-
}
|
|
5935
|
-
};
|
|
5936
|
-
var getChalk = () => {
|
|
5937
|
-
let _chalk = import_chalk.default;
|
|
5938
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
5939
|
-
_chalk = chalkDefault;
|
|
5940
|
-
}
|
|
5941
|
-
return _chalk;
|
|
5942
|
-
};
|
|
5943
|
-
|
|
5944
5951
|
// packages/config-tools/src/utilities/logger.ts
|
|
5945
5952
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
5946
5953
|
let _chalk = getChalk();
|