@storm-software/workspace-tools 1.43.0 → 1.43.1

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.
@@ -19603,14 +19603,14 @@ var require_templates = __commonJS({
19603
19603
  }
19604
19604
  return results;
19605
19605
  }
19606
- function buildStyle(chalk3, styles) {
19606
+ function buildStyle(chalk2, styles) {
19607
19607
  const enabled = {};
19608
19608
  for (const layer of styles) {
19609
19609
  for (const style of layer.styles) {
19610
19610
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
19611
19611
  }
19612
19612
  }
19613
- let current = chalk3;
19613
+ let current = chalk2;
19614
19614
  for (const [styleName, styles2] of Object.entries(enabled)) {
19615
19615
  if (!Array.isArray(styles2)) {
19616
19616
  continue;
@@ -19622,7 +19622,7 @@ var require_templates = __commonJS({
19622
19622
  }
19623
19623
  return current;
19624
19624
  }
19625
- module2.exports = (chalk3, temporary) => {
19625
+ module2.exports = (chalk2, temporary) => {
19626
19626
  const styles = [];
19627
19627
  const chunks = [];
19628
19628
  let chunk = [];
@@ -19632,13 +19632,13 @@ var require_templates = __commonJS({
19632
19632
  } else if (style) {
19633
19633
  const string = chunk.join("");
19634
19634
  chunk = [];
19635
- chunks.push(styles.length === 0 ? string : buildStyle(chalk3, styles)(string));
19635
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
19636
19636
  styles.push({ inverse, styles: parseStyle(style) });
19637
19637
  } else if (close) {
19638
19638
  if (styles.length === 0) {
19639
19639
  throw new Error("Found extraneous } in Chalk template literal");
19640
19640
  }
19641
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
19641
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
19642
19642
  chunk = [];
19643
19643
  styles.pop();
19644
19644
  } else {
@@ -19686,16 +19686,16 @@ var require_source = __commonJS({
19686
19686
  }
19687
19687
  };
19688
19688
  var chalkFactory = (options) => {
19689
- const chalk4 = {};
19690
- applyOptions(chalk4, options);
19691
- chalk4.template = (...arguments_) => chalkTag(chalk4.template, ...arguments_);
19692
- Object.setPrototypeOf(chalk4, Chalk.prototype);
19693
- Object.setPrototypeOf(chalk4.template, chalk4);
19694
- chalk4.template.constructor = () => {
19689
+ const chalk3 = {};
19690
+ applyOptions(chalk3, options);
19691
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
19692
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
19693
+ Object.setPrototypeOf(chalk3.template, chalk3);
19694
+ chalk3.template.constructor = () => {
19695
19695
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
19696
19696
  };
19697
- chalk4.template.Instance = ChalkClass;
19698
- return chalk4.template;
19697
+ chalk3.template.Instance = ChalkClass;
19698
+ return chalk3.template;
19699
19699
  };
19700
19700
  function Chalk(options) {
19701
19701
  return chalkFactory(options);
@@ -19806,7 +19806,7 @@ var require_source = __commonJS({
19806
19806
  return openAll + string + closeAll;
19807
19807
  };
19808
19808
  var template;
19809
- var chalkTag = (chalk4, ...strings) => {
19809
+ var chalkTag = (chalk3, ...strings) => {
19810
19810
  const [firstString] = strings;
19811
19811
  if (!isArray(firstString) || !isArray(firstString.raw)) {
19812
19812
  return strings.join(" ");
@@ -19822,14 +19822,14 @@ var require_source = __commonJS({
19822
19822
  if (template === void 0) {
19823
19823
  template = require_templates();
19824
19824
  }
19825
- return template(chalk4, parts.join(""));
19825
+ return template(chalk3, parts.join(""));
19826
19826
  };
19827
19827
  Object.defineProperties(Chalk.prototype, styles);
19828
- var chalk3 = Chalk();
19829
- chalk3.supportsColor = stdoutColor;
19830
- chalk3.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
19831
- chalk3.stderr.supportsColor = stderrColor;
19832
- module2.exports = chalk3;
19828
+ var chalk2 = Chalk();
19829
+ chalk2.supportsColor = stdoutColor;
19830
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
19831
+ chalk2.stderr.supportsColor = stderrColor;
19832
+ module2.exports = chalk2;
19833
19833
  }
19834
19834
  });
19835
19835
 
@@ -28499,16 +28499,16 @@ var require_template2 = __commonJS({
28499
28499
  "node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/register/template.js"(exports, module2) {
28500
28500
  var fs = require("fs");
28501
28501
  var _template = require_template();
28502
- var chalk3 = require_source();
28502
+ var chalk2 = require_source();
28503
28503
  var GroupMessages = require_groupMessages();
28504
28504
  var REGISTER_TEMPLATE_DEPRECATION_WARNINGS = GroupMessages.GROUP.RegisterTemplateDeprecationWarnings;
28505
28505
  function registerTemplate(options) {
28506
28506
  if (typeof options.name !== "string")
28507
- throw new Error("Template name must be a string: " + chalk3.red(JSON.stringify(options.name)));
28507
+ throw new Error("Template name must be a string: " + chalk2.red(JSON.stringify(options.name)));
28508
28508
  if (typeof options.template !== "string")
28509
- throw new Error("Template path must be a string: " + chalk3.red(JSON.stringify(options.template)));
28509
+ throw new Error("Template path must be a string: " + chalk2.red(JSON.stringify(options.template)));
28510
28510
  if (!fs.existsSync(options.template))
28511
- throw new Error("Can't find template: " + chalk3.red(JSON.stringify(options.template)));
28511
+ throw new Error("Can't find template: " + chalk2.red(JSON.stringify(options.template)));
28512
28512
  GroupMessages.add(
28513
28513
  REGISTER_TEMPLATE_DEPRECATION_WARNINGS,
28514
28514
  `${options.name}`
@@ -29207,7 +29207,7 @@ var require_buildFile = __commonJS({
29207
29207
  "node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/buildFile.js"(exports, module2) {
29208
29208
  var path = require("path");
29209
29209
  var fs = require_lib();
29210
- var chalk3 = require_source();
29210
+ var chalk2 = require_source();
29211
29211
  var filterProperties = require_filterProperties();
29212
29212
  var GroupMessages = require_groupMessages();
29213
29213
  var createFormatArgs = require_createFormatArgs();
@@ -29237,7 +29237,7 @@ var require_buildFile = __commonJS({
29237
29237
  });
29238
29238
  if (filteredProperties.hasOwnProperty("properties") && Object.keys(filteredProperties.properties).length === 0 && filteredProperties.properties.constructor === Object) {
29239
29239
  let warnNoFile = `No properties for ${destination}. File not created.`;
29240
- console.log(chalk3.keyword("darkorange")(warnNoFile));
29240
+ console.log(chalk2.keyword("darkorange")(warnNoFile));
29241
29241
  return null;
29242
29242
  }
29243
29243
  var nameCollisionObj = {};
@@ -29253,13 +29253,13 @@ var require_buildFile = __commonJS({
29253
29253
  Object.keys(nameCollisionObj).forEach((propertyName) => {
29254
29254
  if (nameCollisionObj[propertyName].length > 1) {
29255
29255
  let collisions = nameCollisionObj[propertyName].map((properties) => {
29256
- let propertyPathText = chalk3.keyword("orangered")(properties.path.join("."));
29257
- let valueText = chalk3.keyword("darkorange")(properties.value);
29256
+ let propertyPathText = chalk2.keyword("orangered")(properties.path.join("."));
29257
+ let valueText = chalk2.keyword("darkorange")(properties.value);
29258
29258
  return propertyPathText + " " + valueText;
29259
29259
  }).join("\n ");
29260
29260
  GroupMessages.add(
29261
29261
  PROPERTY_NAME_COLLISION_WARNINGS,
29262
- `Output name ${chalk3.keyword("orangered").bold(propertyName)} was generated by:
29262
+ `Output name ${chalk2.keyword("orangered").bold(propertyName)} was generated by:
29263
29263
  ${collisions}`
29264
29264
  );
29265
29265
  }
@@ -29272,13 +29272,13 @@ var require_buildFile = __commonJS({
29272
29272
  }), platform, file));
29273
29273
  let filteredReferencesCount = GroupMessages.count(GroupMessages.GROUP.FilteredOutputReferences);
29274
29274
  if ((nested || propertyNamesCollisionCount === 0) && filteredReferencesCount === 0) {
29275
- console.log(chalk3.bold.green(`\u2714\uFE0E ${fullDestination}`));
29275
+ console.log(chalk2.bold.green(`\u2714\uFE0E ${fullDestination}`));
29276
29276
  } else {
29277
29277
  console.log(`\u26A0\uFE0F ${fullDestination}`);
29278
29278
  if (propertyNamesCollisionCount > 0) {
29279
29279
  let propertyNamesCollisionWarnings = GroupMessages.fetchMessages(PROPERTY_NAME_COLLISION_WARNINGS).join("\n ");
29280
- let title = `While building ${chalk3.keyword("orangered").bold(destination)}, token collisions were found; output may be unexpected.`;
29281
- let help = chalk3.keyword("orange")([
29280
+ let title = `While building ${chalk2.keyword("orangered").bold(destination)}, token collisions were found; output may be unexpected.`;
29281
+ let help = chalk2.keyword("orange")([
29282
29282
  "This many-to-one issue is usually caused by some combination of:",
29283
29283
  "* conflicting or similar paths/names in property definitions",
29284
29284
  "* platform transforms/transformGroups affecting names, especially when removing specificity",
@@ -29287,18 +29287,18 @@ var require_buildFile = __commonJS({
29287
29287
  let warn = `${title}
29288
29288
  ${propertyNamesCollisionWarnings}
29289
29289
  ${help}`;
29290
- console.log(chalk3.keyword("darkorange").bold(warn));
29290
+ console.log(chalk2.keyword("darkorange").bold(warn));
29291
29291
  }
29292
29292
  if (filteredReferencesCount > 0) {
29293
29293
  let filteredReferencesWarnings = GroupMessages.flush(GroupMessages.GROUP.FilteredOutputReferences).join("\n ");
29294
- let title = `While building ${chalk3.keyword("orangered").bold(destination)}, filtered out token references were found; output may be unexpected. Here are the references that are used but not defined in the file`;
29295
- let help = chalk3.keyword("orange")([
29294
+ let title = `While building ${chalk2.keyword("orangered").bold(destination)}, filtered out token references were found; output may be unexpected. Here are the references that are used but not defined in the file`;
29295
+ let help = chalk2.keyword("orange")([
29296
29296
  "This is caused when combining a filter and `outputReferences`."
29297
29297
  ].join("\n "));
29298
29298
  let warn = `${title}
29299
29299
  ${filteredReferencesWarnings}
29300
29300
  ${help}`;
29301
- console.log(chalk3.keyword("darkorange").bold(warn));
29301
+ console.log(chalk2.keyword("darkorange").bold(warn));
29302
29302
  }
29303
29303
  }
29304
29304
  }
@@ -29465,7 +29465,7 @@ var require_buildAllPlatforms = __commonJS({
29465
29465
  var require_cleanFile = __commonJS({
29466
29466
  "node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/cleanFile.js"(exports, module2) {
29467
29467
  var fs = require_lib();
29468
- var chalk3 = require_source();
29468
+ var chalk2 = require_source();
29469
29469
  function cleanFile(file = {}, platform = {}) {
29470
29470
  var { destination } = file;
29471
29471
  if (typeof destination !== "string")
@@ -29474,11 +29474,11 @@ var require_cleanFile = __commonJS({
29474
29474
  destination = platform.buildPath + destination;
29475
29475
  }
29476
29476
  if (!fs.existsSync(destination)) {
29477
- console.log(chalk3.bold.red("!") + " " + destination + ", does not exist");
29477
+ console.log(chalk2.bold.red("!") + " " + destination + ", does not exist");
29478
29478
  return;
29479
29479
  }
29480
29480
  fs.unlinkSync(destination);
29481
- console.log(chalk3.bold.red("-") + " " + destination);
29481
+ console.log(chalk2.bold.red("-") + " " + destination);
29482
29482
  }
29483
29483
  module2.exports = cleanFile;
29484
29484
  }
@@ -29509,7 +29509,7 @@ var require_cleanDir = __commonJS({
29509
29509
  "node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/cleanDir.js"(exports, module2) {
29510
29510
  var path = require("path");
29511
29511
  var fs = require_lib();
29512
- var chalk3 = require_source();
29512
+ var chalk2 = require_source();
29513
29513
  function cleanDir(file = {}, platform = {}) {
29514
29514
  var { destination } = file;
29515
29515
  if (typeof destination !== "string")
@@ -29521,7 +29521,7 @@ var require_cleanDir = __commonJS({
29521
29521
  while (dirname) {
29522
29522
  if (fs.existsSync(dirname)) {
29523
29523
  if (fs.readdirSync(dirname).length === 0) {
29524
- console.log(chalk3.bold.red("-") + " " + dirname);
29524
+ console.log(chalk2.bold.red("-") + " " + dirname);
29525
29525
  fs.rmdirSync(dirname);
29526
29526
  } else {
29527
29527
  break;
@@ -37595,7 +37595,7 @@ ${collisions}
37595
37595
  // node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/index.js
37596
37596
  var require_style_dictionary = __commonJS({
37597
37597
  "node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/index.js"(exports, module2) {
37598
- var chalk3 = require_source();
37598
+ var chalk2 = require_source();
37599
37599
  var GroupMessages = require_groupMessages();
37600
37600
  var TEMPLATE_DEPRECATION_WARNINGS = GroupMessages.GROUP.TemplateDeprecationWarnings;
37601
37601
  var REGISTER_TEMPLATE_DEPRECATION_WARNINGS = GroupMessages.GROUP.RegisterTemplateDeprecationWarnings;
@@ -37637,7 +37637,7 @@ var require_style_dictionary = __commonJS({
37637
37637
  process.on("exit", function() {
37638
37638
  if (GroupMessages.count(TEMPLATE_DEPRECATION_WARNINGS) > 0) {
37639
37639
  var template_warnings = GroupMessages.flush(TEMPLATE_DEPRECATION_WARNINGS).join("\n ");
37640
- console.log(chalk3.bold.yellow(`
37640
+ console.log(chalk2.bold.yellow(`
37641
37641
  \u26A0\uFE0F DEPRECATION WARNING \uFE0F\uFE0F\uFE0F\uFE0F\uFE0F\u26A0\uFE0F
37642
37642
  Templates are deprecated and will be removed, please update your config to use formats.
37643
37643
  This is an example of how to update your config.json:
@@ -37660,7 +37660,7 @@ Your current config uses the following templates:
37660
37660
  }
37661
37661
  if (GroupMessages.count(REGISTER_TEMPLATE_DEPRECATION_WARNINGS) > 0) {
37662
37662
  var register_template_warnings = GroupMessages.flush(REGISTER_TEMPLATE_DEPRECATION_WARNINGS).join("\n ");
37663
- console.log(chalk3.bold.yellow(`
37663
+ console.log(chalk2.bold.yellow(`
37664
37664
  \u26A0\uFE0F DEPRECATION WARNING \uFE0F\uFE0F\uFE0F\uFE0F\uFE0F\u26A0\uFE0F
37665
37665
  The registerTemplate method is deprecated and will be removed, please
37666
37666
  migrate to registerFormat. You can use any templating engine you would
@@ -37691,7 +37691,7 @@ custom templates:
37691
37691
  }
37692
37692
  if (GroupMessages.count(SASS_MAP_FORMAT_DEPRECATION_WARNINGS) > 0) {
37693
37693
  var sass_map_format_warnings = GroupMessages.flush(SASS_MAP_FORMAT_DEPRECATION_WARNINGS).join("\n ");
37694
- console.log(chalk3.bold.cyan(`
37694
+ console.log(chalk2.bold.cyan(`
37695
37695
  \u{1F514} NOTICE \u{1F514}
37696
37696
  The formats 'sass/map-***' have been renamed to 'scss/map-***', please update your config.
37697
37697
  In the future 'sass/map-***' formats may output actual Sass instead of SCSS, which may break your current configuration.
@@ -56614,14 +56614,14 @@ var require_templates2 = __commonJS({
56614
56614
  }
56615
56615
  return results;
56616
56616
  }
56617
- function buildStyle(chalk3, styles) {
56617
+ function buildStyle(chalk2, styles) {
56618
56618
  const enabled = {};
56619
56619
  for (const layer of styles) {
56620
56620
  for (const style of layer.styles) {
56621
56621
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
56622
56622
  }
56623
56623
  }
56624
- let current = chalk3;
56624
+ let current = chalk2;
56625
56625
  for (const styleName of Object.keys(enabled)) {
56626
56626
  if (Array.isArray(enabled[styleName])) {
56627
56627
  if (!(styleName in current)) {
@@ -56636,7 +56636,7 @@ var require_templates2 = __commonJS({
56636
56636
  }
56637
56637
  return current;
56638
56638
  }
56639
- module2.exports = (chalk3, tmp) => {
56639
+ module2.exports = (chalk2, tmp) => {
56640
56640
  const styles = [];
56641
56641
  const chunks = [];
56642
56642
  let chunk = [];
@@ -56646,13 +56646,13 @@ var require_templates2 = __commonJS({
56646
56646
  } else if (style) {
56647
56647
  const str = chunk.join("");
56648
56648
  chunk = [];
56649
- chunks.push(styles.length === 0 ? str : buildStyle(chalk3, styles)(str));
56649
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk2, styles)(str));
56650
56650
  styles.push({ inverse, styles: parseStyle(style) });
56651
56651
  } else if (close) {
56652
56652
  if (styles.length === 0) {
56653
56653
  throw new Error("Found extraneous } in Chalk template literal");
56654
56654
  }
56655
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
56655
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
56656
56656
  chunk = [];
56657
56657
  styles.pop();
56658
56658
  } else {
@@ -56689,16 +56689,16 @@ var require_chalk = __commonJS({
56689
56689
  }
56690
56690
  function Chalk(options) {
56691
56691
  if (!this || !(this instanceof Chalk) || this.template) {
56692
- const chalk3 = {};
56693
- applyOptions(chalk3, options);
56694
- chalk3.template = function() {
56692
+ const chalk2 = {};
56693
+ applyOptions(chalk2, options);
56694
+ chalk2.template = function() {
56695
56695
  const args = [].slice.call(arguments);
56696
- return chalkTag.apply(null, [chalk3.template].concat(args));
56696
+ return chalkTag.apply(null, [chalk2.template].concat(args));
56697
56697
  };
56698
- Object.setPrototypeOf(chalk3, Chalk.prototype);
56699
- Object.setPrototypeOf(chalk3.template, chalk3);
56700
- chalk3.template.constructor = Chalk;
56701
- return chalk3.template;
56698
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
56699
+ Object.setPrototypeOf(chalk2.template, chalk2);
56700
+ chalk2.template.constructor = Chalk;
56701
+ return chalk2.template;
56702
56702
  }
56703
56703
  applyOptions(this, options);
56704
56704
  }
@@ -56817,7 +56817,7 @@ var require_chalk = __commonJS({
56817
56817
  ansiStyles.dim.open = originalDim;
56818
56818
  return str;
56819
56819
  }
56820
- function chalkTag(chalk3, strings) {
56820
+ function chalkTag(chalk2, strings) {
56821
56821
  if (!Array.isArray(strings)) {
56822
56822
  return [].slice.call(arguments, 1).join(" ");
56823
56823
  }
@@ -56827,7 +56827,7 @@ var require_chalk = __commonJS({
56827
56827
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
56828
56828
  parts.push(String(strings.raw[i]));
56829
56829
  }
56830
- return template(chalk3, parts.join(""));
56830
+ return template(chalk2, parts.join(""));
56831
56831
  }
56832
56832
  Object.defineProperties(Chalk.prototype, styles);
56833
56833
  module2.exports = Chalk();
@@ -56873,17 +56873,17 @@ var require_lib7 = __commonJS({
56873
56873
  return n.default = e, t && t.set(e, n), n;
56874
56874
  }
56875
56875
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
56876
- function getDefs(chalk3) {
56876
+ function getDefs(chalk2) {
56877
56877
  return {
56878
- keyword: chalk3.cyan,
56879
- capitalized: chalk3.yellow,
56880
- jsxIdentifier: chalk3.yellow,
56881
- punctuator: chalk3.yellow,
56882
- number: chalk3.magenta,
56883
- string: chalk3.green,
56884
- regex: chalk3.magenta,
56885
- comment: chalk3.grey,
56886
- invalid: chalk3.white.bgRed.bold
56878
+ keyword: chalk2.cyan,
56879
+ capitalized: chalk2.yellow,
56880
+ jsxIdentifier: chalk2.yellow,
56881
+ punctuator: chalk2.yellow,
56882
+ number: chalk2.magenta,
56883
+ string: chalk2.green,
56884
+ regex: chalk2.magenta,
56885
+ comment: chalk2.grey,
56886
+ invalid: chalk2.white.bgRed.bold
56887
56887
  };
56888
56888
  }
56889
56889
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -57014,11 +57014,11 @@ var require_lib8 = __commonJS({
57014
57014
  return _chalk.default;
57015
57015
  }
57016
57016
  var deprecationWarningShown = false;
57017
- function getDefs(chalk3) {
57017
+ function getDefs(chalk2) {
57018
57018
  return {
57019
- gutter: chalk3.grey,
57020
- marker: chalk3.red.bold,
57021
- message: chalk3.red.bold
57019
+ gutter: chalk2.grey,
57020
+ marker: chalk2.red.bold,
57021
+ message: chalk2.red.bold
57022
57022
  };
57023
57023
  }
57024
57024
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -57080,8 +57080,8 @@ var require_lib8 = __commonJS({
57080
57080
  }
57081
57081
  function codeFrameColumns(rawLines, loc, opts = {}) {
57082
57082
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
57083
- const chalk3 = getChalk(opts.forceColor);
57084
- const defs = getDefs(chalk3);
57083
+ const chalk2 = getChalk(opts.forceColor);
57084
+ const defs = getDefs(chalk2);
57085
57085
  const maybeHighlight = (chalkFn, string) => {
57086
57086
  return highlighted ? chalkFn(string) : string;
57087
57087
  };
@@ -57120,7 +57120,7 @@ var require_lib8 = __commonJS({
57120
57120
  ${frame}`;
57121
57121
  }
57122
57122
  if (highlighted) {
57123
- return chalk3.reset(frame);
57123
+ return chalk2.reset(frame);
57124
57124
  } else {
57125
57125
  return frame;
57126
57126
  }
@@ -65294,7 +65294,7 @@ var getLogLevelLabel = (logLevel) => {
65294
65294
  var chalk = __toESM(require_source(), 1);
65295
65295
  var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
65296
65296
  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)) {
65297
- return (message) => {
65297
+ return (_) => {
65298
65298
  };
65299
65299
  }
65300
65300
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
@@ -65372,72 +65372,18 @@ var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
65372
65372
  var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
65373
65373
  var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
65374
65374
  var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
65375
-
65376
- // packages/config-tools/src/env/get-env.ts
65377
- var getExtensionEnv = (extensionName) => {
65378
- const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
65379
- return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
65380
- const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
65381
- if (name) {
65382
- ret[name] = process.env[key];
65383
- }
65384
- return ret;
65385
- }, {});
65386
- };
65387
- var getConfigEnv = () => {
65388
- const prefix = "STORM_";
65389
- let config = {
65390
- name: process.env[`${prefix}NAME`],
65391
- namespace: process.env[`${prefix}NAMESPACE`],
65392
- owner: process.env[`${prefix}OWNER`],
65393
- worker: process.env[`${prefix}WORKER`],
65394
- organization: process.env[`${prefix}ORGANIZATION`],
65395
- packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
65396
- license: process.env[`${prefix}LICENSE`],
65397
- homepage: process.env[`${prefix}HOMEPAGE`],
65398
- timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
65399
- locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
65400
- configFile: process.env[`${prefix}CONFIG_FILE`],
65401
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
65402
- packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
65403
- buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
65404
- runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
65405
- runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
65406
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
65407
- ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
65408
- colors: {
65409
- primary: process.env[`${prefix}COLOR_PRIMARY`],
65410
- background: process.env[`${prefix}COLOR_BACKGROUND`],
65411
- success: process.env[`${prefix}COLOR_SUCCESS`],
65412
- info: process.env[`${prefix}COLOR_INFO`],
65413
- warning: process.env[`${prefix}COLOR_WARNING`],
65414
- error: process.env[`${prefix}COLOR_ERROR`],
65415
- fatal: process.env[`${prefix}COLOR_FATAL`]
65416
- },
65417
- repository: process.env[`${prefix}REPOSITORY`],
65418
- branch: process.env[`${prefix}BRANCH`],
65419
- preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
65420
- 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,
65421
- extensions: {}
65375
+ var getStopwatch = (name) => {
65376
+ const start = process.hrtime();
65377
+ return () => {
65378
+ const end = process.hrtime(start);
65379
+ console.info(
65380
+ chalk.dim(
65381
+ `\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
65382
+ end[0] * 1e3 + end[1] / 1e6
65383
+ )}ms to complete`
65384
+ )
65385
+ );
65422
65386
  };
65423
- const serializedConfig = process.env[`${prefix}CONFIG`];
65424
- if (serializedConfig) {
65425
- const parsed = JSON.parse(serializedConfig);
65426
- config = {
65427
- ...config,
65428
- ...parsed,
65429
- colors: { ...config.colors, ...parsed.colors },
65430
- extensions: { ...config.extensions, ...parsed.extensions }
65431
- };
65432
- }
65433
- const extensionPrefix = `${prefix}EXTENSION_`;
65434
- return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
65435
- 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("");
65436
- if (extensionName) {
65437
- ret.extensions[extensionName] = getExtensionEnv(extensionName);
65438
- }
65439
- return ret;
65440
- }, config);
65441
65387
  };
65442
65388
 
65443
65389
  // packages/config-tools/src/env/set-env.ts
@@ -65574,8 +65520,82 @@ var setConfigEnv = (config) => {
65574
65520
  }
65575
65521
  };
65576
65522
 
65577
- // packages/workspace-tools/src/base/base-executor.ts
65578
- var chalk2 = __toESM(require_source());
65523
+ // packages/config-tools/src/utilities/prepare-workspace.ts
65524
+ var prepareWorkspace = async () => {
65525
+ const _STORM_CONFIG = getDefaultConfig({
65526
+ ...await getConfigFile(),
65527
+ ...getConfigEnv()
65528
+ });
65529
+ setConfigEnv(_STORM_CONFIG);
65530
+ return _STORM_CONFIG;
65531
+ };
65532
+
65533
+ // packages/config-tools/src/env/get-env.ts
65534
+ var getExtensionEnv = (extensionName) => {
65535
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
65536
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
65537
+ const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
65538
+ if (name) {
65539
+ ret[name] = process.env[key];
65540
+ }
65541
+ return ret;
65542
+ }, {});
65543
+ };
65544
+ var getConfigEnv = () => {
65545
+ const prefix = "STORM_";
65546
+ let config = {
65547
+ name: process.env[`${prefix}NAME`],
65548
+ namespace: process.env[`${prefix}NAMESPACE`],
65549
+ owner: process.env[`${prefix}OWNER`],
65550
+ worker: process.env[`${prefix}WORKER`],
65551
+ organization: process.env[`${prefix}ORGANIZATION`],
65552
+ packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
65553
+ license: process.env[`${prefix}LICENSE`],
65554
+ homepage: process.env[`${prefix}HOMEPAGE`],
65555
+ timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
65556
+ locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
65557
+ configFile: process.env[`${prefix}CONFIG_FILE`],
65558
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
65559
+ packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
65560
+ buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
65561
+ runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
65562
+ runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
65563
+ env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
65564
+ ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
65565
+ colors: {
65566
+ primary: process.env[`${prefix}COLOR_PRIMARY`],
65567
+ background: process.env[`${prefix}COLOR_BACKGROUND`],
65568
+ success: process.env[`${prefix}COLOR_SUCCESS`],
65569
+ info: process.env[`${prefix}COLOR_INFO`],
65570
+ warning: process.env[`${prefix}COLOR_WARNING`],
65571
+ error: process.env[`${prefix}COLOR_ERROR`],
65572
+ fatal: process.env[`${prefix}COLOR_FATAL`]
65573
+ },
65574
+ repository: process.env[`${prefix}REPOSITORY`],
65575
+ branch: process.env[`${prefix}BRANCH`],
65576
+ preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
65577
+ 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,
65578
+ extensions: {}
65579
+ };
65580
+ const serializedConfig = process.env[`${prefix}CONFIG`];
65581
+ if (serializedConfig) {
65582
+ const parsed = JSON.parse(serializedConfig);
65583
+ config = {
65584
+ ...config,
65585
+ ...parsed,
65586
+ colors: { ...config.colors, ...parsed.colors },
65587
+ extensions: { ...config.extensions, ...parsed.extensions }
65588
+ };
65589
+ }
65590
+ const extensionPrefix = `${prefix}EXTENSION_`;
65591
+ return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
65592
+ 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("");
65593
+ if (extensionName) {
65594
+ ret.extensions[extensionName] = getExtensionEnv(extensionName);
65595
+ }
65596
+ return ret;
65597
+ }, config);
65598
+ };
65579
65599
 
65580
65600
  // packages/workspace-tools/src/utils/get-workspace-root.ts
65581
65601
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
@@ -65664,7 +65684,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
65664
65684
 
65665
65685
  // packages/workspace-tools/src/base/base-executor.ts
65666
65686
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
65667
- const startTime = Date.now();
65687
+ const stopwatch = getStopwatch(name);
65668
65688
  let options = _options;
65669
65689
  let config;
65670
65690
  try {
@@ -65689,11 +65709,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
65689
65709
  - projectName: ${projectName}
65690
65710
  `
65691
65711
  );
65692
- config = getDefaultConfig({
65693
- ...await getConfigFile(),
65694
- ...getConfigEnv()
65695
- });
65696
- setConfigEnv(config);
65712
+ config = await prepareWorkspace();
65697
65713
  writeTrace(
65698
65714
  config,
65699
65715
  `Loaded Storm config into env:
@@ -65759,11 +65775,7 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
65759
65775
  success: false
65760
65776
  };
65761
65777
  } finally {
65762
- console.info(
65763
- chalk2.dim(
65764
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
65765
- )
65766
- );
65778
+ stopwatch();
65767
65779
  }
65768
65780
  };
65769
65781