@storm-software/workspace-tools 1.150.0 → 1.152.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.
@@ -65649,6 +65649,22 @@ var init_find_workspace_root = __esm({
65649
65649
  }
65650
65650
  });
65651
65651
 
65652
+ // packages/config/src/constants.ts
65653
+ var STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSING;
65654
+ var init_constants = __esm({
65655
+ "packages/config/src/constants.ts"() {
65656
+ STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
65657
+ STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
65658
+ STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
65659
+ }
65660
+ });
65661
+
65662
+ // packages/config/src/define-config.ts
65663
+ var init_define_config = __esm({
65664
+ "packages/config/src/define-config.ts"() {
65665
+ }
65666
+ });
65667
+
65652
65668
  // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
65653
65669
  function setErrorMap(map) {
65654
65670
  overrideErrorMap = map;
@@ -69566,9 +69582,10 @@ var DarkColorSchema, LightColorSchema, BrandColorSchema, Brand2ColorSchema, Bran
69566
69582
  var init_schema = __esm({
69567
69583
  "packages/config/src/schema.ts"() {
69568
69584
  init_lib();
69585
+ init_constants();
69569
69586
  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");
69570
69587
  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");
69571
- BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
69588
+ 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");
69572
69589
  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");
69573
69590
  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");
69574
69591
  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");
@@ -69651,8 +69668,10 @@ var init_schema = __esm({
69651
69668
  namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
69652
69669
  organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
69653
69670
  repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
69654
- license: z2.string().trim().default("Apache 2.0").describe("The root directory of the package"),
69655
- homepage: z2.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
69671
+ license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
69672
+ homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
69673
+ docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
69674
+ licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
69656
69675
  branch: z2.string().trim().default("main").describe("The branch of the workspace"),
69657
69676
  preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
69658
69677
  owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
@@ -69721,18 +69740,13 @@ var init_types = __esm({
69721
69740
  }
69722
69741
  });
69723
69742
 
69724
- // packages/config/src/define-config.ts
69725
- var init_define_config = __esm({
69726
- "packages/config/src/define-config.ts"() {
69727
- }
69728
- });
69729
-
69730
69743
  // packages/config/src/index.ts
69731
69744
  var init_src = __esm({
69732
69745
  "packages/config/src/index.ts"() {
69746
+ init_constants();
69747
+ init_define_config();
69733
69748
  init_schema();
69734
69749
  init_types();
69735
- init_define_config();
69736
69750
  }
69737
69751
  });
69738
69752
 
@@ -69838,6 +69852,8 @@ var init_get_default_config = __esm({
69838
69852
  repository,
69839
69853
  license: license ?? DEFAULT_STORM_CONFIG.license,
69840
69854
  homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
69855
+ docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
69856
+ licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
69841
69857
  extensions: {
69842
69858
  ...config.extensions
69843
69859
  }
@@ -71929,6 +71945,8 @@ var init_get_env = __esm({
71929
71945
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
71930
71946
  license: process.env[`${prefix}LICENSE`],
71931
71947
  homepage: process.env[`${prefix}HOMEPAGE`],
71948
+ docs: process.env[`${prefix}DOCS`],
71949
+ licensing: process.env[`${prefix}LICENSING`],
71932
71950
  timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
71933
71951
  locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
71934
71952
  configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
@@ -71977,6 +71995,20 @@ var init_get_env = __esm({
71977
71995
  },
71978
71996
  {}
71979
71997
  ) : getThemeColorConfigEnv(prefix);
71998
+ if (config.docs === STORM_DEFAULT_DOCS) {
71999
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
72000
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
72001
+ } else {
72002
+ config.docs = `${config.homepage}/docs`;
72003
+ }
72004
+ }
72005
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
72006
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
72007
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
72008
+ } else {
72009
+ config.licensing = `${config.homepage}/docs`;
72010
+ }
72011
+ }
71980
72012
  const serializedConfig = process.env[`${prefix}CONFIG`];
71981
72013
  if (serializedConfig) {
71982
72014
  const parsed = JSON.parse(serializedConfig);
@@ -72094,6 +72126,12 @@ var init_set_env = __esm({
72094
72126
  if (config.homepage) {
72095
72127
  process.env[`${prefix}HOMEPAGE`] = config.homepage;
72096
72128
  }
72129
+ if (config.docs) {
72130
+ process.env[`${prefix}DOCS`] = config.docs;
72131
+ }
72132
+ if (config.licensing) {
72133
+ process.env[`${prefix}LICENSING`] = config.licensing;
72134
+ }
72097
72135
  if (config.timezone) {
72098
72136
  process.env[`${prefix}TIMEZONE`] = config.timezone;
72099
72137
  process.env.TZ = config.timezone;
@@ -61389,6 +61389,22 @@ var init_find_workspace_root = __esm({
61389
61389
  }
61390
61390
  });
61391
61391
 
61392
+ // packages/config/src/constants.ts
61393
+ var STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSING;
61394
+ var init_constants = __esm({
61395
+ "packages/config/src/constants.ts"() {
61396
+ STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
61397
+ STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
61398
+ STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
61399
+ }
61400
+ });
61401
+
61402
+ // packages/config/src/define-config.ts
61403
+ var init_define_config = __esm({
61404
+ "packages/config/src/define-config.ts"() {
61405
+ }
61406
+ });
61407
+
61392
61408
  // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
61393
61409
  function setErrorMap(map) {
61394
61410
  overrideErrorMap = map;
@@ -65306,9 +65322,10 @@ var DarkColorSchema, LightColorSchema, BrandColorSchema, Brand2ColorSchema, Bran
65306
65322
  var init_schema = __esm({
65307
65323
  "packages/config/src/schema.ts"() {
65308
65324
  init_lib();
65325
+ init_constants();
65309
65326
  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");
65310
65327
  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");
65311
- BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
65328
+ 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");
65312
65329
  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");
65313
65330
  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");
65314
65331
  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");
@@ -65391,8 +65408,10 @@ var init_schema = __esm({
65391
65408
  namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
65392
65409
  organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
65393
65410
  repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
65394
- license: z2.string().trim().default("Apache 2.0").describe("The root directory of the package"),
65395
- homepage: z2.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
65411
+ license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
65412
+ homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
65413
+ docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
65414
+ licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
65396
65415
  branch: z2.string().trim().default("main").describe("The branch of the workspace"),
65397
65416
  preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
65398
65417
  owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
@@ -65461,18 +65480,13 @@ var init_types = __esm({
65461
65480
  }
65462
65481
  });
65463
65482
 
65464
- // packages/config/src/define-config.ts
65465
- var init_define_config = __esm({
65466
- "packages/config/src/define-config.ts"() {
65467
- }
65468
- });
65469
-
65470
65483
  // packages/config/src/index.ts
65471
65484
  var init_src = __esm({
65472
65485
  "packages/config/src/index.ts"() {
65486
+ init_constants();
65487
+ init_define_config();
65473
65488
  init_schema();
65474
65489
  init_types();
65475
- init_define_config();
65476
65490
  }
65477
65491
  });
65478
65492
 
@@ -65578,6 +65592,8 @@ var init_get_default_config = __esm({
65578
65592
  repository,
65579
65593
  license: license ?? DEFAULT_STORM_CONFIG.license,
65580
65594
  homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
65595
+ docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
65596
+ licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
65581
65597
  extensions: {
65582
65598
  ...config.extensions
65583
65599
  }
@@ -67669,6 +67685,8 @@ var init_get_env = __esm({
67669
67685
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
67670
67686
  license: process.env[`${prefix}LICENSE`],
67671
67687
  homepage: process.env[`${prefix}HOMEPAGE`],
67688
+ docs: process.env[`${prefix}DOCS`],
67689
+ licensing: process.env[`${prefix}LICENSING`],
67672
67690
  timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
67673
67691
  locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
67674
67692
  configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
@@ -67717,6 +67735,20 @@ var init_get_env = __esm({
67717
67735
  },
67718
67736
  {}
67719
67737
  ) : getThemeColorConfigEnv(prefix);
67738
+ if (config.docs === STORM_DEFAULT_DOCS) {
67739
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67740
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
67741
+ } else {
67742
+ config.docs = `${config.homepage}/docs`;
67743
+ }
67744
+ }
67745
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
67746
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67747
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
67748
+ } else {
67749
+ config.licensing = `${config.homepage}/docs`;
67750
+ }
67751
+ }
67720
67752
  const serializedConfig = process.env[`${prefix}CONFIG`];
67721
67753
  if (serializedConfig) {
67722
67754
  const parsed = JSON.parse(serializedConfig);
@@ -67834,6 +67866,12 @@ var init_set_env = __esm({
67834
67866
  if (config.homepage) {
67835
67867
  process.env[`${prefix}HOMEPAGE`] = config.homepage;
67836
67868
  }
67869
+ if (config.docs) {
67870
+ process.env[`${prefix}DOCS`] = config.docs;
67871
+ }
67872
+ if (config.licensing) {
67873
+ process.env[`${prefix}LICENSING`] = config.licensing;
67874
+ }
67837
67875
  if (config.timezone) {
67838
67876
  process.env[`${prefix}TIMEZONE`] = config.timezone;
67839
67877
  process.env.TZ = config.timezone;