@storm-software/workspace-tools 1.74.0 → 1.75.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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.75.0 (2024-05-04)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **config:** Generated the Storm Configuration JSON schema package asset ([0a5c9bb2](https://github.com/storm-software/storm-ops/commit/0a5c9bb2))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.74.0 (2024-05-04)
2
14
 
3
15
 
package/index.js CHANGED
@@ -2006,7 +2006,7 @@ var require_jiti = __commonJS({
2006
2006
  return ".";
2007
2007
  const isUNCPath = (path6 = normalizeWindowsPath2(path6)).match(_UNC_REGEX2), isPathAbsolute = isAbsolute2(path6), trailingSeparator = "/" === path6[path6.length - 1];
2008
2008
  return 0 === (path6 = normalizeString2(path6, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path6 += "/"), _DRIVE_LETTER_RE2.test(path6) && (path6 += "/"), isUNCPath ? isPathAbsolute ? `//${path6}` : `//./${path6}` : isPathAbsolute && !isAbsolute2(path6) ? `/${path6}` : path6);
2009
- }, join7 = function(...arguments_) {
2009
+ }, join6 = function(...arguments_) {
2010
2010
  if (0 === arguments_.length)
2011
2011
  return ".";
2012
2012
  let joined;
@@ -4852,13 +4852,13 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4852
4852
  } catch (_a) {
4853
4853
  return false;
4854
4854
  }
4855
- }(_filename) && (_filename = join7(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
4855
+ }(_filename) && (_filename = join6(_filename, "index.js")), true === opts.cache && (opts.cache = function() {
4856
4856
  let _tmpDir = (0, external_os_namespaceObject.tmpdir)();
4857
4857
  if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
4858
4858
  const _env = process.env.TMPDIR;
4859
4859
  delete process.env.TMPDIR, _tmpDir = (0, external_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
4860
4860
  }
4861
- return join7(_tmpDir, "node-jiti");
4861
+ return join6(_tmpDir, "node-jiti");
4862
4862
  }()), opts.cache)
4863
4863
  try {
4864
4864
  if ((0, external_fs_.mkdirSync)(opts.cache, { recursive: true }), !function(filename) {
@@ -4884,7 +4884,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4884
4884
  aliases2 = normalizeAliases(aliases2);
4885
4885
  for (const alias2 in aliases2)
4886
4886
  if (_path.startsWith(alias2) && pathSeparators.has(_path[alias2.length]))
4887
- return join7(aliases2[alias2], _path.slice(alias2.length));
4887
+ return join6(aliases2[alias2], _path.slice(alias2.length));
4888
4888
  return _path;
4889
4889
  }(id, alias)), opts.esmResolve) {
4890
4890
  const conditionSets = [["node", "require"], ["node", "import"]];
@@ -4915,7 +4915,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4915
4915
  let code = function(filename, source, get2) {
4916
4916
  if (!opts.cache || !filename)
4917
4917
  return get2();
4918
- const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile = join7(opts.cache, filebase + "." + md5(filename) + ".js");
4918
+ const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename2(pathe_92c04245_dirname(filename)) + "-" + basename2(filename), cacheFile = join6(opts.cache, filebase + "." + md5(filename) + ".js");
4919
4919
  if ((0, external_fs_.existsSync)(cacheFile)) {
4920
4920
  const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
4921
4921
  if (cacheSource.endsWith(sourceHash))
@@ -4984,9 +4984,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4984
4984
  var _a;
4985
4985
  const id = evalOptions.id || (evalOptions.filename ? basename2(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve3(id), ext = evalOptions.ext || extname3(filename), cache2 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a = function(path6) {
4986
4986
  for (; path6 && "." !== path6 && "/" !== path6; ) {
4987
- path6 = join7(path6, "..");
4987
+ path6 = join6(path6, "..");
4988
4988
  try {
4989
- const pkg = (0, external_fs_.readFileSync)(join7(path6, "package.json"), "utf8");
4989
+ const pkg = (0, external_fs_.readFileSync)(join6(path6, "package.json"), "utf8");
4990
4990
  try {
4991
4991
  return JSON.parse(pkg);
4992
4992
  } catch (_a2) {
@@ -49779,7 +49779,7 @@ var require_path_reservations = __commonJS({
49779
49779
  var assert2 = require("assert");
49780
49780
  var normalize2 = require_normalize_unicode();
49781
49781
  var stripSlashes = require_strip_trailing_slashes();
49782
- var { join: join7 } = require("path");
49782
+ var { join: join6 } = require("path");
49783
49783
  var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
49784
49784
  var isWindows = platform === "win32";
49785
49785
  module2.exports = () => {
@@ -49788,7 +49788,7 @@ var require_path_reservations = __commonJS({
49788
49788
  const getDirs = (path6) => {
49789
49789
  const dirs = path6.split("/").slice(0, -1).reduce((set2, path7) => {
49790
49790
  if (set2.length) {
49791
- path7 = join7(set2[set2.length - 1], path7);
49791
+ path7 = join6(set2[set2.length - 1], path7);
49792
49792
  }
49793
49793
  set2.push(path7 || "/");
49794
49794
  return set2;
@@ -49856,7 +49856,7 @@ var require_path_reservations = __commonJS({
49856
49856
  };
49857
49857
  const reserve = (paths, fn2) => {
49858
49858
  paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p2) => {
49859
- return stripSlashes(join7(normalize2(p2))).toLowerCase();
49859
+ return stripSlashes(join6(normalize2(p2))).toLowerCase();
49860
49860
  });
49861
49861
  const dirs = new Set(
49862
49862
  paths.map((path6) => getDirs(path6)).reduce((a2, b6) => a2.concat(b6))
@@ -70745,15 +70745,14 @@ var init_lib = __esm({
70745
70745
  });
70746
70746
 
70747
70747
  // packages/config/src/schema.ts
70748
- var DarkColorSchema, LightColorSchema, Brand1ColorSchema, Brand2ColorSchema, Brand3ColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
70748
+ var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
70749
70749
  var init_schema = __esm({
70750
70750
  "packages/config/src/schema.ts"() {
70751
70751
  init_lib();
70752
70752
  DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
70753
70753
  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");
70754
- Brand1ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
70755
- Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
70756
- Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
70754
+ BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
70755
+ AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
70757
70756
  SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
70758
70757
  InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
70759
70758
  WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
@@ -70762,9 +70761,8 @@ var init_schema = __esm({
70762
70761
  DarkThemeColorConfigSchema = z2.object({
70763
70762
  foreground: LightColorSchema,
70764
70763
  background: DarkColorSchema,
70765
- brand1: Brand1ColorSchema,
70766
- brand2: Brand2ColorSchema,
70767
- brand3: Brand3ColorSchema,
70764
+ brand: BrandColorSchema,
70765
+ accent: AccentColorSchema,
70768
70766
  success: SuccessColorSchema,
70769
70767
  info: InfoColorSchema,
70770
70768
  warning: WarningColorSchema,
@@ -70774,9 +70772,8 @@ var init_schema = __esm({
70774
70772
  LightThemeColorConfigSchema = z2.object({
70775
70773
  foreground: DarkColorSchema,
70776
70774
  background: LightColorSchema,
70777
- brand1: Brand1ColorSchema,
70778
- brand2: Brand2ColorSchema,
70779
- brand3: Brand3ColorSchema,
70775
+ brand: BrandColorSchema,
70776
+ accent: AccentColorSchema,
70780
70777
  success: SuccessColorSchema,
70781
70778
  info: InfoColorSchema,
70782
70779
  warning: WarningColorSchema,
@@ -70790,9 +70787,8 @@ var init_schema = __esm({
70790
70787
  SingleThemeColorConfigSchema = z2.object({
70791
70788
  dark: DarkColorSchema,
70792
70789
  light: LightColorSchema,
70793
- brand1: Brand1ColorSchema,
70794
- brand2: Brand2ColorSchema,
70795
- brand3: Brand3ColorSchema,
70790
+ brand: BrandColorSchema,
70791
+ accent: AccentColorSchema,
70796
70792
  success: SuccessColorSchema,
70797
70793
  info: InfoColorSchema,
70798
70794
  warning: WarningColorSchema,
@@ -70838,7 +70834,7 @@ var init_schema = __esm({
70838
70834
  runtimeVersion: z2.string().trim().regex(
70839
70835
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
70840
70836
  ).default("1.0.0").describe("The global version of the Storm runtime"),
70841
- packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
70837
+ packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
70842
70838
  timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
70843
70839
  locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
70844
70840
  logLevel: z2.enum([
@@ -70873,9 +70869,8 @@ var init_types = __esm({
70873
70869
  COLOR_KEYS = [
70874
70870
  "dark",
70875
70871
  "light",
70876
- "brand1",
70877
- "brand2",
70878
- "brand3",
70872
+ "brand",
70873
+ "accent",
70879
70874
  "success",
70880
70875
  "info",
70881
70876
  "warning",
@@ -70909,16 +70904,26 @@ var init_get_default_config = __esm({
70909
70904
  init_src();
70910
70905
  init_find_workspace_root();
70911
70906
  DEFAULT_COLOR_CONFIG = {
70912
- dark: "#1d232a",
70913
- light: "#f4f4f5",
70914
- brand1: "#1fb2a6",
70915
- brand2: "#6366f1",
70916
- brand3: "#ec5990",
70917
- success: "#087f5b",
70918
- info: "#0ea5e9",
70919
- warning: "#fcc419",
70920
- error: "#990000",
70921
- fatal: "#7d1a1a"
70907
+ light: {
70908
+ background: "#f4f4f5",
70909
+ foreground: "#1d232a",
70910
+ brand: "#1fb2a6",
70911
+ accent: "#8250df",
70912
+ success: "#087f5b",
70913
+ info: "#0550ae",
70914
+ warning: "#e3b341",
70915
+ error: "#a40e26"
70916
+ },
70917
+ dark: {
70918
+ background: "#22272E",
70919
+ foreground: "#fcfcf5",
70920
+ brand: "#1fb2a6",
70921
+ accent: "#8256D0",
70922
+ success: "#087f5b",
70923
+ info: "#316DCA",
70924
+ warning: "#F3D371",
70925
+ error: "#d1242f"
70926
+ }
70922
70927
  };
70923
70928
  DEFAULT_STORM_CONFIG = {
70924
70929
  name: "storm",
@@ -72678,7 +72683,7 @@ var init_logger = __esm({
72678
72683
  return (message) => {
72679
72684
  console.error(
72680
72685
  `
72681
- ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
72686
+ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
72682
72687
  " \u{1F480} Fatal "
72683
72688
  )} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
72684
72689
  `
@@ -72733,9 +72738,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
72733
72738
  return (message) => {
72734
72739
  console.debug(
72735
72740
  `
72736
- ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
72741
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72737
72742
  " \u{1F6E0} Debug "
72738
- )} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
72743
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72739
72744
  `
72740
72745
  );
72741
72746
  };
@@ -72743,9 +72748,9 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
72743
72748
  return (message) => {
72744
72749
  console.log(
72745
72750
  `
72746
- ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
72751
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72747
72752
  " \u2709 System "
72748
- )} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
72753
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72749
72754
  `
72750
72755
  );
72751
72756
  };
@@ -72773,7 +72778,7 @@ ${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.b
72773
72778
  };
72774
72779
  };
72775
72780
  formatLogMessage = (message, prefix = "-") => {
72776
- return typeof message === "string" ? message : typeof message === "object" ? `
72781
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
72777
72782
  ${Object.keys(message).map(
72778
72783
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
72779
72784
  ).join("\n")}` : message;
@@ -73130,15 +73135,14 @@ var init_get_env = __esm({
73130
73135
  };
73131
73136
  getThemeColorConfigEnv = (prefix, theme) => {
73132
73137
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
73133
- return process.env[`${prefix}${themeName}LIGHT_BRAND1`] || process.env[`${prefix}${themeName}DARK_BRAND1`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73138
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
73134
73139
  };
73135
73140
  getSingleThemeColorConfigEnv = (prefix) => {
73136
73141
  return {
73137
73142
  dark: process.env[`${prefix}DARK`],
73138
73143
  light: process.env[`${prefix}LIGHT`],
73139
- brand1: process.env[`${prefix}BRAND1`],
73140
- brand2: process.env[`${prefix}BRAND2`],
73141
- brand3: process.env[`${prefix}BRAND3`],
73144
+ brand: process.env[`${prefix}BRAND`],
73145
+ accent: process.env[`${prefix}ACCENT`],
73142
73146
  success: process.env[`${prefix}SUCCESS`],
73143
73147
  info: process.env[`${prefix}INFO`],
73144
73148
  warning: process.env[`${prefix}WARNING`],
@@ -73158,9 +73162,8 @@ var init_get_env = __esm({
73158
73162
  return {
73159
73163
  foreground: process.env[`${prefix}FOREGROUND`],
73160
73164
  background: process.env[`${prefix}BACKGROUND`],
73161
- brand1: process.env[`${prefix}BRAND1`],
73162
- brand2: process.env[`${prefix}BRAND2`],
73163
- brand3: process.env[`${prefix}BRAND3`],
73165
+ brand: process.env[`${prefix}BRAND`],
73166
+ accent: process.env[`${prefix}ACCENT`],
73164
73167
  success: process.env[`${prefix}SUCCESS`],
73165
73168
  info: process.env[`${prefix}INFO`],
73166
73169
  warning: process.env[`${prefix}WARNING`],
@@ -73326,7 +73329,7 @@ var init_set_env = __esm({
73326
73329
  }
73327
73330
  };
73328
73331
  setThemeColorConfigEnv = (prefix, config) => {
73329
- return config?.light?.brand1 || config?.dark?.brand1 ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73332
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73330
73333
  };
73331
73334
  setSingleThemeColorConfigEnv = (prefix, config) => {
73332
73335
  if (config.dark) {
@@ -73335,14 +73338,11 @@ var init_set_env = __esm({
73335
73338
  if (config.light) {
73336
73339
  process.env[`${prefix}LIGHT`] = config.light;
73337
73340
  }
73338
- if (config.brand1) {
73339
- process.env[`${prefix}BRAND1`] = config.brand1;
73341
+ if (config.brand) {
73342
+ process.env[`${prefix}BRAND`] = config.brand;
73340
73343
  }
73341
- if (config.brand2) {
73342
- process.env[`${prefix}BRAND2`] = config.brand2;
73343
- }
73344
- if (config.brand3) {
73345
- process.env[`${prefix}BRAND3`] = config.brand3;
73344
+ if (config.accent) {
73345
+ process.env[`${prefix}ACCENT`] = config.accent;
73346
73346
  }
73347
73347
  if (config.success) {
73348
73348
  process.env[`${prefix}SUCCESS`] = config.success;
@@ -73373,14 +73373,11 @@ var init_set_env = __esm({
73373
73373
  if (config.background) {
73374
73374
  process.env[`${prefix}BACKGROUND`] = config.background;
73375
73375
  }
73376
- if (config.brand1) {
73377
- process.env[`${prefix}BRAND1`] = config.brand1;
73378
- }
73379
- if (config.brand2) {
73380
- process.env[`${prefix}BRAND2`] = config.brand2;
73376
+ if (config.brand) {
73377
+ process.env[`${prefix}BRAND`] = config.brand;
73381
73378
  }
73382
- if (config.brand3) {
73383
- process.env[`${prefix}BRAND3`] = config.brand3;
73379
+ if (config.accent) {
73380
+ process.env[`${prefix}ACCENT`] = config.accent;
73384
73381
  }
73385
73382
  if (config.success) {
73386
73383
  process.env[`${prefix}SUCCESS`] = config.success;
@@ -74654,7 +74651,7 @@ var require_util2 = __commonJS({
74654
74651
  return path6;
74655
74652
  }
74656
74653
  exports2.normalize = normalize2;
74657
- function join7(aRoot, aPath) {
74654
+ function join6(aRoot, aPath) {
74658
74655
  if (aRoot === "") {
74659
74656
  aRoot = ".";
74660
74657
  }
@@ -74686,7 +74683,7 @@ var require_util2 = __commonJS({
74686
74683
  }
74687
74684
  return joined;
74688
74685
  }
74689
- exports2.join = join7;
74686
+ exports2.join = join6;
74690
74687
  exports2.isAbsolute = function(aPath) {
74691
74688
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
74692
74689
  };
@@ -74859,7 +74856,7 @@ var require_util2 = __commonJS({
74859
74856
  parsed.path = parsed.path.substring(0, index + 1);
74860
74857
  }
74861
74858
  }
74862
- sourceURL = join7(urlGenerate(parsed), sourceURL);
74859
+ sourceURL = join6(urlGenerate(parsed), sourceURL);
74863
74860
  }
74864
74861
  return normalize2(sourceURL);
74865
74862
  }
@@ -322677,7 +322674,7 @@ var require_Obj = __commonJS({
322677
322674
  var require_Str = __commonJS({
322678
322675
  "node_modules/.pnpm/prelude-ls@1.2.1/node_modules/prelude-ls/lib/Str.js"(exports2, module2) {
322679
322676
  var split;
322680
- var join7;
322677
+ var join6;
322681
322678
  var lines;
322682
322679
  var unlines;
322683
322680
  var words;
@@ -322692,7 +322689,7 @@ var require_Str = __commonJS({
322692
322689
  split = curry$(function(sep3, str) {
322693
322690
  return str.split(sep3);
322694
322691
  });
322695
- join7 = curry$(function(sep3, xs) {
322692
+ join6 = curry$(function(sep3, xs) {
322696
322693
  return xs.join(sep3);
322697
322694
  });
322698
322695
  lines = function(str) {
@@ -322751,7 +322748,7 @@ var require_Str = __commonJS({
322751
322748
  };
322752
322749
  module2.exports = {
322753
322750
  split,
322754
- join: join7,
322751
+ join: join6,
322755
322752
  lines,
322756
322753
  unlines,
322757
322754
  words,
@@ -398737,7 +398734,7 @@ var require_TransformerError = __commonJS({
398737
398734
  TransformerError2.from = function(method) {
398738
398735
  return function(errors) {
398739
398736
  var body = errors.map(function(e2) {
398740
- var subject = e2.explore.object === null ? "" : join7(e2.explore.object)(e2.explore.property);
398737
+ var subject = e2.explore.object === null ? "" : join6(e2.explore.object)(e2.explore.property);
398741
398738
  var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e2.name);
398742
398739
  return "- ".concat(type, "\n").concat(e2.messages.map(function(msg) {
398743
398740
  return " - ".concat(msg);
@@ -398749,7 +398746,7 @@ var require_TransformerError = __commonJS({
398749
398746
  });
398750
398747
  };
398751
398748
  };
398752
- var join7 = function(object) {
398749
+ var join6 = function(object) {
398753
398750
  return function(key) {
398754
398751
  if (key === null)
398755
398752
  return object.name;
@@ -406276,15 +406273,15 @@ var require_application_object = __commonJS({
406276
406273
  // swagger can't express patternProperties
406277
406274
  "x-typia-additionalProperties": extraProps.additionalProperties,
406278
406275
  "x-typia-patternProperties": extraProps.patternProperties,
406279
- additionalProperties: join7(options)(components)(extraMeta)
406276
+ additionalProperties: join6(options)(components)(extraMeta)
406280
406277
  } : {
406281
- additionalProperties: join7(options)(components)(extraMeta)
406278
+ additionalProperties: join6(options)(components)(extraMeta)
406282
406279
  });
406283
406280
  };
406284
406281
  };
406285
406282
  };
406286
406283
  };
406287
- var join7 = function(options) {
406284
+ var join6 = function(options) {
406288
406285
  return function(components) {
406289
406286
  return function(extra) {
406290
406287
  var _a;
@@ -422925,7 +422922,6 @@ var LARGE_BUFFER3 = 1024 * 1e6;
422925
422922
  // packages/workspace-tools/src/generators/config-schema/generator.ts
422926
422923
  var import_devkit7 = require("@nx/devkit");
422927
422924
  init_src();
422928
- var import_node_path10 = require("node:path");
422929
422925
 
422930
422926
  // node_modules/.pnpm/zod-to-json-schema@3.23.0_zod@3.23.4/node_modules/zod-to-json-schema/dist/esm/Options.js
422931
422927
  var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
@@ -424003,15 +423999,30 @@ var zodToJsonSchema = (schema, options) => {
424003
423999
  };
424004
424000
 
424005
424001
  // packages/workspace-tools/src/generators/config-schema/generator.ts
424002
+ init_src2();
424006
424003
  async function configSchemaGeneratorFn(tree, options, config) {
424007
- const { findWorkspaceRoot: findWorkspaceRoot2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
424008
- const workspaceRoot3 = config?.workspaceRoot ?? findWorkspaceRoot2();
424009
- (0, import_devkit7.writeJson)(
424010
- tree,
424011
- options.outputFile ? (0, import_node_path10.join)(workspaceRoot3, options.outputFile) : (0, import_node_path10.join)(workspaceRoot3, "storm.schema.json"),
424012
- zodToJsonSchema(StormConfigSchema, { name: "StormConfiguration" })
424004
+ const { findWorkspaceRoot: findWorkspaceRoot2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
424005
+ writeInfo2("\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
424006
+ writeTrace(`Determining the Storm Configuration JSON Schema...`, config);
424007
+ const jsonSchema = zodToJsonSchema(StormConfigSchema, {
424008
+ name: "StormConfiguration"
424009
+ });
424010
+ writeTrace(jsonSchema, config);
424011
+ let outputPath = options.outputFile ? options.outputFile.replaceAll("{workspaceRoot}", "") : "storm.schema.json";
424012
+ outputPath = outputPath.replaceAll(
424013
+ config?.workspaceRoot ?? findWorkspaceRoot2(),
424014
+ outputPath.startsWith("./") ? "" : "./"
424015
+ );
424016
+ writeTrace(
424017
+ `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
424018
+ config
424013
424019
  );
424020
+ (0, import_devkit7.writeJson)(tree, outputPath, jsonSchema, { spaces: 2 });
424014
424021
  await (0, import_devkit7.formatFiles)(tree);
424022
+ writeSuccess2(
424023
+ "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
424024
+ config
424025
+ );
424015
424026
  return {
424016
424027
  success: true
424017
424028
  };
@@ -424328,7 +424339,7 @@ var import_devkit11 = require("@nx/devkit");
424328
424339
  var import_version = require("nx/src/command-line/release/version");
424329
424340
  var import_utils4 = require("nx/src/tasks-runner/utils");
424330
424341
  var import_semver = require("nx/src/command-line/release/utils/semver");
424331
- var import_node_path11 = require("node:path");
424342
+ var import_node_path10 = require("node:path");
424332
424343
  var import_update_lock_file = __toESM(require_update_lock_file());
424333
424344
  var import_node_child_process7 = require("node:child_process");
424334
424345
  var import_git = require("nx/src/command-line/release/utils/git");
@@ -424393,7 +424404,7 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s2) => `"${s
424393
424404
  To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`
424394
424405
  );
424395
424406
  }
424396
- const workspaceRelativePackagePath = (0, import_node_path11.relative)(
424407
+ const workspaceRelativePackagePath = (0, import_node_path10.relative)(
424397
424408
  config?.workspaceRoot ?? findWorkspaceRoot2(),
424398
424409
  tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
424399
424410
  );