@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/bin/post-merge.js
CHANGED
|
@@ -63124,6 +63124,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
63124
63124
|
return result;
|
|
63125
63125
|
}
|
|
63126
63126
|
|
|
63127
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
63128
|
+
var import_chalk = __toESM(require_source());
|
|
63129
|
+
var chalkDefault = {
|
|
63130
|
+
hex: (_6) => (message) => message,
|
|
63131
|
+
bgHex: (_6) => ({
|
|
63132
|
+
whiteBright: (message) => message
|
|
63133
|
+
}),
|
|
63134
|
+
whiteBright: (message) => message,
|
|
63135
|
+
bold: {
|
|
63136
|
+
hex: (_6) => (message) => message,
|
|
63137
|
+
bgHex: (_6) => ({
|
|
63138
|
+
whiteBright: (message) => message
|
|
63139
|
+
}),
|
|
63140
|
+
whiteBright: (message) => message
|
|
63141
|
+
}
|
|
63142
|
+
};
|
|
63143
|
+
var getChalk = () => {
|
|
63144
|
+
let _chalk = import_chalk.default;
|
|
63145
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
63146
|
+
_chalk = chalkDefault;
|
|
63147
|
+
}
|
|
63148
|
+
return _chalk;
|
|
63149
|
+
};
|
|
63150
|
+
|
|
63151
|
+
// packages/config/src/constants.ts
|
|
63152
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
63153
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
63154
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
63155
|
+
|
|
63127
63156
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
63128
63157
|
var util;
|
|
63129
63158
|
(function(util2) {
|
|
@@ -67041,7 +67070,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
67041
67070
|
// packages/config/src/schema.ts
|
|
67042
67071
|
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");
|
|
67043
67072
|
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");
|
|
67044
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
67073
|
+
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");
|
|
67045
67074
|
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");
|
|
67046
67075
|
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");
|
|
67047
67076
|
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");
|
|
@@ -67124,8 +67153,10 @@ var StormConfigSchema = z2.object({
|
|
|
67124
67153
|
namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
67125
67154
|
organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
67126
67155
|
repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
67127
|
-
license: z2.string().trim().default("Apache
|
|
67128
|
-
homepage: z2.string().trim().url().default(
|
|
67156
|
+
license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
67157
|
+
homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
67158
|
+
docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
67159
|
+
licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
67129
67160
|
branch: z2.string().trim().default("main").describe("The branch of the workspace"),
|
|
67130
67161
|
preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
67131
67162
|
owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -67284,6 +67315,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
67284
67315
|
repository,
|
|
67285
67316
|
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
67286
67317
|
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
67318
|
+
docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
|
|
67319
|
+
licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
|
|
67287
67320
|
extensions: {
|
|
67288
67321
|
...config.extensions
|
|
67289
67322
|
}
|
|
@@ -67364,30 +67397,6 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
67364
67397
|
return LogLevelLabel.INFO;
|
|
67365
67398
|
};
|
|
67366
67399
|
|
|
67367
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
67368
|
-
var import_chalk = __toESM(require_source());
|
|
67369
|
-
var chalkDefault = {
|
|
67370
|
-
hex: (_6) => (message) => message,
|
|
67371
|
-
bgHex: (_6) => ({
|
|
67372
|
-
whiteBright: (message) => message
|
|
67373
|
-
}),
|
|
67374
|
-
whiteBright: (message) => message,
|
|
67375
|
-
bold: {
|
|
67376
|
-
hex: (_6) => (message) => message,
|
|
67377
|
-
bgHex: (_6) => ({
|
|
67378
|
-
whiteBright: (message) => message
|
|
67379
|
-
}),
|
|
67380
|
-
whiteBright: (message) => message
|
|
67381
|
-
}
|
|
67382
|
-
};
|
|
67383
|
-
var getChalk = () => {
|
|
67384
|
-
let _chalk = import_chalk.default;
|
|
67385
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
67386
|
-
_chalk = chalkDefault;
|
|
67387
|
-
}
|
|
67388
|
-
return _chalk;
|
|
67389
|
-
};
|
|
67390
|
-
|
|
67391
67400
|
// packages/config-tools/src/utilities/logger.ts
|
|
67392
67401
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67393
67402
|
let _chalk = getChalk();
|
|
@@ -67548,6 +67557,7 @@ var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio
|
|
|
67548
67557
|
CLICOLOR: "true",
|
|
67549
67558
|
FORCE_COLOR: "true"
|
|
67550
67559
|
},
|
|
67560
|
+
windowsHide: true,
|
|
67551
67561
|
stdio,
|
|
67552
67562
|
maxBuffer: LARGE_BUFFER,
|
|
67553
67563
|
killSignal: "SIGTERM"
|
|
@@ -67640,6 +67650,8 @@ var getConfigEnv = () => {
|
|
|
67640
67650
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
67641
67651
|
license: process.env[`${prefix}LICENSE`],
|
|
67642
67652
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
67653
|
+
docs: process.env[`${prefix}DOCS`],
|
|
67654
|
+
licensing: process.env[`${prefix}LICENSING`],
|
|
67643
67655
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
67644
67656
|
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
67645
67657
|
configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
|
|
@@ -67688,6 +67700,20 @@ var getConfigEnv = () => {
|
|
|
67688
67700
|
},
|
|
67689
67701
|
{}
|
|
67690
67702
|
) : getThemeColorConfigEnv(prefix);
|
|
67703
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
67704
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67705
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
67706
|
+
} else {
|
|
67707
|
+
config.docs = `${config.homepage}/docs`;
|
|
67708
|
+
}
|
|
67709
|
+
}
|
|
67710
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
67711
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67712
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
67713
|
+
} else {
|
|
67714
|
+
config.licensing = `${config.homepage}/docs`;
|
|
67715
|
+
}
|
|
67716
|
+
}
|
|
67691
67717
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
67692
67718
|
if (serializedConfig) {
|
|
67693
67719
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -67797,6 +67823,12 @@ var setConfigEnv = (config) => {
|
|
|
67797
67823
|
if (config.homepage) {
|
|
67798
67824
|
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
67799
67825
|
}
|
|
67826
|
+
if (config.docs) {
|
|
67827
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
67828
|
+
}
|
|
67829
|
+
if (config.licensing) {
|
|
67830
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
67831
|
+
}
|
|
67800
67832
|
if (config.timezone) {
|
|
67801
67833
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
67802
67834
|
process.env.TZ = config.timezone;
|
package/bin/pre-commit.js
CHANGED
|
@@ -63124,6 +63124,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
63124
63124
|
return result;
|
|
63125
63125
|
}
|
|
63126
63126
|
|
|
63127
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
63128
|
+
var import_chalk = __toESM(require_source());
|
|
63129
|
+
var chalkDefault = {
|
|
63130
|
+
hex: (_6) => (message) => message,
|
|
63131
|
+
bgHex: (_6) => ({
|
|
63132
|
+
whiteBright: (message) => message
|
|
63133
|
+
}),
|
|
63134
|
+
whiteBright: (message) => message,
|
|
63135
|
+
bold: {
|
|
63136
|
+
hex: (_6) => (message) => message,
|
|
63137
|
+
bgHex: (_6) => ({
|
|
63138
|
+
whiteBright: (message) => message
|
|
63139
|
+
}),
|
|
63140
|
+
whiteBright: (message) => message
|
|
63141
|
+
}
|
|
63142
|
+
};
|
|
63143
|
+
var getChalk = () => {
|
|
63144
|
+
let _chalk = import_chalk.default;
|
|
63145
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
63146
|
+
_chalk = chalkDefault;
|
|
63147
|
+
}
|
|
63148
|
+
return _chalk;
|
|
63149
|
+
};
|
|
63150
|
+
|
|
63151
|
+
// packages/config/src/constants.ts
|
|
63152
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
63153
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
63154
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
63155
|
+
|
|
63127
63156
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
63128
63157
|
var util;
|
|
63129
63158
|
(function(util2) {
|
|
@@ -67041,7 +67070,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
67041
67070
|
// packages/config/src/schema.ts
|
|
67042
67071
|
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");
|
|
67043
67072
|
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");
|
|
67044
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
67073
|
+
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");
|
|
67045
67074
|
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");
|
|
67046
67075
|
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");
|
|
67047
67076
|
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");
|
|
@@ -67124,8 +67153,10 @@ var StormConfigSchema = z2.object({
|
|
|
67124
67153
|
namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
67125
67154
|
organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
67126
67155
|
repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
67127
|
-
license: z2.string().trim().default("Apache
|
|
67128
|
-
homepage: z2.string().trim().url().default(
|
|
67156
|
+
license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
67157
|
+
homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
67158
|
+
docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
67159
|
+
licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
67129
67160
|
branch: z2.string().trim().default("main").describe("The branch of the workspace"),
|
|
67130
67161
|
preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
67131
67162
|
owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -67284,6 +67315,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
67284
67315
|
repository,
|
|
67285
67316
|
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
67286
67317
|
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
67318
|
+
docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
|
|
67319
|
+
licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
|
|
67287
67320
|
extensions: {
|
|
67288
67321
|
...config.extensions
|
|
67289
67322
|
}
|
|
@@ -67364,30 +67397,6 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
67364
67397
|
return LogLevelLabel.INFO;
|
|
67365
67398
|
};
|
|
67366
67399
|
|
|
67367
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
67368
|
-
var import_chalk = __toESM(require_source());
|
|
67369
|
-
var chalkDefault = {
|
|
67370
|
-
hex: (_6) => (message) => message,
|
|
67371
|
-
bgHex: (_6) => ({
|
|
67372
|
-
whiteBright: (message) => message
|
|
67373
|
-
}),
|
|
67374
|
-
whiteBright: (message) => message,
|
|
67375
|
-
bold: {
|
|
67376
|
-
hex: (_6) => (message) => message,
|
|
67377
|
-
bgHex: (_6) => ({
|
|
67378
|
-
whiteBright: (message) => message
|
|
67379
|
-
}),
|
|
67380
|
-
whiteBright: (message) => message
|
|
67381
|
-
}
|
|
67382
|
-
};
|
|
67383
|
-
var getChalk = () => {
|
|
67384
|
-
let _chalk = import_chalk.default;
|
|
67385
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
67386
|
-
_chalk = chalkDefault;
|
|
67387
|
-
}
|
|
67388
|
-
return _chalk;
|
|
67389
|
-
};
|
|
67390
|
-
|
|
67391
67400
|
// packages/config-tools/src/utilities/logger.ts
|
|
67392
67401
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67393
67402
|
let _chalk = getChalk();
|
|
@@ -67625,6 +67634,8 @@ var getConfigEnv = () => {
|
|
|
67625
67634
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
67626
67635
|
license: process.env[`${prefix}LICENSE`],
|
|
67627
67636
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
67637
|
+
docs: process.env[`${prefix}DOCS`],
|
|
67638
|
+
licensing: process.env[`${prefix}LICENSING`],
|
|
67628
67639
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
67629
67640
|
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
67630
67641
|
configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
|
|
@@ -67673,6 +67684,20 @@ var getConfigEnv = () => {
|
|
|
67673
67684
|
},
|
|
67674
67685
|
{}
|
|
67675
67686
|
) : getThemeColorConfigEnv(prefix);
|
|
67687
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
67688
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67689
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
67690
|
+
} else {
|
|
67691
|
+
config.docs = `${config.homepage}/docs`;
|
|
67692
|
+
}
|
|
67693
|
+
}
|
|
67694
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
67695
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67696
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
67697
|
+
} else {
|
|
67698
|
+
config.licensing = `${config.homepage}/docs`;
|
|
67699
|
+
}
|
|
67700
|
+
}
|
|
67676
67701
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
67677
67702
|
if (serializedConfig) {
|
|
67678
67703
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -67782,6 +67807,12 @@ var setConfigEnv = (config) => {
|
|
|
67782
67807
|
if (config.homepage) {
|
|
67783
67808
|
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
67784
67809
|
}
|
|
67810
|
+
if (config.docs) {
|
|
67811
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
67812
|
+
}
|
|
67813
|
+
if (config.licensing) {
|
|
67814
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
67815
|
+
}
|
|
67785
67816
|
if (config.timezone) {
|
|
67786
67817
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
67787
67818
|
process.env.TZ = config.timezone;
|
package/bin/pre-install.js
CHANGED
|
@@ -63124,6 +63124,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
63124
63124
|
return result;
|
|
63125
63125
|
}
|
|
63126
63126
|
|
|
63127
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
63128
|
+
var import_chalk = __toESM(require_source());
|
|
63129
|
+
var chalkDefault = {
|
|
63130
|
+
hex: (_6) => (message) => message,
|
|
63131
|
+
bgHex: (_6) => ({
|
|
63132
|
+
whiteBright: (message) => message
|
|
63133
|
+
}),
|
|
63134
|
+
whiteBright: (message) => message,
|
|
63135
|
+
bold: {
|
|
63136
|
+
hex: (_6) => (message) => message,
|
|
63137
|
+
bgHex: (_6) => ({
|
|
63138
|
+
whiteBright: (message) => message
|
|
63139
|
+
}),
|
|
63140
|
+
whiteBright: (message) => message
|
|
63141
|
+
}
|
|
63142
|
+
};
|
|
63143
|
+
var getChalk = () => {
|
|
63144
|
+
let _chalk = import_chalk.default;
|
|
63145
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
63146
|
+
_chalk = chalkDefault;
|
|
63147
|
+
}
|
|
63148
|
+
return _chalk;
|
|
63149
|
+
};
|
|
63150
|
+
|
|
63151
|
+
// packages/config/src/constants.ts
|
|
63152
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
63153
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
63154
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
63155
|
+
|
|
63127
63156
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
63128
63157
|
var util;
|
|
63129
63158
|
(function(util2) {
|
|
@@ -67041,7 +67070,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
67041
67070
|
// packages/config/src/schema.ts
|
|
67042
67071
|
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");
|
|
67043
67072
|
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");
|
|
67044
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
67073
|
+
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");
|
|
67045
67074
|
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");
|
|
67046
67075
|
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");
|
|
67047
67076
|
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");
|
|
@@ -67124,8 +67153,10 @@ var StormConfigSchema = z2.object({
|
|
|
67124
67153
|
namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
67125
67154
|
organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
67126
67155
|
repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
67127
|
-
license: z2.string().trim().default("Apache
|
|
67128
|
-
homepage: z2.string().trim().url().default(
|
|
67156
|
+
license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
67157
|
+
homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
67158
|
+
docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
67159
|
+
licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
67129
67160
|
branch: z2.string().trim().default("main").describe("The branch of the workspace"),
|
|
67130
67161
|
preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
67131
67162
|
owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -67284,6 +67315,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
67284
67315
|
repository,
|
|
67285
67316
|
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
67286
67317
|
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
67318
|
+
docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
|
|
67319
|
+
licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
|
|
67287
67320
|
extensions: {
|
|
67288
67321
|
...config.extensions
|
|
67289
67322
|
}
|
|
@@ -67364,30 +67397,6 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
67364
67397
|
return LogLevelLabel.INFO;
|
|
67365
67398
|
};
|
|
67366
67399
|
|
|
67367
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
67368
|
-
var import_chalk = __toESM(require_source());
|
|
67369
|
-
var chalkDefault = {
|
|
67370
|
-
hex: (_6) => (message) => message,
|
|
67371
|
-
bgHex: (_6) => ({
|
|
67372
|
-
whiteBright: (message) => message
|
|
67373
|
-
}),
|
|
67374
|
-
whiteBright: (message) => message,
|
|
67375
|
-
bold: {
|
|
67376
|
-
hex: (_6) => (message) => message,
|
|
67377
|
-
bgHex: (_6) => ({
|
|
67378
|
-
whiteBright: (message) => message
|
|
67379
|
-
}),
|
|
67380
|
-
whiteBright: (message) => message
|
|
67381
|
-
}
|
|
67382
|
-
};
|
|
67383
|
-
var getChalk = () => {
|
|
67384
|
-
let _chalk = import_chalk.default;
|
|
67385
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
67386
|
-
_chalk = chalkDefault;
|
|
67387
|
-
}
|
|
67388
|
-
return _chalk;
|
|
67389
|
-
};
|
|
67390
|
-
|
|
67391
67400
|
// packages/config-tools/src/utilities/logger.ts
|
|
67392
67401
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67393
67402
|
let _chalk = getChalk();
|
|
@@ -67548,6 +67557,7 @@ var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio
|
|
|
67548
67557
|
CLICOLOR: "true",
|
|
67549
67558
|
FORCE_COLOR: "true"
|
|
67550
67559
|
},
|
|
67560
|
+
windowsHide: true,
|
|
67551
67561
|
stdio,
|
|
67552
67562
|
maxBuffer: LARGE_BUFFER,
|
|
67553
67563
|
killSignal: "SIGTERM"
|
|
@@ -67640,6 +67650,8 @@ var getConfigEnv = () => {
|
|
|
67640
67650
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
67641
67651
|
license: process.env[`${prefix}LICENSE`],
|
|
67642
67652
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
67653
|
+
docs: process.env[`${prefix}DOCS`],
|
|
67654
|
+
licensing: process.env[`${prefix}LICENSING`],
|
|
67643
67655
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
67644
67656
|
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
67645
67657
|
configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
|
|
@@ -67688,6 +67700,20 @@ var getConfigEnv = () => {
|
|
|
67688
67700
|
},
|
|
67689
67701
|
{}
|
|
67690
67702
|
) : getThemeColorConfigEnv(prefix);
|
|
67703
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
67704
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67705
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
67706
|
+
} else {
|
|
67707
|
+
config.docs = `${config.homepage}/docs`;
|
|
67708
|
+
}
|
|
67709
|
+
}
|
|
67710
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
67711
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67712
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
67713
|
+
} else {
|
|
67714
|
+
config.licensing = `${config.homepage}/docs`;
|
|
67715
|
+
}
|
|
67716
|
+
}
|
|
67691
67717
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
67692
67718
|
if (serializedConfig) {
|
|
67693
67719
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -67797,6 +67823,12 @@ var setConfigEnv = (config) => {
|
|
|
67797
67823
|
if (config.homepage) {
|
|
67798
67824
|
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
67799
67825
|
}
|
|
67826
|
+
if (config.docs) {
|
|
67827
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
67828
|
+
}
|
|
67829
|
+
if (config.licensing) {
|
|
67830
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
67831
|
+
}
|
|
67800
67832
|
if (config.timezone) {
|
|
67801
67833
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
67802
67834
|
process.env.TZ = config.timezone;
|
package/bin/pre-push.js
CHANGED
|
@@ -63129,6 +63129,35 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
63129
63129
|
return result;
|
|
63130
63130
|
}
|
|
63131
63131
|
|
|
63132
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
63133
|
+
var import_chalk = __toESM(require_source());
|
|
63134
|
+
var chalkDefault = {
|
|
63135
|
+
hex: (_6) => (message) => message,
|
|
63136
|
+
bgHex: (_6) => ({
|
|
63137
|
+
whiteBright: (message) => message
|
|
63138
|
+
}),
|
|
63139
|
+
whiteBright: (message) => message,
|
|
63140
|
+
bold: {
|
|
63141
|
+
hex: (_6) => (message) => message,
|
|
63142
|
+
bgHex: (_6) => ({
|
|
63143
|
+
whiteBright: (message) => message
|
|
63144
|
+
}),
|
|
63145
|
+
whiteBright: (message) => message
|
|
63146
|
+
}
|
|
63147
|
+
};
|
|
63148
|
+
var getChalk = () => {
|
|
63149
|
+
let _chalk = import_chalk.default;
|
|
63150
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
63151
|
+
_chalk = chalkDefault;
|
|
63152
|
+
}
|
|
63153
|
+
return _chalk;
|
|
63154
|
+
};
|
|
63155
|
+
|
|
63156
|
+
// packages/config/src/constants.ts
|
|
63157
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
63158
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
63159
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
63160
|
+
|
|
63132
63161
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
63133
63162
|
var util;
|
|
63134
63163
|
(function(util2) {
|
|
@@ -67046,7 +67075,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
67046
67075
|
// packages/config/src/schema.ts
|
|
67047
67076
|
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");
|
|
67048
67077
|
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");
|
|
67049
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
67078
|
+
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");
|
|
67050
67079
|
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");
|
|
67051
67080
|
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");
|
|
67052
67081
|
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");
|
|
@@ -67129,8 +67158,10 @@ var StormConfigSchema = z2.object({
|
|
|
67129
67158
|
namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
67130
67159
|
organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
67131
67160
|
repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
67132
|
-
license: z2.string().trim().default("Apache
|
|
67133
|
-
homepage: z2.string().trim().url().default(
|
|
67161
|
+
license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
67162
|
+
homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
67163
|
+
docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
67164
|
+
licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
67134
67165
|
branch: z2.string().trim().default("main").describe("The branch of the workspace"),
|
|
67135
67166
|
preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
67136
67167
|
owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
@@ -67289,6 +67320,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
67289
67320
|
repository,
|
|
67290
67321
|
license: license ?? DEFAULT_STORM_CONFIG.license,
|
|
67291
67322
|
homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
|
|
67323
|
+
docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
|
|
67324
|
+
licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
|
|
67292
67325
|
extensions: {
|
|
67293
67326
|
...config.extensions
|
|
67294
67327
|
}
|
|
@@ -67369,30 +67402,6 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
67369
67402
|
return LogLevelLabel.INFO;
|
|
67370
67403
|
};
|
|
67371
67404
|
|
|
67372
|
-
// packages/config-tools/src/utilities/chalk.ts
|
|
67373
|
-
var import_chalk = __toESM(require_source());
|
|
67374
|
-
var chalkDefault = {
|
|
67375
|
-
hex: (_6) => (message) => message,
|
|
67376
|
-
bgHex: (_6) => ({
|
|
67377
|
-
whiteBright: (message) => message
|
|
67378
|
-
}),
|
|
67379
|
-
whiteBright: (message) => message,
|
|
67380
|
-
bold: {
|
|
67381
|
-
hex: (_6) => (message) => message,
|
|
67382
|
-
bgHex: (_6) => ({
|
|
67383
|
-
whiteBright: (message) => message
|
|
67384
|
-
}),
|
|
67385
|
-
whiteBright: (message) => message
|
|
67386
|
-
}
|
|
67387
|
-
};
|
|
67388
|
-
var getChalk = () => {
|
|
67389
|
-
let _chalk = import_chalk.default;
|
|
67390
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
67391
|
-
_chalk = chalkDefault;
|
|
67392
|
-
}
|
|
67393
|
-
return _chalk;
|
|
67394
|
-
};
|
|
67395
|
-
|
|
67396
67405
|
// packages/config-tools/src/utilities/logger.ts
|
|
67397
67406
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67398
67407
|
let _chalk = getChalk();
|
|
@@ -67553,6 +67562,7 @@ var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio
|
|
|
67553
67562
|
CLICOLOR: "true",
|
|
67554
67563
|
FORCE_COLOR: "true"
|
|
67555
67564
|
},
|
|
67565
|
+
windowsHide: true,
|
|
67556
67566
|
stdio,
|
|
67557
67567
|
maxBuffer: LARGE_BUFFER,
|
|
67558
67568
|
killSignal: "SIGTERM"
|
|
@@ -67645,6 +67655,8 @@ var getConfigEnv = () => {
|
|
|
67645
67655
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
67646
67656
|
license: process.env[`${prefix}LICENSE`],
|
|
67647
67657
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
67658
|
+
docs: process.env[`${prefix}DOCS`],
|
|
67659
|
+
licensing: process.env[`${prefix}LICENSING`],
|
|
67648
67660
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
67649
67661
|
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
67650
67662
|
configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
|
|
@@ -67693,6 +67705,20 @@ var getConfigEnv = () => {
|
|
|
67693
67705
|
},
|
|
67694
67706
|
{}
|
|
67695
67707
|
) : getThemeColorConfigEnv(prefix);
|
|
67708
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
67709
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67710
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
67711
|
+
} else {
|
|
67712
|
+
config.docs = `${config.homepage}/docs`;
|
|
67713
|
+
}
|
|
67714
|
+
}
|
|
67715
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
67716
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
67717
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
67718
|
+
} else {
|
|
67719
|
+
config.licensing = `${config.homepage}/docs`;
|
|
67720
|
+
}
|
|
67721
|
+
}
|
|
67696
67722
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
67697
67723
|
if (serializedConfig) {
|
|
67698
67724
|
const parsed = JSON.parse(serializedConfig);
|
|
@@ -67802,6 +67828,12 @@ var setConfigEnv = (config) => {
|
|
|
67802
67828
|
if (config.homepage) {
|
|
67803
67829
|
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
67804
67830
|
}
|
|
67831
|
+
if (config.docs) {
|
|
67832
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
67833
|
+
}
|
|
67834
|
+
if (config.licensing) {
|
|
67835
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
67836
|
+
}
|
|
67805
67837
|
if (config.timezone) {
|
|
67806
67838
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
67807
67839
|
process.env.TZ = config.timezone;
|