@storm-software/workspace-tools 1.49.17 → 1.49.19

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.
@@ -84000,7 +84000,7 @@ var require_shared = __commonJS({
84000
84000
  var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
84001
84001
  var constants3 = {};
84002
84002
  (function(exports2) {
84003
- const { sep: sep3 } = require$$0$2;
84003
+ const { sep: sep2 } = require$$0$2;
84004
84004
  const { platform } = process;
84005
84005
  const os2 = require$$2$1;
84006
84006
  exports2.EV_ALL = "all";
@@ -84028,7 +84028,7 @@ var require_shared = __commonJS({
84028
84028
  exports2.KEY_ERR = "errHandlers";
84029
84029
  exports2.KEY_RAW = "rawEmitters";
84030
84030
  exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
84031
- exports2.DOT_SLASH = `.${sep3}`;
84031
+ exports2.DOT_SLASH = `.${sep2}`;
84032
84032
  exports2.BACK_SLASH_RE = /\\/g;
84033
84033
  exports2.DOUBLE_SLASH_RE = /\/\//;
84034
84034
  exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -86786,7 +86786,7 @@ var require_is_binary_path = __commonJS({
86786
86786
  var require_constants5 = __commonJS({
86787
86787
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports) {
86788
86788
  "use strict";
86789
- var { sep: sep3 } = require("path");
86789
+ var { sep: sep2 } = require("path");
86790
86790
  var { platform } = process;
86791
86791
  var os2 = require("os");
86792
86792
  exports.EV_ALL = "all";
@@ -86814,7 +86814,7 @@ var require_constants5 = __commonJS({
86814
86814
  exports.KEY_ERR = "errHandlers";
86815
86815
  exports.KEY_RAW = "rawEmitters";
86816
86816
  exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
86817
- exports.DOT_SLASH = `.${sep3}`;
86817
+ exports.DOT_SLASH = `.${sep2}`;
86818
86818
  exports.BACK_SLASH_RE = /\\/g;
86819
86819
  exports.DOUBLE_SLASH_RE = /\/\//;
86820
86820
  exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -98584,8 +98584,8 @@ var require_select = __commonJS({
98584
98584
  separator() {
98585
98585
  if (this.options.separator)
98586
98586
  return super.separator();
98587
- let sep3 = this.styles.muted(this.symbols.ellipsis);
98588
- return this.state.submitted ? super.separator() : sep3;
98587
+ let sep2 = this.styles.muted(this.symbols.ellipsis);
98588
+ return this.state.submitted ? super.separator() : sep2;
98589
98589
  }
98590
98590
  pointer(choice, i) {
98591
98591
  return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
@@ -98949,8 +98949,8 @@ var require_form = __commonJS({
98949
98949
  return choice.input ? "\u29BF" : "\u2299";
98950
98950
  }
98951
98951
  async choiceSeparator(choice, i) {
98952
- let sep3 = await this.resolve(choice.separator, this.state, choice, i) || ":";
98953
- return sep3 ? " " + this.styles.disabled(sep3) : "";
98952
+ let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
98953
+ return sep2 ? " " + this.styles.disabled(sep2) : "";
98954
98954
  }
98955
98955
  async renderChoice(choice, i) {
98956
98956
  await this.onChoice(choice, i);
@@ -98960,7 +98960,7 @@ var require_form = __commonJS({
98960
98960
  let help = hint;
98961
98961
  let focused = this.index === i;
98962
98962
  let validate = choice.validate || (() => true);
98963
- let sep3 = await this.choiceSeparator(choice, i);
98963
+ let sep2 = await this.choiceSeparator(choice, i);
98964
98964
  let msg = choice.message;
98965
98965
  if (this.align === "right")
98966
98966
  msg = msg.padStart(this.longest + 1, " ");
@@ -98974,7 +98974,7 @@ var require_form = __commonJS({
98974
98974
  let style = styles[color];
98975
98975
  let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
98976
98976
  let indent = this.indent(choice);
98977
- let line = () => [indent, indicator, msg + sep3, input, help].filter(Boolean).join(" ");
98977
+ let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
98978
98978
  if (state.submitted) {
98979
98979
  msg = colors.unstyle(msg);
98980
98980
  input = submitted(input);
@@ -99130,10 +99130,10 @@ var require_boolean = __commonJS({
99130
99130
  async render() {
99131
99131
  let { input, size } = this.state;
99132
99132
  let prefix = await this.prefix();
99133
- let sep3 = await this.separator();
99133
+ let sep2 = await this.separator();
99134
99134
  let msg = await this.message();
99135
99135
  let hint = this.styles.muted(this.default);
99136
- let promptLine = [prefix, msg, hint, sep3].filter(Boolean).join(" ");
99136
+ let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
99137
99137
  this.state.prompt = promptLine;
99138
99138
  let header = await this.header();
99139
99139
  let value = this.value = this.cast(input);
@@ -109292,6 +109292,14 @@ ${options.banner}
109292
109292
  };
109293
109293
  if (options.getConfig) {
109294
109294
  writeInfo(config, "\u26A1 Running the Build process");
109295
+ writeDebug(
109296
+ config,
109297
+ `\u2699\uFE0F Build options:
109298
+ ${Object.keys(options).map(
109299
+ (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
109300
+ ).join("\n")}
109301
+ `
109302
+ );
109295
109303
  const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
109296
109304
  const tsupConfig = (0, import_tsup.defineConfig)(
109297
109305
  getConfigFns.map(
@@ -109351,6 +109359,13 @@ var build = async (options, config) => {
109351
109359
  await new Promise((r) => setTimeout(r, 100));
109352
109360
  }
109353
109361
  };
109362
+ var _isPrimitive = (value) => {
109363
+ try {
109364
+ return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
109365
+ } catch (e) {
109366
+ return false;
109367
+ }
109368
+ };
109354
109369
  var _isFunction = (value) => {
109355
109370
  try {
109356
109371
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
@@ -113920,7 +113935,7 @@ var PathScurryBase = class {
113920
113935
  *
113921
113936
  * @internal
113922
113937
  */
113923
- constructor(cwd = process.cwd(), pathImpl, sep3, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
113938
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
113924
113939
  this.#fs = fsFromOption(fs);
113925
113940
  if (cwd instanceof URL || cwd.startsWith("file://")) {
113926
113941
  cwd = (0, import_url.fileURLToPath)(cwd);
@@ -113931,7 +113946,7 @@ var PathScurryBase = class {
113931
113946
  this.#resolveCache = new ResolveCache();
113932
113947
  this.#resolvePosixCache = new ResolveCache();
113933
113948
  this.#children = new ChildrenCache(childrenCacheSize);
113934
- const split = cwdPath.substring(this.rootPath.length).split(sep3);
113949
+ const split = cwdPath.substring(this.rootPath.length).split(sep2);
113935
113950
  if (split.length === 1 && !split[0]) {
113936
113951
  split.pop();
113937
113952
  }
@@ -115557,15 +115572,9 @@ var import_fileutils = require("nx/src/utils/fileutils");
115557
115572
  var import_prettier = require("prettier");
115558
115573
 
115559
115574
  // packages/workspace-tools/src/utils/file-path-utils.ts
115560
- var import_node_path6 = require("node:path");
115561
115575
  var removeExtension = (filePath) => {
115562
115576
  return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115563
115577
  };
115564
- function findFileName(filePath) {
115565
- return filePath?.split(
115566
- filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\"
115567
- )?.pop() ?? "";
115568
- }
115569
115578
 
115570
115579
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115571
115580
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
@@ -115591,7 +115600,7 @@ async function tsupExecutorFn(options, context, config) {
115591
115600
  config,
115592
115601
  `\u2699\uFE0F Executor options:
115593
115602
  ${Object.keys(options).map(
115594
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
115603
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
115595
115604
  ).join("\n")}
115596
115605
  `
115597
115606
  );
@@ -115906,7 +115915,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115906
115915
  outputPath = (0, import_devkit3.joinPathFragments)(
115907
115916
  options.outputPath,
115908
115917
  "dist",
115909
- outputPath.replace(findFileName(entryPoint), "")
115918
+ outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
115910
115919
  );
115911
115920
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
115912
115921
  return runTsupBuild(
@@ -115935,7 +115944,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
115935
115944
  applyDefaultOptions
115936
115945
  }
115937
115946
  });
115938
- var _isPrimitive = (value) => {
115947
+ var _isPrimitive2 = (value) => {
115939
115948
  try {
115940
115949
  return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
115941
115950
  } catch (e) {
@@ -117654,6 +117654,7 @@ ${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">
117654
117654
  };
117655
117655
  var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
117656
117656
  var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
117657
+ var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
117657
117658
 
117658
117659
  // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
117659
117660
  var import_node_buffer2 = require("node:buffer");
@@ -119471,6 +119472,14 @@ ${options.banner}
119471
119472
  };
119472
119473
  if (options.getConfig) {
119473
119474
  writeInfo(config, "\u26A1 Running the Build process");
119475
+ writeDebug(
119476
+ config,
119477
+ `\u2699\uFE0F Build options:
119478
+ ${Object.keys(options).map(
119479
+ (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
119480
+ ).join("\n")}
119481
+ `
119482
+ );
119474
119483
  const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
119475
119484
  const tsupConfig = (0, import_tsup.defineConfig)(
119476
119485
  getConfigFns.map(
@@ -119530,6 +119539,13 @@ var build = async (options, config) => {
119530
119539
  await new Promise((r) => setTimeout(r, 100));
119531
119540
  }
119532
119541
  };
119542
+ var _isPrimitive = (value) => {
119543
+ try {
119544
+ return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
119545
+ } catch (e) {
119546
+ return false;
119547
+ }
119548
+ };
119533
119549
  var _isFunction = (value) => {
119534
119550
  try {
119535
119551
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);