@storm-software/workspace-tools 1.43.0 → 1.43.2

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.
@@ -19993,14 +19993,14 @@ var require_templates = __commonJS({
19993
19993
  }
19994
19994
  return results;
19995
19995
  }
19996
- function buildStyle(chalk3, styles) {
19996
+ function buildStyle(chalk2, styles) {
19997
19997
  const enabled = {};
19998
19998
  for (const layer of styles) {
19999
19999
  for (const style of layer.styles) {
20000
20000
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
20001
20001
  }
20002
20002
  }
20003
- let current = chalk3;
20003
+ let current = chalk2;
20004
20004
  for (const [styleName, styles2] of Object.entries(enabled)) {
20005
20005
  if (!Array.isArray(styles2)) {
20006
20006
  continue;
@@ -20012,7 +20012,7 @@ var require_templates = __commonJS({
20012
20012
  }
20013
20013
  return current;
20014
20014
  }
20015
- module2.exports = (chalk3, temporary) => {
20015
+ module2.exports = (chalk2, temporary) => {
20016
20016
  const styles = [];
20017
20017
  const chunks = [];
20018
20018
  let chunk = [];
@@ -20022,13 +20022,13 @@ var require_templates = __commonJS({
20022
20022
  } else if (style) {
20023
20023
  const string = chunk.join("");
20024
20024
  chunk = [];
20025
- chunks.push(styles.length === 0 ? string : buildStyle(chalk3, styles)(string));
20025
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
20026
20026
  styles.push({ inverse, styles: parseStyle(style) });
20027
20027
  } else if (close) {
20028
20028
  if (styles.length === 0) {
20029
20029
  throw new Error("Found extraneous } in Chalk template literal");
20030
20030
  }
20031
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
20031
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
20032
20032
  chunk = [];
20033
20033
  styles.pop();
20034
20034
  } else {
@@ -20076,16 +20076,16 @@ var require_source = __commonJS({
20076
20076
  }
20077
20077
  };
20078
20078
  var chalkFactory = (options) => {
20079
- const chalk4 = {};
20080
- applyOptions(chalk4, options);
20081
- chalk4.template = (...arguments_) => chalkTag(chalk4.template, ...arguments_);
20082
- Object.setPrototypeOf(chalk4, Chalk.prototype);
20083
- Object.setPrototypeOf(chalk4.template, chalk4);
20084
- chalk4.template.constructor = () => {
20079
+ const chalk3 = {};
20080
+ applyOptions(chalk3, options);
20081
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
20082
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
20083
+ Object.setPrototypeOf(chalk3.template, chalk3);
20084
+ chalk3.template.constructor = () => {
20085
20085
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
20086
20086
  };
20087
- chalk4.template.Instance = ChalkClass;
20088
- return chalk4.template;
20087
+ chalk3.template.Instance = ChalkClass;
20088
+ return chalk3.template;
20089
20089
  };
20090
20090
  function Chalk(options) {
20091
20091
  return chalkFactory(options);
@@ -20196,7 +20196,7 @@ var require_source = __commonJS({
20196
20196
  return openAll + string + closeAll;
20197
20197
  };
20198
20198
  var template;
20199
- var chalkTag = (chalk4, ...strings) => {
20199
+ var chalkTag = (chalk3, ...strings) => {
20200
20200
  const [firstString] = strings;
20201
20201
  if (!isArray(firstString) || !isArray(firstString.raw)) {
20202
20202
  return strings.join(" ");
@@ -20212,14 +20212,14 @@ var require_source = __commonJS({
20212
20212
  if (template === void 0) {
20213
20213
  template = require_templates();
20214
20214
  }
20215
- return template(chalk4, parts.join(""));
20215
+ return template(chalk3, parts.join(""));
20216
20216
  };
20217
20217
  Object.defineProperties(Chalk.prototype, styles);
20218
- var chalk3 = Chalk();
20219
- chalk3.supportsColor = stdoutColor;
20220
- chalk3.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
20221
- chalk3.stderr.supportsColor = stderrColor;
20222
- module2.exports = chalk3;
20218
+ var chalk2 = Chalk();
20219
+ chalk2.supportsColor = stdoutColor;
20220
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
20221
+ chalk2.stderr.supportsColor = stderrColor;
20222
+ module2.exports = chalk2;
20223
20223
  }
20224
20224
  });
20225
20225
 
@@ -20314,20 +20314,20 @@ var require_highlight = __commonJS({
20314
20314
  Object.defineProperty(exports, "__esModule", { value: true });
20315
20315
  exports.highlight = void 0;
20316
20316
  var jsTokens = require_js_tokens();
20317
- var chalk3 = require_source();
20317
+ var chalk2 = require_source();
20318
20318
  var identifiers_1 = require_identifiers2();
20319
- function getDefs(chalk4) {
20319
+ function getDefs(chalk3) {
20320
20320
  return {
20321
- keyword: chalk4.cyan,
20322
- capitalized: chalk4.yellow,
20323
- jsx_tag: chalk4.yellow,
20324
- punctuator: chalk4.yellow,
20321
+ keyword: chalk3.cyan,
20322
+ capitalized: chalk3.yellow,
20323
+ jsx_tag: chalk3.yellow,
20324
+ punctuator: chalk3.yellow,
20325
20325
  // bracket: intentionally omitted.
20326
- number: chalk4.magenta,
20327
- string: chalk4.green,
20328
- regex: chalk4.magenta,
20329
- comment: chalk4.grey,
20330
- invalid: chalk4.white.bgRed.bold
20326
+ number: chalk3.magenta,
20327
+ string: chalk3.green,
20328
+ regex: chalk3.magenta,
20329
+ comment: chalk3.grey,
20330
+ invalid: chalk3.white.bgRed.bold
20331
20331
  };
20332
20332
  }
20333
20333
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -20367,7 +20367,7 @@ var require_highlight = __commonJS({
20367
20367
  });
20368
20368
  }
20369
20369
  function highlight(code) {
20370
- const defs = getDefs(chalk3);
20370
+ const defs = getDefs(chalk2);
20371
20371
  return highlightTokens(defs, code);
20372
20372
  }
20373
20373
  exports.highlight = highlight;
@@ -20480,7 +20480,7 @@ var require_run_type_check = __commonJS({
20480
20480
  "use strict";
20481
20481
  Object.defineProperty(exports, "__esModule", { value: true });
20482
20482
  exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
20483
- var chalk3 = require_source();
20483
+ var chalk2 = require_source();
20484
20484
  var path2 = require("path");
20485
20485
  var code_frames_1 = require("nx/src/utils/code-frames");
20486
20486
  var highlight_1 = require_highlight();
@@ -20560,17 +20560,17 @@ var require_run_type_check = __commonJS({
20560
20560
  const category = diagnostic.category;
20561
20561
  switch (category) {
20562
20562
  case ts2.DiagnosticCategory.Warning: {
20563
- message += `${chalk3.yellow.bold("warning")} ${chalk3.gray(`TS${diagnostic.code}`)}: `;
20563
+ message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
20564
20564
  break;
20565
20565
  }
20566
20566
  case ts2.DiagnosticCategory.Error: {
20567
- message += `${chalk3.red.bold("error")} ${chalk3.gray(`TS${diagnostic.code}`)}: `;
20567
+ message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
20568
20568
  break;
20569
20569
  }
20570
20570
  case ts2.DiagnosticCategory.Suggestion:
20571
20571
  case ts2.DiagnosticCategory.Message:
20572
20572
  default: {
20573
- message += `${chalk3.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
20573
+ message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
20574
20574
  break;
20575
20575
  }
20576
20576
  }
@@ -20580,7 +20580,7 @@ var require_run_type_check = __commonJS({
20580
20580
  const line = pos.line + 1;
20581
20581
  const column = pos.character + 1;
20582
20582
  const fileName = path2.relative(workspaceRoot, diagnostic.file.fileName);
20583
- message = `${chalk3.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
20583
+ message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
20584
20584
  const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
20585
20585
  message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
20586
20586
  start: { line, column }
@@ -40168,14 +40168,14 @@ var require_templates2 = __commonJS({
40168
40168
  }
40169
40169
  return results;
40170
40170
  }
40171
- function buildStyle(chalk3, styles) {
40171
+ function buildStyle(chalk2, styles) {
40172
40172
  const enabled = {};
40173
40173
  for (const layer of styles) {
40174
40174
  for (const style of layer.styles) {
40175
40175
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
40176
40176
  }
40177
40177
  }
40178
- let current = chalk3;
40178
+ let current = chalk2;
40179
40179
  for (const styleName of Object.keys(enabled)) {
40180
40180
  if (Array.isArray(enabled[styleName])) {
40181
40181
  if (!(styleName in current)) {
@@ -40190,7 +40190,7 @@ var require_templates2 = __commonJS({
40190
40190
  }
40191
40191
  return current;
40192
40192
  }
40193
- module2.exports = (chalk3, tmp) => {
40193
+ module2.exports = (chalk2, tmp) => {
40194
40194
  const styles = [];
40195
40195
  const chunks = [];
40196
40196
  let chunk = [];
@@ -40200,13 +40200,13 @@ var require_templates2 = __commonJS({
40200
40200
  } else if (style) {
40201
40201
  const str = chunk.join("");
40202
40202
  chunk = [];
40203
- chunks.push(styles.length === 0 ? str : buildStyle(chalk3, styles)(str));
40203
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk2, styles)(str));
40204
40204
  styles.push({ inverse, styles: parseStyle(style) });
40205
40205
  } else if (close) {
40206
40206
  if (styles.length === 0) {
40207
40207
  throw new Error("Found extraneous } in Chalk template literal");
40208
40208
  }
40209
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
40209
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
40210
40210
  chunk = [];
40211
40211
  styles.pop();
40212
40212
  } else {
@@ -40243,16 +40243,16 @@ var require_chalk = __commonJS({
40243
40243
  }
40244
40244
  function Chalk(options) {
40245
40245
  if (!this || !(this instanceof Chalk) || this.template) {
40246
- const chalk3 = {};
40247
- applyOptions(chalk3, options);
40248
- chalk3.template = function() {
40246
+ const chalk2 = {};
40247
+ applyOptions(chalk2, options);
40248
+ chalk2.template = function() {
40249
40249
  const args = [].slice.call(arguments);
40250
- return chalkTag.apply(null, [chalk3.template].concat(args));
40250
+ return chalkTag.apply(null, [chalk2.template].concat(args));
40251
40251
  };
40252
- Object.setPrototypeOf(chalk3, Chalk.prototype);
40253
- Object.setPrototypeOf(chalk3.template, chalk3);
40254
- chalk3.template.constructor = Chalk;
40255
- return chalk3.template;
40252
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
40253
+ Object.setPrototypeOf(chalk2.template, chalk2);
40254
+ chalk2.template.constructor = Chalk;
40255
+ return chalk2.template;
40256
40256
  }
40257
40257
  applyOptions(this, options);
40258
40258
  }
@@ -40371,7 +40371,7 @@ var require_chalk = __commonJS({
40371
40371
  ansiStyles.dim.open = originalDim;
40372
40372
  return str;
40373
40373
  }
40374
- function chalkTag(chalk3, strings) {
40374
+ function chalkTag(chalk2, strings) {
40375
40375
  if (!Array.isArray(strings)) {
40376
40376
  return [].slice.call(arguments, 1).join(" ");
40377
40377
  }
@@ -40381,7 +40381,7 @@ var require_chalk = __commonJS({
40381
40381
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
40382
40382
  parts.push(String(strings.raw[i]));
40383
40383
  }
40384
- return template(chalk3, parts.join(""));
40384
+ return template(chalk2, parts.join(""));
40385
40385
  }
40386
40386
  Object.defineProperties(Chalk.prototype, styles);
40387
40387
  module2.exports = Chalk();
@@ -40427,17 +40427,17 @@ var require_lib4 = __commonJS({
40427
40427
  return n.default = e, t && t.set(e, n), n;
40428
40428
  }
40429
40429
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
40430
- function getDefs(chalk3) {
40430
+ function getDefs(chalk2) {
40431
40431
  return {
40432
- keyword: chalk3.cyan,
40433
- capitalized: chalk3.yellow,
40434
- jsxIdentifier: chalk3.yellow,
40435
- punctuator: chalk3.yellow,
40436
- number: chalk3.magenta,
40437
- string: chalk3.green,
40438
- regex: chalk3.magenta,
40439
- comment: chalk3.grey,
40440
- invalid: chalk3.white.bgRed.bold
40432
+ keyword: chalk2.cyan,
40433
+ capitalized: chalk2.yellow,
40434
+ jsxIdentifier: chalk2.yellow,
40435
+ punctuator: chalk2.yellow,
40436
+ number: chalk2.magenta,
40437
+ string: chalk2.green,
40438
+ regex: chalk2.magenta,
40439
+ comment: chalk2.grey,
40440
+ invalid: chalk2.white.bgRed.bold
40441
40441
  };
40442
40442
  }
40443
40443
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -40568,11 +40568,11 @@ var require_lib5 = __commonJS({
40568
40568
  return _chalk.default;
40569
40569
  }
40570
40570
  var deprecationWarningShown = false;
40571
- function getDefs(chalk3) {
40571
+ function getDefs(chalk2) {
40572
40572
  return {
40573
- gutter: chalk3.grey,
40574
- marker: chalk3.red.bold,
40575
- message: chalk3.red.bold
40573
+ gutter: chalk2.grey,
40574
+ marker: chalk2.red.bold,
40575
+ message: chalk2.red.bold
40576
40576
  };
40577
40577
  }
40578
40578
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -40634,8 +40634,8 @@ var require_lib5 = __commonJS({
40634
40634
  }
40635
40635
  function codeFrameColumns(rawLines, loc, opts = {}) {
40636
40636
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
40637
- const chalk3 = getChalk(opts.forceColor);
40638
- const defs = getDefs(chalk3);
40637
+ const chalk2 = getChalk(opts.forceColor);
40638
+ const defs = getDefs(chalk2);
40639
40639
  const maybeHighlight = (chalkFn, string) => {
40640
40640
  return highlighted ? chalkFn(string) : string;
40641
40641
  };
@@ -40674,7 +40674,7 @@ var require_lib5 = __commonJS({
40674
40674
  ${frame}`;
40675
40675
  }
40676
40676
  if (highlighted) {
40677
- return chalk3.reset(frame);
40677
+ return chalk2.reset(frame);
40678
40678
  } else {
40679
40679
  return frame;
40680
40680
  }
@@ -130204,13 +130204,13 @@ var getLogLevelLabel = (logLevel) => {
130204
130204
  var chalk = __toESM(require_source(), 1);
130205
130205
  var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130206
130206
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
130207
- return (message) => {
130207
+ return (_) => {
130208
130208
  };
130209
130209
  }
130210
130210
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
130211
130211
  return (message) => {
130212
130212
  console.error(
130213
- ` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").inverse("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
130213
+ ` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
130214
130214
  config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
130215
130215
  )(message)}
130216
130216
  `
@@ -130220,7 +130220,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130220
130220
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
130221
130221
  return (message) => {
130222
130222
  console.error(
130223
- ` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").inverse("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
130223
+ ` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
130224
130224
  config?.colors?.error ? config.colors.error : "#7d1a1a"
130225
130225
  )(message)}
130226
130226
  `
@@ -130230,7 +130230,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130230
130230
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
130231
130231
  return (message) => {
130232
130232
  console.warn(
130233
- ` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").inverse("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
130233
+ ` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
130234
130234
  config?.colors?.warning ? config.colors.warning : "#fcc419"
130235
130235
  )(message)}
130236
130236
  `
@@ -130240,7 +130240,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130240
130240
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
130241
130241
  return (message) => {
130242
130242
  console.info(
130243
- ` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").inverse("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
130243
+ ` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
130244
130244
  config?.colors?.info ? config.colors.info : "#0ea5e9"
130245
130245
  )(message)}
130246
130246
  `
@@ -130250,7 +130250,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130250
130250
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
130251
130251
  return (message) => {
130252
130252
  console.info(
130253
- ` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").inverse("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
130253
+ ` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
130254
130254
  config?.colors?.success ? config.colors.success : "#087f5b"
130255
130255
  )(message)}
130256
130256
  `
@@ -130260,7 +130260,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130260
130260
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
130261
130261
  return (message) => {
130262
130262
  console.debug(
130263
- ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
130263
+ ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
130264
130264
  config?.colors?.primary ? config.colors.primary : "#1fb2a6"
130265
130265
  )(message)}
130266
130266
  `
@@ -130269,7 +130269,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130269
130269
  }
130270
130270
  return (message) => {
130271
130271
  console.log(
130272
- ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
130272
+ ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
130273
130273
  config?.colors?.primary ? config.colors.primary : "#1fb2a6"
130274
130274
  )(message)}
130275
130275
  `
@@ -130282,72 +130282,18 @@ var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
130282
130282
  var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
130283
130283
  var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
130284
130284
  var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
130285
-
130286
- // packages/config-tools/src/env/get-env.ts
130287
- var getExtensionEnv = (extensionName) => {
130288
- const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
130289
- return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
130290
- const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
130291
- if (name) {
130292
- ret[name] = process.env[key];
130293
- }
130294
- return ret;
130295
- }, {});
130296
- };
130297
- var getConfigEnv = () => {
130298
- const prefix = "STORM_";
130299
- let config = {
130300
- name: process.env[`${prefix}NAME`],
130301
- namespace: process.env[`${prefix}NAMESPACE`],
130302
- owner: process.env[`${prefix}OWNER`],
130303
- worker: process.env[`${prefix}WORKER`],
130304
- organization: process.env[`${prefix}ORGANIZATION`],
130305
- packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
130306
- license: process.env[`${prefix}LICENSE`],
130307
- homepage: process.env[`${prefix}HOMEPAGE`],
130308
- timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
130309
- locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
130310
- configFile: process.env[`${prefix}CONFIG_FILE`],
130311
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
130312
- packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
130313
- buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
130314
- runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
130315
- runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
130316
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
130317
- ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
130318
- colors: {
130319
- primary: process.env[`${prefix}COLOR_PRIMARY`],
130320
- background: process.env[`${prefix}COLOR_BACKGROUND`],
130321
- success: process.env[`${prefix}COLOR_SUCCESS`],
130322
- info: process.env[`${prefix}COLOR_INFO`],
130323
- warning: process.env[`${prefix}COLOR_WARNING`],
130324
- error: process.env[`${prefix}COLOR_ERROR`],
130325
- fatal: process.env[`${prefix}COLOR_FATAL`]
130326
- },
130327
- repository: process.env[`${prefix}REPOSITORY`],
130328
- branch: process.env[`${prefix}BRANCH`],
130329
- preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
130330
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
130331
- extensions: {}
130285
+ var getStopwatch = (name) => {
130286
+ const start = process.hrtime();
130287
+ return () => {
130288
+ const end = process.hrtime(start);
130289
+ console.info(
130290
+ chalk.dim(
130291
+ `\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
130292
+ end[0] * 1e3 + end[1] / 1e6
130293
+ )}ms to complete`
130294
+ )
130295
+ );
130332
130296
  };
130333
- const serializedConfig = process.env[`${prefix}CONFIG`];
130334
- if (serializedConfig) {
130335
- const parsed = JSON.parse(serializedConfig);
130336
- config = {
130337
- ...config,
130338
- ...parsed,
130339
- colors: { ...config.colors, ...parsed.colors },
130340
- extensions: { ...config.extensions, ...parsed.extensions }
130341
- };
130342
- }
130343
- const extensionPrefix = `${prefix}EXTENSION_`;
130344
- return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
130345
- const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
130346
- if (extensionName) {
130347
- ret.extensions[extensionName] = getExtensionEnv(extensionName);
130348
- }
130349
- return ret;
130350
- }, config);
130351
130297
  };
130352
130298
 
130353
130299
  // packages/config-tools/src/env/set-env.ts
@@ -130484,6 +130430,83 @@ var setConfigEnv = (config) => {
130484
130430
  }
130485
130431
  };
130486
130432
 
130433
+ // packages/config-tools/src/utilities/prepare-workspace.ts
130434
+ var prepareWorkspace = async () => {
130435
+ const _STORM_CONFIG = getDefaultConfig({
130436
+ ...await getConfigFile(),
130437
+ ...getConfigEnv()
130438
+ });
130439
+ setConfigEnv(_STORM_CONFIG);
130440
+ return _STORM_CONFIG;
130441
+ };
130442
+
130443
+ // packages/config-tools/src/env/get-env.ts
130444
+ var getExtensionEnv = (extensionName) => {
130445
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
130446
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
130447
+ const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
130448
+ if (name) {
130449
+ ret[name] = process.env[key];
130450
+ }
130451
+ return ret;
130452
+ }, {});
130453
+ };
130454
+ var getConfigEnv = () => {
130455
+ const prefix = "STORM_";
130456
+ let config = {
130457
+ name: process.env[`${prefix}NAME`],
130458
+ namespace: process.env[`${prefix}NAMESPACE`],
130459
+ owner: process.env[`${prefix}OWNER`],
130460
+ worker: process.env[`${prefix}WORKER`],
130461
+ organization: process.env[`${prefix}ORGANIZATION`],
130462
+ packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
130463
+ license: process.env[`${prefix}LICENSE`],
130464
+ homepage: process.env[`${prefix}HOMEPAGE`],
130465
+ timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
130466
+ locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
130467
+ configFile: process.env[`${prefix}CONFIG_FILE`],
130468
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
130469
+ packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
130470
+ buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
130471
+ runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
130472
+ runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
130473
+ env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
130474
+ ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
130475
+ colors: {
130476
+ primary: process.env[`${prefix}COLOR_PRIMARY`],
130477
+ background: process.env[`${prefix}COLOR_BACKGROUND`],
130478
+ success: process.env[`${prefix}COLOR_SUCCESS`],
130479
+ info: process.env[`${prefix}COLOR_INFO`],
130480
+ warning: process.env[`${prefix}COLOR_WARNING`],
130481
+ error: process.env[`${prefix}COLOR_ERROR`],
130482
+ fatal: process.env[`${prefix}COLOR_FATAL`]
130483
+ },
130484
+ repository: process.env[`${prefix}REPOSITORY`],
130485
+ branch: process.env[`${prefix}BRANCH`],
130486
+ preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
130487
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
130488
+ extensions: {}
130489
+ };
130490
+ const serializedConfig = process.env[`${prefix}CONFIG`];
130491
+ if (serializedConfig) {
130492
+ const parsed = JSON.parse(serializedConfig);
130493
+ config = {
130494
+ ...config,
130495
+ ...parsed,
130496
+ colors: { ...config.colors, ...parsed.colors },
130497
+ extensions: { ...config.extensions, ...parsed.extensions }
130498
+ };
130499
+ }
130500
+ const extensionPrefix = `${prefix}EXTENSION_`;
130501
+ return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
130502
+ const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
130503
+ if (extensionName) {
130504
+ ret.extensions[extensionName] = getExtensionEnv(extensionName);
130505
+ }
130506
+ return ret;
130507
+ }, config);
130508
+ };
130509
+
130487
130510
  // node_modules/.pnpm/esbuild-plugin-define@0.4.0_esbuild@0.19.5/node_modules/esbuild-plugin-define/dist/mjs/utils.js
130488
130511
  var makeKey = (...inputs) => inputs.filter((input) => !!input).join(".");
130489
130512
  function convertToDefineObject(data) {
@@ -136709,9 +136732,6 @@ var import_prettier = require("prettier");
136709
136732
  var import_tsup = __toESM(require_dist6());
136710
136733
  var ts = __toESM(require("typescript"));
136711
136734
 
136712
- // packages/workspace-tools/src/base/base-executor.ts
136713
- var chalk2 = __toESM(require_source());
136714
-
136715
136735
  // packages/workspace-tools/src/utils/get-workspace-root.ts
136716
136736
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
136717
136737
  var getWorkspaceRoot = () => {
@@ -136799,7 +136819,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
136799
136819
 
136800
136820
  // packages/workspace-tools/src/base/base-executor.ts
136801
136821
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
136802
- const startTime = Date.now();
136822
+ const stopwatch = getStopwatch(name);
136803
136823
  let options = _options;
136804
136824
  let config;
136805
136825
  try {
@@ -136824,11 +136844,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
136824
136844
  - projectName: ${projectName}
136825
136845
  `
136826
136846
  );
136827
- config = getDefaultConfig({
136828
- ...await getConfigFile(),
136829
- ...getConfigEnv()
136830
- });
136831
- setConfigEnv(config);
136847
+ config = await prepareWorkspace();
136832
136848
  writeTrace(
136833
136849
  config,
136834
136850
  `Loaded Storm config into env:
@@ -136894,11 +136910,7 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
136894
136910
  success: false
136895
136911
  };
136896
136912
  } finally {
136897
- console.info(
136898
- chalk2.dim(
136899
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
136900
- )
136901
- );
136913
+ stopwatch();
136902
136914
  }
136903
136915
  };
136904
136916
 
@@ -136975,9 +136987,10 @@ function defaultConfig({
136975
136987
  outExtension
136976
136988
  };
136977
136989
  }
136978
- function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig, additionalEntryPoints, platform, ...rest }) {
136990
+ function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig, platform, ...rest }) {
136979
136991
  return getConfigFn({
136980
136992
  ...rest,
136993
+ additionalEntryPoints: [],
136981
136994
  outDir: outputPath,
136982
136995
  tsconfig: tsConfig,
136983
136996
  workspaceRoot,