@storm-software/workspace-tools 1.17.0 → 1.17.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.
@@ -450,7 +450,7 @@ function __classPrivateFieldIn(state, receiver) {
450
450
  throw new TypeError("Cannot use 'in' operator on non-object");
451
451
  return typeof state === "function" ? receiver === state : state.has(receiver);
452
452
  }
453
- function __addDisposableResource(env2, value, async) {
453
+ function __addDisposableResource(env, value, async) {
454
454
  if (value !== null && value !== void 0) {
455
455
  if (typeof value !== "object" && typeof value !== "function")
456
456
  throw new TypeError("Object expected.");
@@ -467,20 +467,20 @@ function __addDisposableResource(env2, value, async) {
467
467
  }
468
468
  if (typeof dispose !== "function")
469
469
  throw new TypeError("Object not disposable.");
470
- env2.stack.push({ value, dispose, async });
470
+ env.stack.push({ value, dispose, async });
471
471
  } else if (async) {
472
- env2.stack.push({ async: true });
472
+ env.stack.push({ async: true });
473
473
  }
474
474
  return value;
475
475
  }
476
- function __disposeResources(env2) {
476
+ function __disposeResources(env) {
477
477
  function fail(e) {
478
- env2.error = env2.hasError ? new _SuppressedError(e, env2.error, "An error was suppressed during disposal.") : e;
479
- env2.hasError = true;
478
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
479
+ env.hasError = true;
480
480
  }
481
481
  function next() {
482
- while (env2.stack.length) {
483
- var rec = env2.stack.pop();
482
+ while (env.stack.length) {
483
+ var rec = env.stack.pop();
484
484
  try {
485
485
  var result = rec.dispose && rec.dispose.call(rec.value);
486
486
  if (rec.async)
@@ -492,8 +492,8 @@ function __disposeResources(env2) {
492
492
  fail(e);
493
493
  }
494
494
  }
495
- if (env2.hasError)
496
- throw env2.error;
495
+ if (env.hasError)
496
+ throw env.error;
497
497
  }
498
498
  return next();
499
499
  }
@@ -607,7 +607,7 @@ var require_strip_it = __commonJS({
607
607
  return this.nodes.length > 0 && this.nodes[0].protected === true;
608
608
  }
609
609
  };
610
- var constants2 = {
610
+ var constants = {
611
611
  ESCAPED_CHAR_REGEX: /^\\./,
612
612
  QUOTED_STRING_REGEX: /^(['"`])((?:\\.|[^\1])+?)(\1)/,
613
613
  NEWLINE_REGEX: /^\r*\n/,
@@ -618,7 +618,7 @@ var require_strip_it = __commonJS({
618
618
  var parse = (input) => {
619
619
  const cst = new TextBlock({ type: "root", nodes: [] });
620
620
  const stack = [cst];
621
- const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants2;
621
+ const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants;
622
622
  let block = cst;
623
623
  let remaining = input;
624
624
  let token;
@@ -4339,7 +4339,7 @@ var require_subset = __commonJS({
4339
4339
  var require_semver2 = __commonJS({
4340
4340
  "node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports, module2) {
4341
4341
  var internalRe = require_re();
4342
- var constants2 = require_constants();
4342
+ var constants = require_constants();
4343
4343
  var SemVer = require_semver();
4344
4344
  var identifiers = require_identifiers();
4345
4345
  var parse = require_parse();
@@ -4421,8 +4421,8 @@ var require_semver2 = __commonJS({
4421
4421
  re: internalRe.re,
4422
4422
  src: internalRe.src,
4423
4423
  tokens: internalRe.t,
4424
- SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
4425
- RELEASE_TYPES: constants2.RELEASE_TYPES,
4424
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
4425
+ RELEASE_TYPES: constants.RELEASE_TYPES,
4426
4426
  compareIdentifiers: identifiers.compareIdentifiers,
4427
4427
  rcompareIdentifiers: identifiers.rcompareIdentifiers
4428
4428
  };
@@ -19837,20 +19837,20 @@ var require_supports_color = __commonJS({
19837
19837
  var os = require("os");
19838
19838
  var tty = require("tty");
19839
19839
  var hasFlag = require_has_flag();
19840
- var { env: env2 } = process;
19840
+ var { env } = process;
19841
19841
  var forceColor;
19842
19842
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
19843
19843
  forceColor = 0;
19844
19844
  } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
19845
19845
  forceColor = 1;
19846
19846
  }
19847
- if ("FORCE_COLOR" in env2) {
19848
- if (env2.FORCE_COLOR === "true") {
19847
+ if ("FORCE_COLOR" in env) {
19848
+ if (env.FORCE_COLOR === "true") {
19849
19849
  forceColor = 1;
19850
- } else if (env2.FORCE_COLOR === "false") {
19850
+ } else if (env.FORCE_COLOR === "false") {
19851
19851
  forceColor = 0;
19852
19852
  } else {
19853
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
19853
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
19854
19854
  }
19855
19855
  }
19856
19856
  function translateLevel(level) {
@@ -19878,7 +19878,7 @@ var require_supports_color = __commonJS({
19878
19878
  return 0;
19879
19879
  }
19880
19880
  const min = forceColor || 0;
19881
- if (env2.TERM === "dumb") {
19881
+ if (env.TERM === "dumb") {
19882
19882
  return min;
19883
19883
  }
19884
19884
  if (process.platform === "win32") {
@@ -19888,34 +19888,34 @@ var require_supports_color = __commonJS({
19888
19888
  }
19889
19889
  return 1;
19890
19890
  }
19891
- if ("CI" in env2) {
19892
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
19891
+ if ("CI" in env) {
19892
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
19893
19893
  return 1;
19894
19894
  }
19895
19895
  return min;
19896
19896
  }
19897
- if ("TEAMCITY_VERSION" in env2) {
19898
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
19897
+ if ("TEAMCITY_VERSION" in env) {
19898
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
19899
19899
  }
19900
- if (env2.COLORTERM === "truecolor") {
19900
+ if (env.COLORTERM === "truecolor") {
19901
19901
  return 3;
19902
19902
  }
19903
- if ("TERM_PROGRAM" in env2) {
19904
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19905
- switch (env2.TERM_PROGRAM) {
19903
+ if ("TERM_PROGRAM" in env) {
19904
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19905
+ switch (env.TERM_PROGRAM) {
19906
19906
  case "iTerm.app":
19907
19907
  return version >= 3 ? 3 : 2;
19908
19908
  case "Apple_Terminal":
19909
19909
  return 2;
19910
19910
  }
19911
19911
  }
19912
- if (/-256(color)?$/i.test(env2.TERM)) {
19912
+ if (/-256(color)?$/i.test(env.TERM)) {
19913
19913
  return 2;
19914
19914
  }
19915
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
19915
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
19916
19916
  return 1;
19917
19917
  }
19918
- if ("COLORTERM" in env2) {
19918
+ if ("COLORTERM" in env) {
19919
19919
  return 1;
19920
19920
  }
19921
19921
  return min;
@@ -21487,7 +21487,7 @@ var require_universalify = __commonJS({
21487
21487
  // node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
21488
21488
  var require_polyfills = __commonJS({
21489
21489
  "node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
21490
- var constants2 = require("constants");
21490
+ var constants = require("constants");
21491
21491
  var origCwd = process.cwd;
21492
21492
  var cwd = null;
21493
21493
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -21512,7 +21512,7 @@ var require_polyfills = __commonJS({
21512
21512
  var chdir;
21513
21513
  module2.exports = patch;
21514
21514
  function patch(fs) {
21515
- if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
21515
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
21516
21516
  patchLchmod(fs);
21517
21517
  }
21518
21518
  if (!fs.lutimes) {
@@ -21619,7 +21619,7 @@ var require_polyfills = __commonJS({
21619
21619
  fs2.lchmod = function(path2, mode, callback) {
21620
21620
  fs2.open(
21621
21621
  path2,
21622
- constants2.O_WRONLY | constants2.O_SYMLINK,
21622
+ constants.O_WRONLY | constants.O_SYMLINK,
21623
21623
  mode,
21624
21624
  function(err, fd) {
21625
21625
  if (err) {
@@ -21637,7 +21637,7 @@ var require_polyfills = __commonJS({
21637
21637
  );
21638
21638
  };
21639
21639
  fs2.lchmodSync = function(path2, mode) {
21640
- var fd = fs2.openSync(path2, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
21640
+ var fd = fs2.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
21641
21641
  var threw = true;
21642
21642
  var ret;
21643
21643
  try {
@@ -21657,9 +21657,9 @@ var require_polyfills = __commonJS({
21657
21657
  };
21658
21658
  }
21659
21659
  function patchLutimes(fs2) {
21660
- if (constants2.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
21660
+ if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
21661
21661
  fs2.lutimes = function(path2, at, mt, cb) {
21662
- fs2.open(path2, constants2.O_SYMLINK, function(er, fd) {
21662
+ fs2.open(path2, constants.O_SYMLINK, function(er, fd) {
21663
21663
  if (er) {
21664
21664
  if (cb)
21665
21665
  cb(er);
@@ -21674,7 +21674,7 @@ var require_polyfills = __commonJS({
21674
21674
  });
21675
21675
  };
21676
21676
  fs2.lutimesSync = function(path2, at, mt) {
21677
- var fd = fs2.openSync(path2, constants2.O_SYMLINK);
21677
+ var fd = fs2.openSync(path2, constants.O_SYMLINK);
21678
21678
  var ret;
21679
21679
  var threw = true;
21680
21680
  try {
@@ -23520,7 +23520,7 @@ var require_jsonfile = __commonJS({
23520
23520
  return obj;
23521
23521
  }
23522
23522
  var readFile = universalify.fromPromise(_readFile);
23523
- function readFileSync3(file, options = {}) {
23523
+ function readFileSync2(file, options = {}) {
23524
23524
  if (typeof options === "string") {
23525
23525
  options = { encoding: options };
23526
23526
  }
@@ -23545,16 +23545,16 @@ var require_jsonfile = __commonJS({
23545
23545
  await universalify.fromCallback(fs.writeFile)(file, str, options);
23546
23546
  }
23547
23547
  var writeFile2 = universalify.fromPromise(_writeFile);
23548
- function writeFileSync3(file, obj, options = {}) {
23548
+ function writeFileSync2(file, obj, options = {}) {
23549
23549
  const fs = options.fs || _fs;
23550
23550
  const str = stringify(obj, options);
23551
23551
  return fs.writeFileSync(file, str, options);
23552
23552
  }
23553
23553
  var jsonfile = {
23554
23554
  readFile,
23555
- readFileSync: readFileSync3,
23555
+ readFileSync: readFileSync2,
23556
23556
  writeFile: writeFile2,
23557
- writeFileSync: writeFileSync3
23557
+ writeFileSync: writeFileSync2
23558
23558
  };
23559
23559
  module2.exports = jsonfile;
23560
23560
  }
@@ -26971,7 +26971,7 @@ var require_scan2 = __commonJS({
26971
26971
  var require_parse3 = __commonJS({
26972
26972
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) {
26973
26973
  "use strict";
26974
- var constants2 = require_constants3();
26974
+ var constants = require_constants3();
26975
26975
  var utils = require_utils5();
26976
26976
  var {
26977
26977
  MAX_LENGTH,
@@ -26979,7 +26979,7 @@ var require_parse3 = __commonJS({
26979
26979
  REGEX_NON_SPECIAL_CHARS,
26980
26980
  REGEX_SPECIAL_CHARS_BACKREF,
26981
26981
  REPLACEMENTS
26982
- } = constants2;
26982
+ } = constants;
26983
26983
  var expandRange = (args, options) => {
26984
26984
  if (typeof options.expandRange === "function") {
26985
26985
  return options.expandRange(...args, options);
@@ -27011,8 +27011,8 @@ var require_parse3 = __commonJS({
27011
27011
  const tokens = [bos];
27012
27012
  const capture = opts.capture ? "" : "?:";
27013
27013
  const win322 = utils.isWindows(options);
27014
- const PLATFORM_CHARS = constants2.globChars(win322);
27015
- const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
27014
+ const PLATFORM_CHARS = constants.globChars(win322);
27015
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
27016
27016
  const {
27017
27017
  DOT_LITERAL,
27018
27018
  PLUS_LITERAL,
@@ -27694,7 +27694,7 @@ var require_parse3 = __commonJS({
27694
27694
  NO_DOTS_SLASH,
27695
27695
  STAR,
27696
27696
  START_ANCHOR
27697
- } = constants2.globChars(win322);
27697
+ } = constants.globChars(win322);
27698
27698
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
27699
27699
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
27700
27700
  const capture = opts.capture ? "" : "?:";
@@ -27756,7 +27756,7 @@ var require_picomatch = __commonJS({
27756
27756
  var scan = require_scan2();
27757
27757
  var parse = require_parse3();
27758
27758
  var utils = require_utils5();
27759
- var constants2 = require_constants3();
27759
+ var constants = require_constants3();
27760
27760
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
27761
27761
  var picomatch = (glob2, options, returnState = false) => {
27762
27762
  if (Array.isArray(glob2)) {
@@ -27887,7 +27887,7 @@ var require_picomatch = __commonJS({
27887
27887
  return /$^/;
27888
27888
  }
27889
27889
  };
27890
- picomatch.constants = constants2;
27890
+ picomatch.constants = constants;
27891
27891
  module2.exports = picomatch;
27892
27892
  }
27893
27893
  });
@@ -40919,7 +40919,7 @@ var require_chunk_GQ77QZBO = __commonJS({
40919
40919
  }
40920
40920
  _fs2.default.mkdirSync(dirPath, { recursive: true });
40921
40921
  const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
40922
- writeFileSync3(gitIgnorePath, "**/*\n");
40922
+ writeFileSync2(gitIgnorePath, "**/*\n");
40923
40923
  return dirPath;
40924
40924
  }
40925
40925
  var toObjectEntry = (entry) => {
@@ -40968,7 +40968,7 @@ var require_chunk_GQ77QZBO = __commonJS({
40968
40968
  function trimDtsExtension(fileName) {
40969
40969
  return fileName.replace(/\.d\.(ts|mts|cts)x?$/, "");
40970
40970
  }
40971
- function writeFileSync3(filePath, content) {
40971
+ function writeFileSync2(filePath, content) {
40972
40972
  _fs2.default.mkdirSync(_path2.default.dirname(filePath), { recursive: true });
40973
40973
  _fs2.default.writeFileSync(filePath, content);
40974
40974
  }
@@ -40989,7 +40989,7 @@ var require_chunk_GQ77QZBO = __commonJS({
40989
40989
  exports.toObjectEntry = toObjectEntry;
40990
40990
  exports.toAbsolutePath = toAbsolutePath;
40991
40991
  exports.trimDtsExtension = trimDtsExtension;
40992
- exports.writeFileSync = writeFileSync3;
40992
+ exports.writeFileSync = writeFileSync2;
40993
40993
  }
40994
40994
  });
40995
40995
 
@@ -41064,13 +41064,13 @@ var require_chunk_UIX4URMV = __commonJS({
41064
41064
  });
41065
41065
  var _tty = require("tty");
41066
41066
  var tty = _interopRequireWildcard(_tty);
41067
- var env2 = process.env || {};
41067
+ var env = process.env || {};
41068
41068
  var argv = process.argv || [];
41069
- var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
41070
- var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
41069
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
41070
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
41071
41071
  var isWindows = process.platform === "win32";
41072
- var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env2.TERM && env2.TERM !== "dumb";
41073
- var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
41072
+ var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && env.TERM !== "dumb";
41073
+ var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
41074
41074
  var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
41075
41075
  var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
41076
41076
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -41231,7 +41231,7 @@ var require_lib3 = __commonJS({
41231
41231
  function _interopRequireDefault(obj) {
41232
41232
  return obj && obj.__esModule ? obj : { default: obj };
41233
41233
  }
41234
- var readFileSync3 = (fp) => {
41234
+ var readFileSync2 = (fp) => {
41235
41235
  return _fs.default.readFileSync(fp, "utf8");
41236
41236
  };
41237
41237
  var pathExists = (fp) => new Promise((resolve) => {
@@ -41355,7 +41355,7 @@ var require_lib3 = __commonJS({
41355
41355
  if (this.packageJsonCache.has(filepath2)) {
41356
41356
  return this.packageJsonCache.get(filepath2)[options.packageKey];
41357
41357
  }
41358
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
41358
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
41359
41359
  return data2;
41360
41360
  }
41361
41361
  };
@@ -41389,7 +41389,7 @@ var require_lib3 = __commonJS({
41389
41389
  if (this.packageJsonCache.has(filepath2)) {
41390
41390
  return this.packageJsonCache.get(filepath2)[options.packageKey];
41391
41391
  }
41392
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
41392
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
41393
41393
  return data2;
41394
41394
  }
41395
41395
  };
@@ -42407,7 +42407,7 @@ var require_resolveCommand = __commonJS({
42407
42407
  var which = require_which();
42408
42408
  var getPathKey = require_path_key();
42409
42409
  function resolveCommandAttempt(parsed, withoutPathExt) {
42410
- const env2 = parsed.options.env || process.env;
42410
+ const env = parsed.options.env || process.env;
42411
42411
  const cwd = process.cwd();
42412
42412
  const hasCustomCwd = parsed.options.cwd != null;
42413
42413
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
@@ -42420,7 +42420,7 @@ var require_resolveCommand = __commonJS({
42420
42420
  let resolved;
42421
42421
  try {
42422
42422
  resolved = which.sync(parsed.command, {
42423
- path: env2[getPathKey({ env: env2 })],
42423
+ path: env[getPathKey({ env })],
42424
42424
  pathExt: withoutPathExt ? path2.delimiter : void 0
42425
42425
  });
42426
42426
  } catch (e) {
@@ -42705,11 +42705,11 @@ var require_npm_run_path = __commonJS({
42705
42705
  env: process.env,
42706
42706
  ...options
42707
42707
  };
42708
- const env2 = { ...options.env };
42709
- const path3 = pathKey({ env: env2 });
42710
- options.path = env2[path3];
42711
- env2[path3] = module2.exports(options);
42712
- return env2;
42708
+ const env = { ...options.env };
42709
+ const path3 = pathKey({ env });
42710
+ options.path = env[path3];
42711
+ env[path3] = module2.exports(options);
42712
+ return env;
42713
42713
  };
42714
42714
  }
42715
42715
  });
@@ -43904,11 +43904,11 @@ var require_execa = __commonJS({
43904
43904
  var { joinCommand, parseCommand, getEscapedCommand } = require_command();
43905
43905
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
43906
43906
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
43907
- const env2 = extendEnv ? { ...process.env, ...envOption } : envOption;
43907
+ const env = extendEnv ? { ...process.env, ...envOption } : envOption;
43908
43908
  if (preferLocal) {
43909
- return npmRunPath.env({ env: env2, cwd: localDir, execPath });
43909
+ return npmRunPath.env({ env, cwd: localDir, execPath });
43910
43910
  }
43911
- return env2;
43911
+ return env;
43912
43912
  };
43913
43913
  var handleArguments = (file, args, options = {}) => {
43914
43914
  const parsed = crossSpawn._parse(file, args, options);
@@ -67524,7 +67524,7 @@ var require_util4 = __commonJS({
67524
67524
  var normalize2 = createSafeHandler((url) => {
67525
67525
  });
67526
67526
  exports.normalize = normalize2;
67527
- function join5(aRoot, aPath) {
67527
+ function join3(aRoot, aPath) {
67528
67528
  const pathType = getURLType(aPath);
67529
67529
  const rootType = getURLType(aRoot);
67530
67530
  aRoot = ensureDirectory(aRoot);
@@ -67550,7 +67550,7 @@ var require_util4 = __commonJS({
67550
67550
  const newPath = withBase(aPath, withBase(aRoot, base));
67551
67551
  return computeRelativeURL(base, newPath);
67552
67552
  }
67553
- exports.join = join5;
67553
+ exports.join = join3;
67554
67554
  function relative(rootURL, targetURL) {
67555
67555
  const result = relativeIfPossible(rootURL, targetURL);
67556
67556
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -67580,9 +67580,9 @@ var require_util4 = __commonJS({
67580
67580
  }
67581
67581
  let url = normalize2(sourceURL || "");
67582
67582
  if (sourceRoot)
67583
- url = join5(sourceRoot, url);
67583
+ url = join3(sourceRoot, url);
67584
67584
  if (sourceMapURL)
67585
- url = join5(trimFilename(sourceMapURL), url);
67585
+ url = join3(trimFilename(sourceMapURL), url);
67586
67586
  return url;
67587
67587
  }
67588
67588
  exports.computeSourceURL = computeSourceURL;
@@ -69347,8 +69347,8 @@ var require_source_map = __commonJS({
69347
69347
  // node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
69348
69348
  var require_native = __commonJS({
69349
69349
  "node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
69350
- var { existsSync: existsSync3 } = require("node:fs");
69351
- var { join: join5 } = require("node:path");
69350
+ var { existsSync } = require("node:fs");
69351
+ var { join: join3 } = require("node:path");
69352
69352
  var { platform, arch, report } = require("node:process");
69353
69353
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
69354
69354
  var bindingsByPlatformAndArch = {
@@ -69398,7 +69398,7 @@ If this is important to you, please consider supporting Rollup to make a native
69398
69398
  return imported.base;
69399
69399
  }
69400
69400
  var localName = `./rollup.${packageBase}.node`;
69401
- var { parse, parseAsync, xxhashBase64Url } = existsSync3(join5(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
69401
+ var { parse, parseAsync, xxhashBase64Url } = existsSync(join3(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
69402
69402
  module2.exports.parse = parse;
69403
69403
  module2.exports.parseAsync = parseAsync;
69404
69404
  module2.exports.xxhashBase64Url = xxhashBase64Url;
@@ -72975,16 +72975,16 @@ var require_rollup = __commonJS({
72975
72975
  return outputOptions;
72976
72976
  }
72977
72977
  var {
72978
- env: env2 = {},
72978
+ env = {},
72979
72979
  argv = [],
72980
72980
  platform = ""
72981
72981
  } = typeof process === "undefined" ? {} : process;
72982
- var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
72983
- var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
72982
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
72983
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
72984
72984
  var isWindows = platform === "win32";
72985
- var isDumbTerminal = env2.TERM === "dumb";
72986
- var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env2.TERM && !isDumbTerminal;
72987
- var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
72985
+ var isDumbTerminal = env.TERM === "dumb";
72986
+ var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
72987
+ var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
72988
72988
  var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
72989
72989
  var replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
72990
72990
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -76275,7 +76275,7 @@ var require_rollup = __commonJS({
76275
76275
  var scan = scan_1;
76276
76276
  var parse = parse_1;
76277
76277
  var utils = utils$3;
76278
- var constants2 = constants$2;
76278
+ var constants = constants$2;
76279
76279
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
76280
76280
  var picomatch$1 = (glob2, options, returnState = false) => {
76281
76281
  if (Array.isArray(glob2)) {
@@ -76406,7 +76406,7 @@ var require_rollup = __commonJS({
76406
76406
  return /$^/;
76407
76407
  }
76408
76408
  };
76409
- picomatch$1.constants = constants2;
76409
+ picomatch$1.constants = constants;
76410
76410
  var picomatch_1 = picomatch$1;
76411
76411
  var picomatch = picomatch_1;
76412
76412
  var pm = /* @__PURE__ */ getDefaultExportFromCjs(picomatch);
@@ -91157,7 +91157,7 @@ var require_shared = __commonJS({
91157
91157
  var binaryExtensions = binaryExtensions$1;
91158
91158
  var extensions = new Set(binaryExtensions);
91159
91159
  var isBinaryPath$1 = (filePath) => extensions.has(path2.extname(filePath).slice(1).toLowerCase());
91160
- var constants2 = {};
91160
+ var constants = {};
91161
91161
  (function(exports2) {
91162
91162
  const { sep: sep2 } = require$$0$2;
91163
91163
  const { platform } = process;
@@ -91215,7 +91215,7 @@ var require_shared = __commonJS({
91215
91215
  exports2.isMacos = platform === "darwin";
91216
91216
  exports2.isLinux = platform === "linux";
91217
91217
  exports2.isIBMi = os.type() === "OS400";
91218
- })(constants2);
91218
+ })(constants);
91219
91219
  var fs$2 = require$$0$1;
91220
91220
  var sysPath$2 = require$$0$2;
91221
91221
  var { promisify: promisify$2 } = require$$2;
@@ -91237,7 +91237,7 @@ var require_shared = __commonJS({
91237
91237
  STR_END: STR_END$2,
91238
91238
  BRACE_START: BRACE_START$1,
91239
91239
  STAR
91240
- } = constants2;
91240
+ } = constants;
91241
91241
  var THROTTLE_MODE_WATCH = "watch";
91242
91242
  var open = promisify$2(fs$2.open);
91243
91243
  var stat$2 = promisify$2(fs$2.stat);
@@ -91759,7 +91759,7 @@ var require_shared = __commonJS({
91759
91759
  FUNCTION_TYPE: FUNCTION_TYPE$1,
91760
91760
  EMPTY_FN: EMPTY_FN$1,
91761
91761
  IDENTITY_FN
91762
- } = constants2;
91762
+ } = constants;
91763
91763
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
91764
91764
  var stat$1 = promisify$1(fs$1.stat);
91765
91765
  var lstat2 = promisify$1(fs$1.lstat);
@@ -92129,7 +92129,7 @@ var require_shared = __commonJS({
92129
92129
  fseventsHandler.exports = FsEventsHandler$1;
92130
92130
  fseventsHandler.exports.canUse = canUse;
92131
92131
  var fseventsHandlerExports = fseventsHandler.exports;
92132
- var { EventEmitter: EventEmitter3 } = require$$0$3;
92132
+ var { EventEmitter: EventEmitter2 } = require$$0$3;
92133
92133
  var fs = require$$0$1;
92134
92134
  var sysPath = require$$0$2;
92135
92135
  var { promisify } = require$$2;
@@ -92174,7 +92174,7 @@ var require_shared = __commonJS({
92174
92174
  isWindows,
92175
92175
  isMacos,
92176
92176
  isIBMi
92177
- } = constants2;
92177
+ } = constants;
92178
92178
  var stat = promisify(fs.stat);
92179
92179
  var readdir2 = promisify(fs.readdir);
92180
92180
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
@@ -92350,7 +92350,7 @@ var require_shared = __commonJS({
92350
92350
  return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
92351
92351
  }
92352
92352
  };
92353
- var FSWatcher = class extends EventEmitter3 {
92353
+ var FSWatcher = class extends EventEmitter2 {
92354
92354
  // Not indenting methods for history sake; for now.
92355
92355
  constructor(_opts) {
92356
92356
  super();
@@ -94936,7 +94936,7 @@ var require_fsevents_handler = __commonJS({
94936
94936
  var require_chokidar = __commonJS({
94937
94937
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js"(exports) {
94938
94938
  "use strict";
94939
- var { EventEmitter: EventEmitter3 } = require("events");
94939
+ var { EventEmitter: EventEmitter2 } = require("events");
94940
94940
  var fs = require("fs");
94941
94941
  var sysPath = require("path");
94942
94942
  var { promisify } = require("util");
@@ -95157,7 +95157,7 @@ var require_chokidar = __commonJS({
95157
95157
  return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
95158
95158
  }
95159
95159
  };
95160
- var FSWatcher = class extends EventEmitter3 {
95160
+ var FSWatcher = class extends EventEmitter2 {
95161
95161
  // Not indenting methods for history sake; for now.
95162
95162
  constructor(_opts) {
95163
95163
  super();
@@ -97375,11 +97375,11 @@ var require_dist5 = __commonJS({
97375
97375
  ];
97376
97376
  const outDir = options.outDir;
97377
97377
  const outExtension2 = getOutputExtensionMap(options, format2, pkg.type);
97378
- const env2 = {
97378
+ const env = {
97379
97379
  ...options.env
97380
97380
  };
97381
97381
  if (options.replaceNodeEnv) {
97382
- env2.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
97382
+ env.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
97383
97383
  }
97384
97384
  logger3.info(format2, "Build start");
97385
97385
  const startTime = Date.now();
@@ -97473,8 +97473,8 @@ var require_dist5 = __commonJS({
97473
97473
  "import.meta.url": "importMetaUrl"
97474
97474
  } : {},
97475
97475
  ...options.define,
97476
- ...Object.keys(env2).reduce((res, key) => {
97477
- const value = JSON.stringify(env2[key]);
97476
+ ...Object.keys(env).reduce((res, key) => {
97477
+ const value = JSON.stringify(env[key]);
97478
97478
  return {
97479
97479
  ...res,
97480
97480
  [`process.env.${key}`]: value,
@@ -104772,7 +104772,6 @@ var glob = Object.assign(glob_, {
104772
104772
  glob.glob = glob;
104773
104773
 
104774
104774
  // packages/workspace-tools/src/executors/tsup/executor.ts
104775
- var import_node_events = require("node:events");
104776
104775
  var import_project_graph = require("nx/src/project-graph/project-graph");
104777
104776
  var import_fileutils = require("nx/src/utils/fileutils");
104778
104777
  var import_path3 = require("path");
@@ -104833,129 +104832,6 @@ var removeExtension = (filePath) => {
104833
104832
  // packages/workspace-tools/src/executors/tsup/get-config.ts
104834
104833
  var import_path2 = require("path");
104835
104834
  var import_tsup = __toESM(require_dist5());
104836
-
104837
- // packages/workspace-tools/src/utils/find-cache-dir.ts
104838
- var import_node_fs = require("node:fs");
104839
- var import_node_path = require("node:path");
104840
- var import_node_process = require("node:process");
104841
- var isWritable2 = (path2) => {
104842
- try {
104843
- (0, import_node_fs.accessSync)(path2, import_node_fs.constants.W_OK);
104844
- return true;
104845
- } catch {
104846
- return false;
104847
- }
104848
- };
104849
- function useDirectory(directory, { create = true }) {
104850
- if (create) {
104851
- (0, import_node_fs.mkdirSync)(directory, { recursive: true });
104852
- }
104853
- return directory;
104854
- }
104855
- function getNodeModuleDirectory(workspaceRoot) {
104856
- const nodeModules = (0, import_node_path.join)(workspaceRoot, "node_modules");
104857
- if ((0, import_node_fs.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
104858
- throw new Error("Cannot write to node_modules directory");
104859
- }
104860
- return nodeModules;
104861
- }
104862
- function findCacheDirectory({
104863
- name,
104864
- cacheName,
104865
- workspaceRoot,
104866
- create
104867
- } = {
104868
- name: "storm",
104869
- workspaceRoot: getWorkspaceRoot(),
104870
- create: true
104871
- }) {
104872
- if (import_node_process.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.CACHE_DIR)) {
104873
- return useDirectory((0, import_node_path.join)(import_node_process.env.CACHE_DIR, name, cacheName), { create });
104874
- }
104875
- if (import_node_process.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.STORM_CACHE_DIR)) {
104876
- return useDirectory((0, import_node_path.join)(import_node_process.env.STORM_CACHE_DIR, name, cacheName), {
104877
- create
104878
- });
104879
- }
104880
- const nodeModules = getNodeModuleDirectory(workspaceRoot);
104881
- if (!nodeModules) {
104882
- throw new Error("Cannot find node_modules directory");
104883
- }
104884
- return useDirectory(
104885
- (0, import_node_path.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
104886
- { create }
104887
- );
104888
- }
104889
-
104890
- // packages/workspace-tools/src/utils/workspace-storage.ts
104891
- var import_node_fs2 = require("node:fs");
104892
- var import_node_path2 = require("node:path");
104893
- var WorkspaceStorage = class {
104894
- constructor({
104895
- cacheName,
104896
- workspaceRoot
104897
- }) {
104898
- this.cacheDir = findCacheDirectory({
104899
- name: "storm",
104900
- cacheName,
104901
- workspaceRoot,
104902
- create: true
104903
- });
104904
- }
104905
- /**
104906
- * Get item from cache
104907
- *
104908
- * @param key - The key to get
104909
- * @returns The value of the key
104910
- */
104911
- getItem(key) {
104912
- const cacheFile = (0, import_node_path2.join)(this.cacheDir, key);
104913
- if ((0, import_node_fs2.existsSync)(cacheFile)) {
104914
- return (0, import_node_fs2.readFileSync)(cacheFile, "utf-8");
104915
- }
104916
- return void 0;
104917
- }
104918
- /**
104919
- * Set item to cache
104920
- *
104921
- * @param key - The key to set
104922
- * @param value - The value to set
104923
- */
104924
- setItem(key, value) {
104925
- (0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
104926
- }
104927
- /**
104928
- * Remove item from cache
104929
- *
104930
- * @param key - The key to remove
104931
- */
104932
- removeItem(key) {
104933
- (0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
104934
- }
104935
- /**
104936
- * Clear the cache
104937
- */
104938
- clear() {
104939
- (0, import_node_fs2.readdirSync)(this.cacheDir).forEach((cacheFile) => {
104940
- (0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
104941
- });
104942
- }
104943
- /**
104944
- * Get the key at the index
104945
- *
104946
- * @param index - The index to get
104947
- * @returns The key at the index
104948
- */
104949
- key(index) {
104950
- const files = (0, import_node_fs2.readdirSync)(this.cacheDir);
104951
- if (index < files.length && index >= 0) {
104952
- return files[index];
104953
- }
104954
- return void 0;
104955
- }
104956
- };
104957
-
104958
- // packages/workspace-tools/src/executors/tsup/get-config.ts
104959
104835
  function modernConfig({
104960
104836
  entry,
104961
104837
  outDir,
@@ -104971,8 +104847,7 @@ function modernConfig({
104971
104847
  docModel = true,
104972
104848
  tsdocMetadata = true,
104973
104849
  define: define2,
104974
- env: env2,
104975
- tsCdnStorage,
104850
+ env,
104976
104851
  plugins,
104977
104852
  dtsTsConfig
104978
104853
  }) {
@@ -105002,7 +104877,7 @@ function modernConfig({
105002
104877
  platform,
105003
104878
  banner,
105004
104879
  define: define2,
105005
- env: env2,
104880
+ env,
105006
104881
  dts: false,
105007
104882
  experimentalDts: {
105008
104883
  entry,
@@ -105019,7 +104894,6 @@ function modernConfig({
105019
104894
  tsdocMetadata,
105020
104895
  sourcemap: debug,
105021
104896
  clean: false,
105022
- tsCdnStorage,
105023
104897
  plugins,
105024
104898
  outExtension
105025
104899
  };
@@ -105036,8 +104910,7 @@ function legacyConfig({
105036
104910
  platform = "neutral",
105037
104911
  verbose = false,
105038
104912
  define: define2,
105039
- env: env2,
105040
- tsCdnStorage,
104913
+ env,
105041
104914
  plugins,
105042
104915
  dtsTsConfig
105043
104916
  }) {
@@ -105059,7 +104932,7 @@ function legacyConfig({
105059
104932
  platform,
105060
104933
  banner,
105061
104934
  define: define2,
105062
- env: env2,
104935
+ env,
105063
104936
  dts: false,
105064
104937
  experimentalDts: {
105065
104938
  entry,
@@ -105076,7 +104949,6 @@ function legacyConfig({
105076
104949
  tsdocMetadata: false,
105077
104950
  sourcemap: debug,
105078
104951
  clean: false,
105079
- tsCdnStorage,
105080
104952
  plugins,
105081
104953
  outExtension
105082
104954
  };
@@ -105095,8 +104967,7 @@ function workerConfig({
105095
104967
  docModel = true,
105096
104968
  tsdocMetadata = true,
105097
104969
  define: define2,
105098
- env: env2,
105099
- tsCdnStorage,
104970
+ env,
105100
104971
  plugins,
105101
104972
  dtsTsConfig
105102
104973
  }) {
@@ -105112,13 +104983,13 @@ function workerConfig({
105112
104983
  outDir: (0, import_path2.join)(outDir, "dist"),
105113
104984
  silent: !verbose,
105114
104985
  metafile: true,
105115
- shims: true,
104986
+ shims: false,
105116
104987
  minify: true,
105117
104988
  external,
105118
104989
  platform: "browser",
105119
104990
  banner,
105120
104991
  define: define2,
105121
- env: env2,
104992
+ env,
105122
104993
  dts: false,
105123
104994
  experimentalDts: {
105124
104995
  entry,
@@ -105135,7 +105006,6 @@ function workerConfig({
105135
105006
  tsdocMetadata,
105136
105007
  sourcemap: debug,
105137
105008
  clean: false,
105138
- tsCdnStorage,
105139
105009
  plugins,
105140
105010
  outExtension
105141
105011
  };
@@ -105153,7 +105023,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
105153
105023
  docModel,
105154
105024
  tsdocMetadata,
105155
105025
  define: define2,
105156
- env: env2,
105026
+ env,
105157
105027
  verbose,
105158
105028
  dtsTsConfig,
105159
105029
  plugins,
@@ -105194,11 +105064,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
105194
105064
  docModel,
105195
105065
  tsdocMetadata,
105196
105066
  define: define2,
105197
- env: env2,
105198
- tsCdnStorage: new WorkspaceStorage({
105199
- cacheName: "ts-libs",
105200
- workspaceRoot
105201
- }),
105067
+ env,
105202
105068
  options,
105203
105069
  plugins,
105204
105070
  dtsTsConfig
@@ -105304,7 +105170,21 @@ ${Object.keys(options).map(
105304
105170
  if (!result.success) {
105305
105171
  throw new Error("The Build process failed trying to copy assets");
105306
105172
  }
105173
+ const workspacePackageJson = (0, import_devkit.readJsonFile)(
105174
+ (0, import_path3.join)(workspaceRoot, "package.json")
105175
+ );
105307
105176
  options.external = options.external || [];
105177
+ if (workspacePackageJson?.dependencies) {
105178
+ options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
105179
+ (ret, key) => {
105180
+ if (!options.external.includes(key)) {
105181
+ ret.push(key);
105182
+ }
105183
+ return ret;
105184
+ },
105185
+ options.external
105186
+ );
105187
+ }
105308
105188
  const externalDependencies = options.external.reduce((acc, name) => {
105309
105189
  const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
105310
105190
  if (externalNode) {
@@ -105313,6 +105193,15 @@ ${Object.keys(options).map(
105313
105193
  outputs: [],
105314
105194
  node: externalNode
105315
105195
  });
105196
+ } else {
105197
+ const workspaceNode = context.projectGraph.nodes[name];
105198
+ if (workspaceNode) {
105199
+ acc.push({
105200
+ name,
105201
+ outputs: [],
105202
+ node: workspaceNode
105203
+ });
105204
+ }
105316
105205
  }
105317
105206
  return acc;
105318
105207
  }, []);
@@ -105320,7 +105209,7 @@ ${Object.keys(options).map(
105320
105209
  ${externalDependencies.map((dep) => {
105321
105210
  return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
105322
105211
  }).join("\n")}`);
105323
- if (!options.bundle) {
105212
+ if (options.bundle === false) {
105324
105213
  for (const thirdPartyDependency of (0, import_get_extra_dependencies.getExtraDependencies)(
105325
105214
  context.projectName,
105326
105215
  context.projectGraph
@@ -105335,21 +105224,16 @@ ${externalDependencies.map((dep) => {
105335
105224
  const projectGraph = await (0, import_project_graph.buildProjectGraphWithoutDaemon)();
105336
105225
  const pathToPackageJson = (0, import_path3.join)(context.root, projectRoot, "package.json");
105337
105226
  const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
105338
- const workspacePackageJson = (0, import_devkit.readJsonFile)(
105339
- (0, import_path3.join)(workspaceRoot, "package.json")
105340
- );
105227
+ delete packageJson.dependencies;
105341
105228
  externalDependencies.forEach((entry) => {
105342
105229
  const packageConfig = entry.node.data;
105343
- if (packageConfig?.packageName && !!(projectGraph.externalNodes[entry.node.name]?.type === "npm")) {
105230
+ if (packageConfig?.packageName && (!!(projectGraph.externalNodes[entry.node.name]?.type === "npm") || !!projectGraph.nodes[entry.node.name])) {
105344
105231
  const { packageName, version } = packageConfig;
105345
- if (packageJson.dependencies?.[packageName] || packageJson.devDependencies?.[packageName] || packageJson.peerDependencies?.[packageName]) {
105346
- return;
105347
- }
105348
- if (workspacePackageJson.dependencies?.[packageName]) {
105232
+ if (workspacePackageJson.dependencies?.[packageName] || workspacePackageJson.devDependencies?.[packageName]) {
105349
105233
  return;
105350
105234
  }
105351
105235
  packageJson.dependencies ??= {};
105352
- packageJson.dependencies[packageName] = version;
105236
+ packageJson.dependencies[packageName] = !!projectGraph.nodes[entry.node.name] ? "latest" : version;
105353
105237
  }
105354
105238
  });
105355
105239
  packageJson.type = "module";
@@ -105388,7 +105272,7 @@ ${externalDependencies.map((dep) => {
105388
105272
  if (distSrc.startsWith("/")) {
105389
105273
  distSrc = distSrc.substring(1);
105390
105274
  }
105391
- packageJson.source ??= `./${(0, import_path3.join)(distSrc, "index.ts").replaceAll(
105275
+ packageJson.source ??= `${(0, import_path3.join)(distSrc, "index.ts").replaceAll(
105392
105276
  "\\",
105393
105277
  "/"
105394
105278
  )}`;
@@ -105455,11 +105339,6 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
105455
105339
  cwd: workspaceRoot
105456
105340
  })
105457
105341
  );
105458
- const eventEmitter = new import_node_events.EventEmitter({ captureRejections: true });
105459
- eventEmitter.on("message", (event) => {
105460
- console.log(`\u{1F4E2} Tsup build message:
105461
- `, event);
105462
- });
105463
105342
  const config = getConfig(context.root, projectRoot, sourceRoot, {
105464
105343
  ...options,
105465
105344
  dtsTsConfig: getNormalizedTsConfig(