@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.
package/src/base/index.js CHANGED
@@ -1974,14 +1974,14 @@ var require_templates = __commonJS({
1974
1974
  }
1975
1975
  return results;
1976
1976
  }
1977
- function buildStyle(chalk4, styles) {
1977
+ function buildStyle(chalk2, styles) {
1978
1978
  const enabled = {};
1979
1979
  for (const layer of styles) {
1980
1980
  for (const style of layer.styles) {
1981
1981
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
1982
1982
  }
1983
1983
  }
1984
- let current = chalk4;
1984
+ let current = chalk2;
1985
1985
  for (const styleName of Object.keys(enabled)) {
1986
1986
  if (Array.isArray(enabled[styleName])) {
1987
1987
  if (!(styleName in current)) {
@@ -1996,7 +1996,7 @@ var require_templates = __commonJS({
1996
1996
  }
1997
1997
  return current;
1998
1998
  }
1999
- module2.exports = (chalk4, tmp) => {
1999
+ module2.exports = (chalk2, tmp) => {
2000
2000
  const styles = [];
2001
2001
  const chunks = [];
2002
2002
  let chunk = [];
@@ -2006,13 +2006,13 @@ var require_templates = __commonJS({
2006
2006
  } else if (style) {
2007
2007
  const str = chunk.join("");
2008
2008
  chunk = [];
2009
- chunks.push(styles.length === 0 ? str : buildStyle(chalk4, styles)(str));
2009
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk2, styles)(str));
2010
2010
  styles.push({ inverse, styles: parseStyle(style) });
2011
2011
  } else if (close) {
2012
2012
  if (styles.length === 0) {
2013
2013
  throw new Error("Found extraneous } in Chalk template literal");
2014
2014
  }
2015
- chunks.push(buildStyle(chalk4, styles)(chunk.join("")));
2015
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
2016
2016
  chunk = [];
2017
2017
  styles.pop();
2018
2018
  } else {
@@ -2049,16 +2049,16 @@ var require_chalk = __commonJS({
2049
2049
  }
2050
2050
  function Chalk(options) {
2051
2051
  if (!this || !(this instanceof Chalk) || this.template) {
2052
- const chalk4 = {};
2053
- applyOptions(chalk4, options);
2054
- chalk4.template = function() {
2052
+ const chalk2 = {};
2053
+ applyOptions(chalk2, options);
2054
+ chalk2.template = function() {
2055
2055
  const args = [].slice.call(arguments);
2056
- return chalkTag.apply(null, [chalk4.template].concat(args));
2056
+ return chalkTag.apply(null, [chalk2.template].concat(args));
2057
2057
  };
2058
- Object.setPrototypeOf(chalk4, Chalk.prototype);
2059
- Object.setPrototypeOf(chalk4.template, chalk4);
2060
- chalk4.template.constructor = Chalk;
2061
- return chalk4.template;
2058
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
2059
+ Object.setPrototypeOf(chalk2.template, chalk2);
2060
+ chalk2.template.constructor = Chalk;
2061
+ return chalk2.template;
2062
2062
  }
2063
2063
  applyOptions(this, options);
2064
2064
  }
@@ -2177,7 +2177,7 @@ var require_chalk = __commonJS({
2177
2177
  ansiStyles.dim.open = originalDim;
2178
2178
  return str;
2179
2179
  }
2180
- function chalkTag(chalk4, strings) {
2180
+ function chalkTag(chalk2, strings) {
2181
2181
  if (!Array.isArray(strings)) {
2182
2182
  return [].slice.call(arguments, 1).join(" ");
2183
2183
  }
@@ -2187,7 +2187,7 @@ var require_chalk = __commonJS({
2187
2187
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
2188
2188
  parts.push(String(strings.raw[i]));
2189
2189
  }
2190
- return template(chalk4, parts.join(""));
2190
+ return template(chalk2, parts.join(""));
2191
2191
  }
2192
2192
  Object.defineProperties(Chalk.prototype, styles);
2193
2193
  module2.exports = Chalk();
@@ -2233,17 +2233,17 @@ var require_lib2 = __commonJS({
2233
2233
  return n.default = e, t && t.set(e, n), n;
2234
2234
  }
2235
2235
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
2236
- function getDefs(chalk4) {
2236
+ function getDefs(chalk2) {
2237
2237
  return {
2238
- keyword: chalk4.cyan,
2239
- capitalized: chalk4.yellow,
2240
- jsxIdentifier: chalk4.yellow,
2241
- punctuator: chalk4.yellow,
2242
- number: chalk4.magenta,
2243
- string: chalk4.green,
2244
- regex: chalk4.magenta,
2245
- comment: chalk4.grey,
2246
- invalid: chalk4.white.bgRed.bold
2238
+ keyword: chalk2.cyan,
2239
+ capitalized: chalk2.yellow,
2240
+ jsxIdentifier: chalk2.yellow,
2241
+ punctuator: chalk2.yellow,
2242
+ number: chalk2.magenta,
2243
+ string: chalk2.green,
2244
+ regex: chalk2.magenta,
2245
+ comment: chalk2.grey,
2246
+ invalid: chalk2.white.bgRed.bold
2247
2247
  };
2248
2248
  }
2249
2249
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -2374,11 +2374,11 @@ var require_lib3 = __commonJS({
2374
2374
  return _chalk.default;
2375
2375
  }
2376
2376
  var deprecationWarningShown = false;
2377
- function getDefs(chalk4) {
2377
+ function getDefs(chalk2) {
2378
2378
  return {
2379
- gutter: chalk4.grey,
2380
- marker: chalk4.red.bold,
2381
- message: chalk4.red.bold
2379
+ gutter: chalk2.grey,
2380
+ marker: chalk2.red.bold,
2381
+ message: chalk2.red.bold
2382
2382
  };
2383
2383
  }
2384
2384
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -2440,8 +2440,8 @@ var require_lib3 = __commonJS({
2440
2440
  }
2441
2441
  function codeFrameColumns(rawLines, loc, opts = {}) {
2442
2442
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
2443
- const chalk4 = getChalk(opts.forceColor);
2444
- const defs = getDefs(chalk4);
2443
+ const chalk2 = getChalk(opts.forceColor);
2444
+ const defs = getDefs(chalk2);
2445
2445
  const maybeHighlight = (chalkFn, string) => {
2446
2446
  return highlighted ? chalkFn(string) : string;
2447
2447
  };
@@ -2480,7 +2480,7 @@ var require_lib3 = __commonJS({
2480
2480
  ${frame}`;
2481
2481
  }
2482
2482
  if (highlighted) {
2483
- return chalk4.reset(frame);
2483
+ return chalk2.reset(frame);
2484
2484
  } else {
2485
2485
  return frame;
2486
2486
  }
@@ -7794,14 +7794,14 @@ var require_templates2 = __commonJS({
7794
7794
  }
7795
7795
  return results;
7796
7796
  }
7797
- function buildStyle(chalk4, styles) {
7797
+ function buildStyle(chalk2, styles) {
7798
7798
  const enabled = {};
7799
7799
  for (const layer of styles) {
7800
7800
  for (const style of layer.styles) {
7801
7801
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
7802
7802
  }
7803
7803
  }
7804
- let current = chalk4;
7804
+ let current = chalk2;
7805
7805
  for (const [styleName, styles2] of Object.entries(enabled)) {
7806
7806
  if (!Array.isArray(styles2)) {
7807
7807
  continue;
@@ -7813,7 +7813,7 @@ var require_templates2 = __commonJS({
7813
7813
  }
7814
7814
  return current;
7815
7815
  }
7816
- module2.exports = (chalk4, temporary) => {
7816
+ module2.exports = (chalk2, temporary) => {
7817
7817
  const styles = [];
7818
7818
  const chunks = [];
7819
7819
  let chunk = [];
@@ -7823,13 +7823,13 @@ var require_templates2 = __commonJS({
7823
7823
  } else if (style) {
7824
7824
  const string = chunk.join("");
7825
7825
  chunk = [];
7826
- chunks.push(styles.length === 0 ? string : buildStyle(chalk4, styles)(string));
7826
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
7827
7827
  styles.push({ inverse, styles: parseStyle(style) });
7828
7828
  } else if (close) {
7829
7829
  if (styles.length === 0) {
7830
7830
  throw new Error("Found extraneous } in Chalk template literal");
7831
7831
  }
7832
- chunks.push(buildStyle(chalk4, styles)(chunk.join("")));
7832
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
7833
7833
  chunk = [];
7834
7834
  styles.pop();
7835
7835
  } else {
@@ -7877,16 +7877,16 @@ var require_source = __commonJS({
7877
7877
  }
7878
7878
  };
7879
7879
  var chalkFactory = (options) => {
7880
- const chalk5 = {};
7881
- applyOptions(chalk5, options);
7882
- chalk5.template = (...arguments_) => chalkTag(chalk5.template, ...arguments_);
7883
- Object.setPrototypeOf(chalk5, Chalk.prototype);
7884
- Object.setPrototypeOf(chalk5.template, chalk5);
7885
- chalk5.template.constructor = () => {
7880
+ const chalk3 = {};
7881
+ applyOptions(chalk3, options);
7882
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
7883
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
7884
+ Object.setPrototypeOf(chalk3.template, chalk3);
7885
+ chalk3.template.constructor = () => {
7886
7886
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
7887
7887
  };
7888
- chalk5.template.Instance = ChalkClass;
7889
- return chalk5.template;
7888
+ chalk3.template.Instance = ChalkClass;
7889
+ return chalk3.template;
7890
7890
  };
7891
7891
  function Chalk(options) {
7892
7892
  return chalkFactory(options);
@@ -7997,7 +7997,7 @@ var require_source = __commonJS({
7997
7997
  return openAll + string + closeAll;
7998
7998
  };
7999
7999
  var template;
8000
- var chalkTag = (chalk5, ...strings) => {
8000
+ var chalkTag = (chalk3, ...strings) => {
8001
8001
  const [firstString] = strings;
8002
8002
  if (!isArray(firstString) || !isArray(firstString.raw)) {
8003
8003
  return strings.join(" ");
@@ -8013,14 +8013,14 @@ var require_source = __commonJS({
8013
8013
  if (template === void 0) {
8014
8014
  template = require_templates2();
8015
8015
  }
8016
- return template(chalk5, parts.join(""));
8016
+ return template(chalk3, parts.join(""));
8017
8017
  };
8018
8018
  Object.defineProperties(Chalk.prototype, styles);
8019
- var chalk4 = Chalk();
8020
- chalk4.supportsColor = stdoutColor;
8021
- chalk4.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
8022
- chalk4.stderr.supportsColor = stderrColor;
8023
- module2.exports = chalk4;
8019
+ var chalk2 = Chalk();
8020
+ chalk2.supportsColor = stdoutColor;
8021
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
8022
+ chalk2.stderr.supportsColor = stderrColor;
8023
+ module2.exports = chalk2;
8024
8024
  }
8025
8025
  });
8026
8026
 
@@ -31283,20 +31283,20 @@ var require_highlight = __commonJS({
31283
31283
  Object.defineProperty(exports, "__esModule", { value: true });
31284
31284
  exports.highlight = void 0;
31285
31285
  var jsTokens = require_js_tokens();
31286
- var chalk4 = require_source();
31286
+ var chalk2 = require_source();
31287
31287
  var identifiers_1 = require_identifiers2();
31288
- function getDefs(chalk5) {
31288
+ function getDefs(chalk3) {
31289
31289
  return {
31290
- keyword: chalk5.cyan,
31291
- capitalized: chalk5.yellow,
31292
- jsx_tag: chalk5.yellow,
31293
- punctuator: chalk5.yellow,
31290
+ keyword: chalk3.cyan,
31291
+ capitalized: chalk3.yellow,
31292
+ jsx_tag: chalk3.yellow,
31293
+ punctuator: chalk3.yellow,
31294
31294
  // bracket: intentionally omitted.
31295
- number: chalk5.magenta,
31296
- string: chalk5.green,
31297
- regex: chalk5.magenta,
31298
- comment: chalk5.grey,
31299
- invalid: chalk5.white.bgRed.bold
31295
+ number: chalk3.magenta,
31296
+ string: chalk3.green,
31297
+ regex: chalk3.magenta,
31298
+ comment: chalk3.grey,
31299
+ invalid: chalk3.white.bgRed.bold
31300
31300
  };
31301
31301
  }
31302
31302
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -31336,7 +31336,7 @@ var require_highlight = __commonJS({
31336
31336
  });
31337
31337
  }
31338
31338
  function highlight(code) {
31339
- const defs = getDefs(chalk4);
31339
+ const defs = getDefs(chalk2);
31340
31340
  return highlightTokens(defs, code);
31341
31341
  }
31342
31342
  exports.highlight = highlight;
@@ -31449,7 +31449,7 @@ var require_run_type_check = __commonJS({
31449
31449
  "use strict";
31450
31450
  Object.defineProperty(exports, "__esModule", { value: true });
31451
31451
  exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
31452
- var chalk4 = require_source();
31452
+ var chalk2 = require_source();
31453
31453
  var path = require("path");
31454
31454
  var code_frames_1 = require("nx/src/utils/code-frames");
31455
31455
  var highlight_1 = require_highlight();
@@ -31529,17 +31529,17 @@ var require_run_type_check = __commonJS({
31529
31529
  const category = diagnostic.category;
31530
31530
  switch (category) {
31531
31531
  case ts.DiagnosticCategory.Warning: {
31532
- message += `${chalk4.yellow.bold("warning")} ${chalk4.gray(`TS${diagnostic.code}`)}: `;
31532
+ message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
31533
31533
  break;
31534
31534
  }
31535
31535
  case ts.DiagnosticCategory.Error: {
31536
- message += `${chalk4.red.bold("error")} ${chalk4.gray(`TS${diagnostic.code}`)}: `;
31536
+ message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
31537
31537
  break;
31538
31538
  }
31539
31539
  case ts.DiagnosticCategory.Suggestion:
31540
31540
  case ts.DiagnosticCategory.Message:
31541
31541
  default: {
31542
- message += `${chalk4.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
31542
+ message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
31543
31543
  break;
31544
31544
  }
31545
31545
  }
@@ -31549,7 +31549,7 @@ var require_run_type_check = __commonJS({
31549
31549
  const line = pos.line + 1;
31550
31550
  const column = pos.character + 1;
31551
31551
  const fileName = path.relative(workspaceRoot, diagnostic.file.fileName);
31552
- message = `${chalk4.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
31552
+ message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
31553
31553
  const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
31554
31554
  message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
31555
31555
  start: { line, column }
@@ -47378,13 +47378,13 @@ var getLogLevelLabel = (logLevel) => {
47378
47378
  var chalk = __toESM(require_source(), 1);
47379
47379
  var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47380
47380
  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)) {
47381
- return (message) => {
47381
+ return (_) => {
47382
47382
  };
47383
47383
  }
47384
47384
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
47385
47385
  return (message) => {
47386
47386
  console.error(
47387
- ` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").inverse("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
47387
+ ` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
47388
47388
  config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
47389
47389
  )(message)}
47390
47390
  `
@@ -47394,7 +47394,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47394
47394
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
47395
47395
  return (message) => {
47396
47396
  console.error(
47397
- ` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").inverse("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
47397
+ ` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
47398
47398
  config?.colors?.error ? config.colors.error : "#7d1a1a"
47399
47399
  )(message)}
47400
47400
  `
@@ -47404,7 +47404,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47404
47404
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
47405
47405
  return (message) => {
47406
47406
  console.warn(
47407
- ` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").inverse("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
47407
+ ` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
47408
47408
  config?.colors?.warning ? config.colors.warning : "#fcc419"
47409
47409
  )(message)}
47410
47410
  `
@@ -47414,7 +47414,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47414
47414
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
47415
47415
  return (message) => {
47416
47416
  console.info(
47417
- ` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").inverse("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
47417
+ ` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
47418
47418
  config?.colors?.info ? config.colors.info : "#0ea5e9"
47419
47419
  )(message)}
47420
47420
  `
@@ -47424,7 +47424,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47424
47424
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
47425
47425
  return (message) => {
47426
47426
  console.info(
47427
- ` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").inverse("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
47427
+ ` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
47428
47428
  config?.colors?.success ? config.colors.success : "#087f5b"
47429
47429
  )(message)}
47430
47430
  `
@@ -47434,7 +47434,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47434
47434
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
47435
47435
  return (message) => {
47436
47436
  console.debug(
47437
- ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
47437
+ ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
47438
47438
  config?.colors?.primary ? config.colors.primary : "#1fb2a6"
47439
47439
  )(message)}
47440
47440
  `
@@ -47443,7 +47443,7 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
47443
47443
  }
47444
47444
  return (message) => {
47445
47445
  console.log(
47446
- ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
47446
+ ` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
47447
47447
  config?.colors?.primary ? config.colors.primary : "#1fb2a6"
47448
47448
  )(message)}
47449
47449
  `
@@ -47456,72 +47456,18 @@ var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
47456
47456
  var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
47457
47457
  var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
47458
47458
  var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
47459
-
47460
- // packages/config-tools/src/env/get-env.ts
47461
- var getExtensionEnv = (extensionName) => {
47462
- const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
47463
- return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
47464
- const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
47465
- if (name) {
47466
- ret[name] = process.env[key];
47467
- }
47468
- return ret;
47469
- }, {});
47470
- };
47471
- var getConfigEnv = () => {
47472
- const prefix = "STORM_";
47473
- let config = {
47474
- name: process.env[`${prefix}NAME`],
47475
- namespace: process.env[`${prefix}NAMESPACE`],
47476
- owner: process.env[`${prefix}OWNER`],
47477
- worker: process.env[`${prefix}WORKER`],
47478
- organization: process.env[`${prefix}ORGANIZATION`],
47479
- packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
47480
- license: process.env[`${prefix}LICENSE`],
47481
- homepage: process.env[`${prefix}HOMEPAGE`],
47482
- timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
47483
- locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
47484
- configFile: process.env[`${prefix}CONFIG_FILE`],
47485
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
47486
- packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
47487
- buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
47488
- runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
47489
- runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
47490
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
47491
- ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
47492
- colors: {
47493
- primary: process.env[`${prefix}COLOR_PRIMARY`],
47494
- background: process.env[`${prefix}COLOR_BACKGROUND`],
47495
- success: process.env[`${prefix}COLOR_SUCCESS`],
47496
- info: process.env[`${prefix}COLOR_INFO`],
47497
- warning: process.env[`${prefix}COLOR_WARNING`],
47498
- error: process.env[`${prefix}COLOR_ERROR`],
47499
- fatal: process.env[`${prefix}COLOR_FATAL`]
47500
- },
47501
- repository: process.env[`${prefix}REPOSITORY`],
47502
- branch: process.env[`${prefix}BRANCH`],
47503
- preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
47504
- 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,
47505
- extensions: {}
47459
+ var getStopwatch = (name) => {
47460
+ const start = process.hrtime();
47461
+ return () => {
47462
+ const end = process.hrtime(start);
47463
+ console.info(
47464
+ chalk.dim(
47465
+ `\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
47466
+ end[0] * 1e3 + end[1] / 1e6
47467
+ )}ms to complete`
47468
+ )
47469
+ );
47506
47470
  };
47507
- const serializedConfig = process.env[`${prefix}CONFIG`];
47508
- if (serializedConfig) {
47509
- const parsed = JSON.parse(serializedConfig);
47510
- config = {
47511
- ...config,
47512
- ...parsed,
47513
- colors: { ...config.colors, ...parsed.colors },
47514
- extensions: { ...config.extensions, ...parsed.extensions }
47515
- };
47516
- }
47517
- const extensionPrefix = `${prefix}EXTENSION_`;
47518
- return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
47519
- 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("");
47520
- if (extensionName) {
47521
- ret.extensions[extensionName] = getExtensionEnv(extensionName);
47522
- }
47523
- return ret;
47524
- }, config);
47525
47471
  };
47526
47472
 
47527
47473
  // packages/config-tools/src/env/set-env.ts
@@ -47658,8 +47604,82 @@ var setConfigEnv = (config) => {
47658
47604
  }
47659
47605
  };
47660
47606
 
47661
- // packages/workspace-tools/src/base/base-executor.ts
47662
- var chalk2 = __toESM(require_source());
47607
+ // packages/config-tools/src/utilities/prepare-workspace.ts
47608
+ var prepareWorkspace = async () => {
47609
+ const _STORM_CONFIG = getDefaultConfig({
47610
+ ...await getConfigFile(),
47611
+ ...getConfigEnv()
47612
+ });
47613
+ setConfigEnv(_STORM_CONFIG);
47614
+ return _STORM_CONFIG;
47615
+ };
47616
+
47617
+ // packages/config-tools/src/env/get-env.ts
47618
+ var getExtensionEnv = (extensionName) => {
47619
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
47620
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
47621
+ const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
47622
+ if (name) {
47623
+ ret[name] = process.env[key];
47624
+ }
47625
+ return ret;
47626
+ }, {});
47627
+ };
47628
+ var getConfigEnv = () => {
47629
+ const prefix = "STORM_";
47630
+ let config = {
47631
+ name: process.env[`${prefix}NAME`],
47632
+ namespace: process.env[`${prefix}NAMESPACE`],
47633
+ owner: process.env[`${prefix}OWNER`],
47634
+ worker: process.env[`${prefix}WORKER`],
47635
+ organization: process.env[`${prefix}ORGANIZATION`],
47636
+ packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
47637
+ license: process.env[`${prefix}LICENSE`],
47638
+ homepage: process.env[`${prefix}HOMEPAGE`],
47639
+ timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
47640
+ locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
47641
+ configFile: process.env[`${prefix}CONFIG_FILE`],
47642
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
47643
+ packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
47644
+ buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
47645
+ runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
47646
+ runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
47647
+ env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
47648
+ ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
47649
+ colors: {
47650
+ primary: process.env[`${prefix}COLOR_PRIMARY`],
47651
+ background: process.env[`${prefix}COLOR_BACKGROUND`],
47652
+ success: process.env[`${prefix}COLOR_SUCCESS`],
47653
+ info: process.env[`${prefix}COLOR_INFO`],
47654
+ warning: process.env[`${prefix}COLOR_WARNING`],
47655
+ error: process.env[`${prefix}COLOR_ERROR`],
47656
+ fatal: process.env[`${prefix}COLOR_FATAL`]
47657
+ },
47658
+ repository: process.env[`${prefix}REPOSITORY`],
47659
+ branch: process.env[`${prefix}BRANCH`],
47660
+ preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
47661
+ 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,
47662
+ extensions: {}
47663
+ };
47664
+ const serializedConfig = process.env[`${prefix}CONFIG`];
47665
+ if (serializedConfig) {
47666
+ const parsed = JSON.parse(serializedConfig);
47667
+ config = {
47668
+ ...config,
47669
+ ...parsed,
47670
+ colors: { ...config.colors, ...parsed.colors },
47671
+ extensions: { ...config.extensions, ...parsed.extensions }
47672
+ };
47673
+ }
47674
+ const extensionPrefix = `${prefix}EXTENSION_`;
47675
+ return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
47676
+ 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("");
47677
+ if (extensionName) {
47678
+ ret.extensions[extensionName] = getExtensionEnv(extensionName);
47679
+ }
47680
+ return ret;
47681
+ }, config);
47682
+ };
47663
47683
 
47664
47684
  // packages/workspace-tools/src/utils/get-workspace-root.ts
47665
47685
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
@@ -47774,7 +47794,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
47774
47794
 
47775
47795
  // packages/workspace-tools/src/base/base-executor.ts
47776
47796
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
47777
- const startTime = Date.now();
47797
+ const stopwatch = getStopwatch(name);
47778
47798
  let options = _options;
47779
47799
  let config;
47780
47800
  try {
@@ -47799,11 +47819,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
47799
47819
  - projectName: ${projectName}
47800
47820
  `
47801
47821
  );
47802
- config = getDefaultConfig({
47803
- ...await getConfigFile(),
47804
- ...getConfigEnv()
47805
- });
47806
- setConfigEnv(config);
47822
+ config = await prepareWorkspace();
47807
47823
  writeTrace(
47808
47824
  config,
47809
47825
  `Loaded Storm config into env:
@@ -47869,56 +47885,56 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
47869
47885
  success: false
47870
47886
  };
47871
47887
  } finally {
47872
- console.info(
47873
- chalk2.dim(
47874
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
47875
- )
47876
- );
47888
+ stopwatch();
47877
47889
  }
47878
47890
  };
47879
47891
 
47880
47892
  // packages/workspace-tools/src/base/base-generator.ts
47881
- var chalk3 = __toESM(require_source());
47882
47893
  var withRunGenerator = (name, generatorFn, generatorOptions = {
47883
47894
  skipReadingConfig: false
47884
47895
  }) => async (tree, _options) => {
47885
- const startTime = Date.now();
47896
+ const stopwatch = getStopwatch(name);
47886
47897
  let options = _options;
47898
+ let config;
47887
47899
  try {
47888
- console.info(chalk3.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...
47900
+ writeInfo(config, `\u26A1 Running the ${name} generator...
47889
47901
 
47890
- `));
47891
- let config;
47902
+ `);
47903
+ const workspaceRoot = getWorkspaceRoot();
47892
47904
  if (!generatorOptions.skipReadingConfig) {
47893
- config = getDefaultConfig({
47894
- ...await getConfigFile(),
47895
- ...getConfigEnv()
47896
- });
47897
- setConfigEnv(config);
47898
- getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
47899
- chalk3.dim(
47900
- `Loaded Storm config into env:
47901
- ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
47902
- )
47905
+ writeDebug(
47906
+ config,
47907
+ `Loading the Storm Config from environment variables and storm.config.js file...
47908
+ - workspaceRoot: ${workspaceRoot}`
47909
+ );
47910
+ config = await prepareWorkspace();
47911
+ writeTrace(
47912
+ config,
47913
+ `Loaded Storm config into env:
47914
+ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
47903
47915
  );
47904
47916
  }
47905
47917
  if (generatorOptions?.hooks?.applyDefaultOptions) {
47906
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Running the applyDefaultOptions hook..."));
47918
+ writeDebug(config, "Running the applyDefaultOptions hook...");
47907
47919
  options = await Promise.resolve(
47908
47920
  generatorOptions.hooks.applyDefaultOptions(options, config)
47909
47921
  );
47910
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Completed the applyDefaultOptions hook..."));
47922
+ writeDebug(config, "Completed the applyDefaultOptions hook");
47911
47923
  }
47912
- getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(chalk3.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Generator schema options: \n"), options);
47924
+ writeTrace(
47925
+ config,
47926
+ `Generator schema options \u2699\uFE0F
47927
+ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
47928
+ );
47913
47929
  const tokenized = applyWorkspaceTokens(
47914
47930
  options,
47915
47931
  { workspaceRoot: tree.root, config },
47916
47932
  applyWorkspaceGeneratorTokens
47917
47933
  );
47918
47934
  if (generatorOptions?.hooks?.preProcess) {
47919
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Running the preProcess hook..."));
47920
- await Promise.resolve(generatorOptions.hooks.preProcess(options, config));
47921
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Completed the preProcess hook..."));
47935
+ writeDebug(config, "Running the preProcess hook...");
47936
+ await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
47937
+ writeDebug(config, "Completed the preProcess hook");
47922
47938
  }
47923
47939
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
47924
47940
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -47927,33 +47943,31 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
47927
47943
  });
47928
47944
  }
47929
47945
  if (generatorOptions?.hooks?.postProcess) {
47930
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Running the postProcess hook..."));
47946
+ writeDebug(config, "Running the postProcess hook...");
47931
47947
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
47932
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk3.dim("Completed the postProcess hook..."));
47948
+ writeDebug(config, "Completed the postProcess hook");
47933
47949
  }
47934
- console.info(
47935
- chalk3.bold.hex("#087f5b")(`
47936
-
47937
- \u{1F389} Successfully completed running the ${name} generator!`)
47938
- );
47950
+ writeSuccess(config, `Completed running the ${name} task executor!
47951
+ `);
47939
47952
  return {
47940
47953
  success: true
47941
47954
  };
47942
47955
  } catch (error) {
47943
- console.error(
47944
- chalk3.bold.hex("#7d1a1a")("\u274C An error occurred while running the generator\n\n"),
47945
- error
47956
+ writeFatal(
47957
+ config,
47958
+ "A fatal error occurred while running the generator - the process was forced to terminate"
47959
+ );
47960
+ writeError(
47961
+ config,
47962
+ `An exception was thrown in the generator's process
47963
+ - Details: ${error.message}
47964
+ - Stacktrace: ${error.stack}`
47946
47965
  );
47947
- console.error(error);
47948
47966
  return {
47949
47967
  success: false
47950
47968
  };
47951
47969
  } finally {
47952
- console.info(
47953
- chalk3.hex("#0ea5e9").italic(
47954
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
47955
- )
47956
- );
47970
+ stopwatch();
47957
47971
  }
47958
47972
  };
47959
47973
 
@@ -48030,9 +48044,10 @@ function defaultConfig({
48030
48044
  outExtension
48031
48045
  };
48032
48046
  }
48033
- function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig, additionalEntryPoints, platform, ...rest }) {
48047
+ function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig, platform, ...rest }) {
48034
48048
  return getConfigFn({
48035
48049
  ...rest,
48050
+ additionalEntryPoints: [],
48036
48051
  outDir: outputPath,
48037
48052
  tsconfig: tsConfig,
48038
48053
  workspaceRoot,
@@ -48110,14 +48125,14 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
48110
48125
  defaultConfiguration: "production",
48111
48126
  assets: [
48112
48127
  {
48113
- "input": options.projectRoot,
48114
- "glob": "*.md",
48115
- "output": "/"
48128
+ input: options.projectRoot,
48129
+ glob: "*.md",
48130
+ output: "/"
48116
48131
  },
48117
48132
  {
48118
- "input": "",
48119
- "glob": "LICENSE",
48120
- "output": "/"
48133
+ input: "",
48134
+ glob: "LICENSE",
48135
+ output: "/"
48121
48136
  }
48122
48137
  ]
48123
48138
  },
@@ -48136,7 +48151,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
48136
48151
  test: {}
48137
48152
  }
48138
48153
  };
48139
- schema.platform && (projectConfig.targets.build.options.platform = schema.platform);
48154
+ if (schema.platform) {
48155
+ projectConfig.targets.build.options.platform = schema.platform;
48156
+ }
48140
48157
  createProjectTsConfigJson(tree, options);
48141
48158
  (0, import_devkit2.addProjectConfiguration)(tree, options.name, projectConfig);
48142
48159
  let repository = {
@@ -48146,19 +48163,20 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
48146
48163
  let description = schema.description ?? "\u26A1 A Storm package used to create modern, scalable web applications.";
48147
48164
  if (tree.exists("package.json")) {
48148
48165
  const packageJson = (0, import_devkit2.readJson)(tree, "package.json");
48149
- packageJson?.repository && (repository = packageJson.repository);
48150
- packageJson?.description && (description = packageJson.description);
48166
+ if (packageJson?.repository) {
48167
+ repository = packageJson.repository;
48168
+ }
48169
+ if (packageJson?.description) {
48170
+ description = packageJson.description;
48171
+ }
48151
48172
  }
48152
- const packageJsonPath = (0, import_devkit2.joinPathFragments)(
48153
- options.projectRoot,
48154
- "package.json"
48155
- );
48173
+ const packageJsonPath = (0, import_devkit2.joinPathFragments)(options.projectRoot, "package.json");
48156
48174
  if (tree.exists(packageJsonPath)) {
48157
48175
  (0, import_devkit2.updateJson)(tree, packageJsonPath, (json) => {
48158
48176
  json.name = options.importPath;
48159
48177
  json.version = "0.0.1";
48160
48178
  if (json.private && (options.publishable || options.rootProject)) {
48161
- delete json.private;
48179
+ json.private = void 0;
48162
48180
  }
48163
48181
  return {
48164
48182
  ...json,
@@ -48206,19 +48224,19 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
48206
48224
  }));
48207
48225
  }
48208
48226
  (0, import_js.addTsConfigPath)(tree, options.importPath, [
48209
- (0, import_devkit2.joinPathFragments)(
48210
- options.projectRoot,
48211
- "./src",
48212
- "index." + (options.js ? "js" : "ts")
48213
- )
48227
+ (0, import_devkit2.joinPathFragments)(options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
48214
48228
  ]);
48215
48229
  (0, import_js.addTsConfigPath)(tree, (0, import_devkit2.joinPathFragments)(options.importPath, "/*"), [
48216
48230
  (0, import_devkit2.joinPathFragments)(options.projectRoot, "./src", "/*")
48217
48231
  ]);
48218
48232
  if (tree.exists("package.json")) {
48219
48233
  const packageJson = (0, import_devkit2.readJson)(tree, "package.json");
48220
- packageJson?.repository && (repository = packageJson.repository);
48221
- packageJson?.description && (description = packageJson.description);
48234
+ if (packageJson?.repository) {
48235
+ repository = packageJson.repository;
48236
+ }
48237
+ if (packageJson?.description) {
48238
+ description = packageJson.description;
48239
+ }
48222
48240
  }
48223
48241
  const tsconfigPath = (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json");
48224
48242
  if (tree.exists(tsconfigPath)) {
@@ -48257,11 +48275,7 @@ async function addLint(tree, options) {
48257
48275
  tsConfigPaths: [(0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json")],
48258
48276
  unitTestRunner: options.unitTestRunner,
48259
48277
  eslintFilePatterns: [
48260
- mapLintPattern(
48261
- options.projectRoot,
48262
- options.js ? "js" : "ts",
48263
- options.rootProject
48264
- )
48278
+ mapLintPattern(options.projectRoot, options.js ? "js" : "ts", options.rootProject)
48265
48279
  ],
48266
48280
  setParserOptionsProject: options.setParserOptionsProject,
48267
48281
  rootProject: options.rootProject
@@ -48307,9 +48321,7 @@ async function addLint(tree, options) {
48307
48321
  ruleOptions = {};
48308
48322
  }
48309
48323
  if (options.bundler === "esbuild") {
48310
- ruleOptions.ignoredFiles = [
48311
- "{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
48312
- ];
48324
+ ruleOptions.ignoredFiles = ["{projectRoot}/esbuild.config.{js,ts,mjs,mts}"];
48313
48325
  o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
48314
48326
  }
48315
48327
  return o;
@@ -48333,10 +48345,7 @@ function createProjectTsConfigJson(tree, options) {
48333
48345
  ...options?.tsConfigOptions ?? {},
48334
48346
  compilerOptions: {
48335
48347
  ...options.rootProject ? import_js.tsConfigBaseOptions : {},
48336
- outDir: (0, import_devkit2.joinPathFragments)(
48337
- (0, import_devkit2.offsetFromRoot)(options.projectRoot),
48338
- "dist/out-tsc"
48339
- ),
48348
+ outDir: (0, import_devkit2.joinPathFragments)((0, import_devkit2.offsetFromRoot)(options.projectRoot), "dist/out-tsc"),
48340
48349
  noEmit: true,
48341
48350
  ...options?.tsConfigOptions?.compilerOptions ?? {}
48342
48351
  },
@@ -48354,11 +48363,7 @@ function createProjectTsConfigJson(tree, options) {
48354
48363
  "src/**/*.test.ts"
48355
48364
  ]
48356
48365
  };
48357
- (0, import_devkit2.writeJson)(
48358
- tree,
48359
- (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json"),
48360
- tsconfig
48361
- );
48366
+ (0, import_devkit2.writeJson)(tree, (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json"), tsconfig);
48362
48367
  }
48363
48368
  async function normalizeOptions(tree, options) {
48364
48369
  if (options.publishable) {