@storm-software/workspace-tools 1.60.22 → 1.61.0

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +2 -2
  3. package/index.js +342 -441
  4. package/meta.json +1 -1
  5. package/package.json +1 -1
  6. package/src/base/index.js +27 -18
  7. package/src/executors/npm-publish/executor.js +6 -0
  8. package/src/executors/tsup/executor.js +51 -49
  9. package/src/executors/tsup/schema.d.ts +2 -2
  10. package/src/executors/tsup/schema.json +7 -23
  11. package/src/executors/tsup-browser/executor.js +51 -47
  12. package/src/executors/tsup-neutral/executor.js +51 -47
  13. package/src/executors/tsup-node/executor.js +51 -47
  14. package/src/executors/typia/executor.js +14 -11
  15. package/src/generators/browser-library/generator.js +16 -10
  16. package/src/generators/config-schema/generator.js +10 -8
  17. package/src/generators/neutral-library/generator.js +16 -10
  18. package/src/generators/node-library/generator.js +16 -10
  19. package/src/generators/preset/generator.js +5 -5
  20. package/src/generators/release-version/generator.js +32 -19
  21. package/src/utils/index.js +279 -384
  22. package/src/executors/tsup/lib.dom.d.ts +0 -28208
  23. package/src/executors/tsup/lib.dom.iterable.d.ts +0 -732
  24. package/src/executors/tsup/lib.esnext.d.ts +0 -21
  25. package/src/executors/tsup-browser/lib.dom.d.ts +0 -28208
  26. package/src/executors/tsup-browser/lib.dom.iterable.d.ts +0 -732
  27. package/src/executors/tsup-browser/lib.esnext.d.ts +0 -21
  28. package/src/executors/tsup-neutral/lib.dom.d.ts +0 -28208
  29. package/src/executors/tsup-neutral/lib.dom.iterable.d.ts +0 -732
  30. package/src/executors/tsup-neutral/lib.esnext.d.ts +0 -21
  31. package/src/executors/tsup-node/lib.dom.d.ts +0 -28208
  32. package/src/executors/tsup-node/lib.dom.iterable.d.ts +0 -732
  33. package/src/executors/tsup-node/lib.esnext.d.ts +0 -21
package/index.js CHANGED
@@ -145,7 +145,7 @@ var require_universalify = __commonJS({
145
145
  // node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
146
146
  var require_polyfills = __commonJS({
147
147
  "node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
148
- var constants2 = require("constants");
148
+ var constants = require("constants");
149
149
  var origCwd = process.cwd;
150
150
  var cwd = null;
151
151
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -170,7 +170,7 @@ var require_polyfills = __commonJS({
170
170
  var chdir;
171
171
  module2.exports = patch;
172
172
  function patch(fs7) {
173
- if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
173
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
174
174
  patchLchmod(fs7);
175
175
  }
176
176
  if (!fs7.lutimes) {
@@ -277,7 +277,7 @@ var require_polyfills = __commonJS({
277
277
  fs8.lchmod = function(path15, mode, callback) {
278
278
  fs8.open(
279
279
  path15,
280
- constants2.O_WRONLY | constants2.O_SYMLINK,
280
+ constants.O_WRONLY | constants.O_SYMLINK,
281
281
  mode,
282
282
  function(err, fd) {
283
283
  if (err) {
@@ -295,7 +295,7 @@ var require_polyfills = __commonJS({
295
295
  );
296
296
  };
297
297
  fs8.lchmodSync = function(path15, mode) {
298
- var fd = fs8.openSync(path15, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
298
+ var fd = fs8.openSync(path15, constants.O_WRONLY | constants.O_SYMLINK, mode);
299
299
  var threw = true;
300
300
  var ret;
301
301
  try {
@@ -315,9 +315,9 @@ var require_polyfills = __commonJS({
315
315
  };
316
316
  }
317
317
  function patchLutimes(fs8) {
318
- if (constants2.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
318
+ if (constants.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
319
319
  fs8.lutimes = function(path15, at8, mt9, cb) {
320
- fs8.open(path15, constants2.O_SYMLINK, function(er7, fd) {
320
+ fs8.open(path15, constants.O_SYMLINK, function(er7, fd) {
321
321
  if (er7) {
322
322
  if (cb)
323
323
  cb(er7);
@@ -332,7 +332,7 @@ var require_polyfills = __commonJS({
332
332
  });
333
333
  };
334
334
  fs8.lutimesSync = function(path15, at8, mt9) {
335
- var fd = fs8.openSync(path15, constants2.O_SYMLINK);
335
+ var fd = fs8.openSync(path15, constants.O_SYMLINK);
336
336
  var ret;
337
337
  var threw = true;
338
338
  try {
@@ -2038,7 +2038,7 @@ var require_jsonfile = __commonJS({
2038
2038
  return obj;
2039
2039
  }
2040
2040
  var readFile3 = universalify.fromPromise(_readFile);
2041
- function readFileSync4(file, options8 = {}) {
2041
+ function readFileSync3(file, options8 = {}) {
2042
2042
  if (typeof options8 === "string") {
2043
2043
  options8 = { encoding: options8 };
2044
2044
  }
@@ -2063,16 +2063,16 @@ var require_jsonfile = __commonJS({
2063
2063
  await universalify.fromCallback(fs7.writeFile)(file, str2, options8);
2064
2064
  }
2065
2065
  var writeFile2 = universalify.fromPromise(_writeFile);
2066
- function writeFileSync3(file, obj, options8 = {}) {
2066
+ function writeFileSync2(file, obj, options8 = {}) {
2067
2067
  const fs7 = options8.fs || _fs;
2068
2068
  const str2 = stringify(obj, options8);
2069
2069
  return fs7.writeFileSync(file, str2, options8);
2070
2070
  }
2071
2071
  var jsonfile = {
2072
2072
  readFile: readFile3,
2073
- readFileSync: readFileSync4,
2073
+ readFileSync: readFileSync3,
2074
2074
  writeFile: writeFile2,
2075
- writeFileSync: writeFileSync3
2075
+ writeFileSync: writeFileSync2
2076
2076
  };
2077
2077
  module2.exports = jsonfile;
2078
2078
  }
@@ -4053,20 +4053,20 @@ var require_supports_color = __commonJS({
4053
4053
  var os6 = require("os");
4054
4054
  var tty2 = require("tty");
4055
4055
  var hasFlag2 = require_has_flag();
4056
- var { env: env3 } = process;
4056
+ var { env: env2 } = process;
4057
4057
  var forceColor;
4058
4058
  if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
4059
4059
  forceColor = 0;
4060
4060
  } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
4061
4061
  forceColor = 1;
4062
4062
  }
4063
- if ("FORCE_COLOR" in env3) {
4064
- if (env3.FORCE_COLOR === "true") {
4063
+ if ("FORCE_COLOR" in env2) {
4064
+ if (env2.FORCE_COLOR === "true") {
4065
4065
  forceColor = 1;
4066
- } else if (env3.FORCE_COLOR === "false") {
4066
+ } else if (env2.FORCE_COLOR === "false") {
4067
4067
  forceColor = 0;
4068
4068
  } else {
4069
- forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
4069
+ forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
4070
4070
  }
4071
4071
  }
4072
4072
  function translateLevel2(level) {
@@ -4094,7 +4094,7 @@ var require_supports_color = __commonJS({
4094
4094
  return 0;
4095
4095
  }
4096
4096
  const min = forceColor || 0;
4097
- if (env3.TERM === "dumb") {
4097
+ if (env2.TERM === "dumb") {
4098
4098
  return min;
4099
4099
  }
4100
4100
  if (process.platform === "win32") {
@@ -4104,34 +4104,34 @@ var require_supports_color = __commonJS({
4104
4104
  }
4105
4105
  return 1;
4106
4106
  }
4107
- if ("CI" in env3) {
4108
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign2) => sign2 in env3) || env3.CI_NAME === "codeship") {
4107
+ if ("CI" in env2) {
4108
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign2) => sign2 in env2) || env2.CI_NAME === "codeship") {
4109
4109
  return 1;
4110
4110
  }
4111
4111
  return min;
4112
4112
  }
4113
- if ("TEAMCITY_VERSION" in env3) {
4114
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
4113
+ if ("TEAMCITY_VERSION" in env2) {
4114
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
4115
4115
  }
4116
- if (env3.COLORTERM === "truecolor") {
4116
+ if (env2.COLORTERM === "truecolor") {
4117
4117
  return 3;
4118
4118
  }
4119
- if ("TERM_PROGRAM" in env3) {
4120
- const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4121
- switch (env3.TERM_PROGRAM) {
4119
+ if ("TERM_PROGRAM" in env2) {
4120
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4121
+ switch (env2.TERM_PROGRAM) {
4122
4122
  case "iTerm.app":
4123
4123
  return version >= 3 ? 3 : 2;
4124
4124
  case "Apple_Terminal":
4125
4125
  return 2;
4126
4126
  }
4127
4127
  }
4128
- if (/-256(color)?$/i.test(env3.TERM)) {
4128
+ if (/-256(color)?$/i.test(env2.TERM)) {
4129
4129
  return 2;
4130
4130
  }
4131
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
4131
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
4132
4132
  return 1;
4133
4133
  }
4134
- if ("COLORTERM" in env3) {
4134
+ if ("COLORTERM" in env2) {
4135
4135
  return 1;
4136
4136
  }
4137
4137
  return min;
@@ -7891,7 +7891,7 @@ var require_util2 = __commonJS({
7891
7891
  return path15;
7892
7892
  }
7893
7893
  exports2.normalize = normalize2;
7894
- function join9(aRoot, aPath) {
7894
+ function join7(aRoot, aPath) {
7895
7895
  if (aRoot === "") {
7896
7896
  aRoot = ".";
7897
7897
  }
@@ -7923,7 +7923,7 @@ var require_util2 = __commonJS({
7923
7923
  }
7924
7924
  return joined;
7925
7925
  }
7926
- exports2.join = join9;
7926
+ exports2.join = join7;
7927
7927
  exports2.isAbsolute = function(aPath) {
7928
7928
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
7929
7929
  };
@@ -8096,7 +8096,7 @@ var require_util2 = __commonJS({
8096
8096
  parsed.path = parsed.path.substring(0, index + 1);
8097
8097
  }
8098
8098
  }
8099
- sourceURL = join9(urlGenerate(parsed), sourceURL);
8099
+ sourceURL = join7(urlGenerate(parsed), sourceURL);
8100
8100
  }
8101
8101
  return normalize2(sourceURL);
8102
8102
  }
@@ -106391,12 +106391,12 @@ ${lanes.join("\n")}
106391
106391
  }
106392
106392
  return { decorators };
106393
106393
  }
106394
- function walkUpLexicalEnvironments2(env3, cb) {
106395
- while (env3) {
106396
- const result = cb(env3);
106394
+ function walkUpLexicalEnvironments2(env2, cb) {
106395
+ while (env2) {
106396
+ const result = cb(env2);
106397
106397
  if (result !== void 0)
106398
106398
  return result;
106399
- env3 = env3.previous;
106399
+ env2 = env2.previous;
106400
106400
  }
106401
106401
  }
106402
106402
  function newPrivateEnvironment2(data) {
@@ -106415,8 +106415,8 @@ ${lanes.join("\n")}
106415
106415
  privateEnv.identifiers.set(name.escapedText, entry);
106416
106416
  }
106417
106417
  }
106418
- function accessPrivateIdentifier2(env3, name) {
106419
- return walkUpLexicalEnvironments2(env3, (env22) => getPrivateIdentifier2(env22.privateEnv, name));
106418
+ function accessPrivateIdentifier2(env2, name) {
106419
+ return walkUpLexicalEnvironments2(env2, (env22) => getPrivateIdentifier2(env22.privateEnv, name));
106420
106420
  }
106421
106421
  var IdentifierNameMap2, IdentifierNameMultiMap2;
106422
106422
  var init_utilities3 = __esm2({
@@ -210641,7 +210641,7 @@ var require_env_paths = __commonJS({
210641
210641
  var os6 = require("os");
210642
210642
  var homedir = os6.homedir();
210643
210643
  var tmpdir = os6.tmpdir();
210644
- var { env: env3 } = process;
210644
+ var { env: env2 } = process;
210645
210645
  var macos = (name) => {
210646
210646
  const library = path15.join(homedir, "Library");
210647
210647
  return {
@@ -210653,8 +210653,8 @@ var require_env_paths = __commonJS({
210653
210653
  };
210654
210654
  };
210655
210655
  var windows = (name) => {
210656
- const appData = env3.APPDATA || path15.join(homedir, "AppData", "Roaming");
210657
- const localAppData = env3.LOCALAPPDATA || path15.join(homedir, "AppData", "Local");
210656
+ const appData = env2.APPDATA || path15.join(homedir, "AppData", "Roaming");
210657
+ const localAppData = env2.LOCALAPPDATA || path15.join(homedir, "AppData", "Local");
210658
210658
  return {
210659
210659
  // Data/config/cache/log are invented by me as Windows isn't opinionated about this
210660
210660
  data: path15.join(localAppData, name, "Data"),
@@ -210667,11 +210667,11 @@ var require_env_paths = __commonJS({
210667
210667
  var linux = (name) => {
210668
210668
  const username = path15.basename(homedir);
210669
210669
  return {
210670
- data: path15.join(env3.XDG_DATA_HOME || path15.join(homedir, ".local", "share"), name),
210671
- config: path15.join(env3.XDG_CONFIG_HOME || path15.join(homedir, ".config"), name),
210672
- cache: path15.join(env3.XDG_CACHE_HOME || path15.join(homedir, ".cache"), name),
210670
+ data: path15.join(env2.XDG_DATA_HOME || path15.join(homedir, ".local", "share"), name),
210671
+ config: path15.join(env2.XDG_CONFIG_HOME || path15.join(homedir, ".config"), name),
210672
+ cache: path15.join(env2.XDG_CACHE_HOME || path15.join(homedir, ".cache"), name),
210673
210673
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
210674
- log: path15.join(env3.XDG_STATE_HOME || path15.join(homedir, ".local", "state"), name),
210674
+ log: path15.join(env2.XDG_STATE_HOME || path15.join(homedir, ".local", "state"), name),
210675
210675
  temp: path15.join(tmpdir, username, name)
210676
210676
  };
210677
210677
  };
@@ -215471,7 +215471,7 @@ var init_get_log_level = __esm({
215471
215471
  return LogLevel.INFO;
215472
215472
  }
215473
215473
  };
215474
- getLogLevelLabel = (logLevel) => {
215474
+ getLogLevelLabel = (logLevel = LogLevel.INFO) => {
215475
215475
  if (logLevel >= LogLevel.ALL) {
215476
215476
  return LogLevelLabel.ALL;
215477
215477
  }
@@ -215797,14 +215797,14 @@ var init_set_env = __esm({
215797
215797
  if (extension[key2]) {
215798
215798
  const result = key2?.replace(
215799
215799
  /([A-Z])+/g,
215800
- (input) => input ? input[0].toUpperCase() + input.slice(1) : ""
215800
+ (input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
215801
215801
  ).split(/(?=[A-Z])|[\.\-\s_]/).map((x5) => x5.toLowerCase()) ?? [];
215802
215802
  let extensionKey;
215803
215803
  if (result.length === 0) {
215804
215804
  return;
215805
215805
  }
215806
215806
  if (result.length === 1) {
215807
- extensionKey = result[0].toUpperCase();
215807
+ extensionKey = result[0]?.toUpperCase() ?? "";
215808
215808
  } else {
215809
215809
  extensionKey = result.reduce((ret, part) => {
215810
215810
  return `${ret}_${part.toLowerCase()}`;
@@ -216499,7 +216499,7 @@ function __classPrivateFieldIn(state, receiver) {
216499
216499
  throw new TypeError("Cannot use 'in' operator on non-object");
216500
216500
  return typeof state === "function" ? receiver === state : state.has(receiver);
216501
216501
  }
216502
- function __addDisposableResource(env3, value, async) {
216502
+ function __addDisposableResource(env2, value, async) {
216503
216503
  if (value !== null && value !== void 0) {
216504
216504
  if (typeof value !== "object" && typeof value !== "function")
216505
216505
  throw new TypeError("Object expected.");
@@ -216516,20 +216516,20 @@ function __addDisposableResource(env3, value, async) {
216516
216516
  }
216517
216517
  if (typeof dispose !== "function")
216518
216518
  throw new TypeError("Object not disposable.");
216519
- env3.stack.push({ value, dispose, async });
216519
+ env2.stack.push({ value, dispose, async });
216520
216520
  } else if (async) {
216521
- env3.stack.push({ async: true });
216521
+ env2.stack.push({ async: true });
216522
216522
  }
216523
216523
  return value;
216524
216524
  }
216525
- function __disposeResources(env3) {
216525
+ function __disposeResources(env2) {
216526
216526
  function fail(e3) {
216527
- env3.error = env3.hasError ? new _SuppressedError(e3, env3.error, "An error was suppressed during disposal.") : e3;
216528
- env3.hasError = true;
216527
+ env2.error = env2.hasError ? new _SuppressedError(e3, env2.error, "An error was suppressed during disposal.") : e3;
216528
+ env2.hasError = true;
216529
216529
  }
216530
216530
  function next() {
216531
- while (env3.stack.length) {
216532
- var rec = env3.stack.pop();
216531
+ while (env2.stack.length) {
216532
+ var rec = env2.stack.pop();
216533
216533
  try {
216534
216534
  var result = rec.dispose && rec.dispose.call(rec.value);
216535
216535
  if (rec.async)
@@ -216541,8 +216541,8 @@ function __disposeResources(env3) {
216541
216541
  fail(e3);
216542
216542
  }
216543
216543
  }
216544
- if (env3.hasError)
216545
- throw env3.error;
216544
+ if (env2.hasError)
216545
+ throw env2.error;
216546
216546
  }
216547
216547
  return next();
216548
216548
  }
@@ -318106,7 +318106,7 @@ var init_prettier = __esm({
318106
318106
  require_parse2 = __commonJS2({
318107
318107
  "node_modules/picomatch/lib/parse.js"(exports2, module2) {
318108
318108
  "use strict";
318109
- var constants2 = require_constants2();
318109
+ var constants = require_constants2();
318110
318110
  var utils2 = require_utils22();
318111
318111
  var {
318112
318112
  MAX_LENGTH,
@@ -318114,7 +318114,7 @@ var init_prettier = __esm({
318114
318114
  REGEX_NON_SPECIAL_CHARS,
318115
318115
  REGEX_SPECIAL_CHARS_BACKREF,
318116
318116
  REPLACEMENTS
318117
- } = constants2;
318117
+ } = constants;
318118
318118
  var expandRange = (args, options8) => {
318119
318119
  if (typeof options8.expandRange === "function") {
318120
318120
  return options8.expandRange(...args, options8);
@@ -318146,8 +318146,8 @@ var init_prettier = __esm({
318146
318146
  const tokens = [bos];
318147
318147
  const capture = opts.capture ? "" : "?:";
318148
318148
  const win322 = utils2.isWindows(options8);
318149
- const PLATFORM_CHARS = constants2.globChars(win322);
318150
- const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
318149
+ const PLATFORM_CHARS = constants.globChars(win322);
318150
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
318151
318151
  const {
318152
318152
  DOT_LITERAL,
318153
318153
  PLUS_LITERAL,
@@ -318829,7 +318829,7 @@ var init_prettier = __esm({
318829
318829
  NO_DOTS_SLASH,
318830
318830
  STAR,
318831
318831
  START_ANCHOR
318832
- } = constants2.globChars(win322);
318832
+ } = constants.globChars(win322);
318833
318833
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
318834
318834
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
318835
318835
  const capture = opts.capture ? "" : "?:";
@@ -318889,7 +318889,7 @@ var init_prettier = __esm({
318889
318889
  var scan = require_scan();
318890
318890
  var parse6 = require_parse2();
318891
318891
  var utils2 = require_utils22();
318892
- var constants2 = require_constants2();
318892
+ var constants = require_constants2();
318893
318893
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
318894
318894
  var picomatch = (glob2, options8, returnState = false) => {
318895
318895
  if (Array.isArray(glob2)) {
@@ -319020,7 +319020,7 @@ var init_prettier = __esm({
319020
319020
  return /$^/;
319021
319021
  }
319022
319022
  };
319023
- picomatch.constants = constants2;
319023
+ picomatch.constants = constants;
319024
319024
  module2.exports = picomatch;
319025
319025
  }
319026
319026
  });
@@ -324285,7 +324285,7 @@ var init_prettier = __esm({
324285
324285
  "node_modules/ci-info/index.js"(exports2) {
324286
324286
  "use strict";
324287
324287
  var vendors = require_vendors();
324288
- var env22 = process.env;
324288
+ var env2 = process.env;
324289
324289
  Object.defineProperty(exports2, "_vendors", {
324290
324290
  value: vendors.map(function(v5) {
324291
324291
  return v5.constant;
@@ -324305,14 +324305,14 @@ var init_prettier = __esm({
324305
324305
  exports2.name = vendor.name;
324306
324306
  switch (typeof vendor.pr) {
324307
324307
  case "string":
324308
- exports2.isPR = !!env22[vendor.pr];
324308
+ exports2.isPR = !!env2[vendor.pr];
324309
324309
  break;
324310
324310
  case "object":
324311
324311
  if ("env" in vendor.pr) {
324312
- exports2.isPR = vendor.pr.env in env22 && env22[vendor.pr.env] !== vendor.pr.ne;
324312
+ exports2.isPR = vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne;
324313
324313
  } else if ("any" in vendor.pr) {
324314
324314
  exports2.isPR = vendor.pr.any.some(function(key2) {
324315
- return !!env22[key2];
324315
+ return !!env2[key2];
324316
324316
  });
324317
324317
  } else {
324318
324318
  exports2.isPR = checkEnv(vendor.pr);
@@ -324322,30 +324322,30 @@ var init_prettier = __esm({
324322
324322
  exports2.isPR = null;
324323
324323
  }
324324
324324
  });
324325
- exports2.isCI = !!(env22.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
324326
- (env22.BUILD_ID || // Jenkins, Cloudbees
324327
- env22.BUILD_NUMBER || // Jenkins, TeamCity
324328
- env22.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
324329
- env22.CI_APP_ID || // Appflow
324330
- env22.CI_BUILD_ID || // Appflow
324331
- env22.CI_BUILD_NUMBER || // Appflow
324332
- env22.CI_NAME || // Codeship and others
324333
- env22.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
324334
- env22.RUN_ID || // TaskCluster, dsari
324325
+ exports2.isCI = !!(env2.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
324326
+ (env2.BUILD_ID || // Jenkins, Cloudbees
324327
+ env2.BUILD_NUMBER || // Jenkins, TeamCity
324328
+ env2.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
324329
+ env2.CI_APP_ID || // Appflow
324330
+ env2.CI_BUILD_ID || // Appflow
324331
+ env2.CI_BUILD_NUMBER || // Appflow
324332
+ env2.CI_NAME || // Codeship and others
324333
+ env2.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
324334
+ env2.RUN_ID || // TaskCluster, dsari
324335
324335
  exports2.name || false));
324336
324336
  function checkEnv(obj) {
324337
324337
  if (typeof obj === "string")
324338
- return !!env22[obj];
324338
+ return !!env2[obj];
324339
324339
  if ("env" in obj) {
324340
- return env22[obj.env] && env22[obj.env].includes(obj.includes);
324340
+ return env2[obj.env] && env2[obj.env].includes(obj.includes);
324341
324341
  }
324342
324342
  if ("any" in obj) {
324343
324343
  return obj.any.some(function(k6) {
324344
- return !!env22[k6];
324344
+ return !!env2[k6];
324345
324345
  });
324346
324346
  }
324347
324347
  return Object.keys(obj).every(function(k6) {
324348
- return env22[k6] === obj[k6];
324348
+ return env2[k6] === obj[k6];
324349
324349
  });
324350
324350
  }
324351
324351
  }
@@ -327340,15 +327340,15 @@ var init_prettier = __esm({
327340
327340
  "use strict";
327341
327341
  var os22 = __require("os");
327342
327342
  var hasFlag2 = require_has_flag2();
327343
- var env22 = process.env;
327343
+ var env2 = process.env;
327344
327344
  var forceColor;
327345
327345
  if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
327346
327346
  forceColor = false;
327347
327347
  } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
327348
327348
  forceColor = true;
327349
327349
  }
327350
- if ("FORCE_COLOR" in env22) {
327351
- forceColor = env22.FORCE_COLOR.length === 0 || parseInt(env22.FORCE_COLOR, 10) !== 0;
327350
+ if ("FORCE_COLOR" in env2) {
327351
+ forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
327352
327352
  }
327353
327353
  function translateLevel2(level) {
327354
327354
  if (level === 0) {
@@ -327382,37 +327382,37 @@ var init_prettier = __esm({
327382
327382
  }
327383
327383
  return 1;
327384
327384
  }
327385
- if ("CI" in env22) {
327386
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign2) => sign2 in env22) || env22.CI_NAME === "codeship") {
327385
+ if ("CI" in env2) {
327386
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign2) => sign2 in env2) || env2.CI_NAME === "codeship") {
327387
327387
  return 1;
327388
327388
  }
327389
327389
  return min;
327390
327390
  }
327391
- if ("TEAMCITY_VERSION" in env22) {
327392
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env22.TEAMCITY_VERSION) ? 1 : 0;
327391
+ if ("TEAMCITY_VERSION" in env2) {
327392
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
327393
327393
  }
327394
- if (env22.COLORTERM === "truecolor") {
327394
+ if (env2.COLORTERM === "truecolor") {
327395
327395
  return 3;
327396
327396
  }
327397
- if ("TERM_PROGRAM" in env22) {
327398
- const version = parseInt((env22.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
327399
- switch (env22.TERM_PROGRAM) {
327397
+ if ("TERM_PROGRAM" in env2) {
327398
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
327399
+ switch (env2.TERM_PROGRAM) {
327400
327400
  case "iTerm.app":
327401
327401
  return version >= 3 ? 3 : 2;
327402
327402
  case "Apple_Terminal":
327403
327403
  return 2;
327404
327404
  }
327405
327405
  }
327406
- if (/-256(color)?$/i.test(env22.TERM)) {
327406
+ if (/-256(color)?$/i.test(env2.TERM)) {
327407
327407
  return 2;
327408
327408
  }
327409
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env22.TERM)) {
327409
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
327410
327410
  return 1;
327411
327411
  }
327412
- if ("COLORTERM" in env22) {
327412
+ if ("COLORTERM" in env2) {
327413
327413
  return 1;
327414
327414
  }
327415
- if (env22.TERM === "dumb") {
327415
+ if (env2.TERM === "dumb") {
327416
327416
  return min;
327417
327417
  }
327418
327418
  return min;
@@ -332951,7 +332951,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
332951
332951
  var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
332952
332952
  var literalline2 = [literallineWithoutBreakParent2, breakParent3];
332953
332953
  var cursor3 = { type: DOC_TYPE_CURSOR3 };
332954
- function join9(separator, docs) {
332954
+ function join7(separator, docs) {
332955
332955
  assertDoc3(separator);
332956
332956
  assertDocArray3(docs);
332957
332957
  const parts = [];
@@ -333349,7 +333349,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
333349
333349
  return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
333350
333350
  }
333351
333351
  function replaceEndOfLine2(doc, replacement = literalline2) {
333352
- return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join9(replacement, currentDoc.split("\n")) : currentDoc);
333352
+ return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join7(replacement, currentDoc.split("\n")) : currentDoc);
333353
333353
  }
333354
333354
  function canBreakFn2(doc) {
333355
333355
  if (doc.type === DOC_TYPE_LINE3) {
@@ -333924,7 +333924,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
333924
333924
  };
333925
333925
  }
333926
333926
  var builders2 = {
333927
- join: join9,
333927
+ join: join7,
333928
333928
  line: line3,
333929
333929
  softline: softline2,
333930
333930
  hardline: hardline3,
@@ -338077,7 +338077,7 @@ var require_subset = __commonJS({
338077
338077
  var require_semver3 = __commonJS({
338078
338078
  "node_modules/.pnpm/semver@7.5.4/node_modules/semver/index.js"(exports2, module2) {
338079
338079
  var internalRe = require_re2();
338080
- var constants2 = require_constants5();
338080
+ var constants = require_constants5();
338081
338081
  var SemVer = require_semver2();
338082
338082
  var identifiers = require_identifiers2();
338083
338083
  var parse6 = require_parse3();
@@ -338159,8 +338159,8 @@ var require_semver3 = __commonJS({
338159
338159
  re: internalRe.re,
338160
338160
  src: internalRe.src,
338161
338161
  tokens: internalRe.t,
338162
- SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
338163
- RELEASE_TYPES: constants2.RELEASE_TYPES,
338162
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
338163
+ RELEASE_TYPES: constants.RELEASE_TYPES,
338164
338164
  compareIdentifiers: identifiers.compareIdentifiers,
338165
338165
  rcompareIdentifiers: identifiers.rcompareIdentifiers
338166
338166
  };
@@ -342839,11 +342839,11 @@ var require_codegen = __commonJS({
342839
342839
  const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
342840
342840
  return `${varKind} ${this.name}${rhs};` + _n6;
342841
342841
  }
342842
- optimizeNames(names3, constants2) {
342842
+ optimizeNames(names3, constants) {
342843
342843
  if (!names3[this.name.str])
342844
342844
  return;
342845
342845
  if (this.rhs)
342846
- this.rhs = optimizeExpr(this.rhs, names3, constants2);
342846
+ this.rhs = optimizeExpr(this.rhs, names3, constants);
342847
342847
  return this;
342848
342848
  }
342849
342849
  get names() {
@@ -342860,10 +342860,10 @@ var require_codegen = __commonJS({
342860
342860
  render({ _n: _n6 }) {
342861
342861
  return `${this.lhs} = ${this.rhs};` + _n6;
342862
342862
  }
342863
- optimizeNames(names3, constants2) {
342863
+ optimizeNames(names3, constants) {
342864
342864
  if (this.lhs instanceof code_1.Name && !names3[this.lhs.str] && !this.sideEffects)
342865
342865
  return;
342866
- this.rhs = optimizeExpr(this.rhs, names3, constants2);
342866
+ this.rhs = optimizeExpr(this.rhs, names3, constants);
342867
342867
  return this;
342868
342868
  }
342869
342869
  get names() {
@@ -342924,8 +342924,8 @@ var require_codegen = __commonJS({
342924
342924
  optimizeNodes() {
342925
342925
  return `${this.code}` ? this : void 0;
342926
342926
  }
342927
- optimizeNames(names3, constants2) {
342928
- this.code = optimizeExpr(this.code, names3, constants2);
342927
+ optimizeNames(names3, constants) {
342928
+ this.code = optimizeExpr(this.code, names3, constants);
342929
342929
  return this;
342930
342930
  }
342931
342931
  get names() {
@@ -342954,12 +342954,12 @@ var require_codegen = __commonJS({
342954
342954
  }
342955
342955
  return nodes.length > 0 ? this : void 0;
342956
342956
  }
342957
- optimizeNames(names3, constants2) {
342957
+ optimizeNames(names3, constants) {
342958
342958
  const { nodes } = this;
342959
342959
  let i3 = nodes.length;
342960
342960
  while (i3--) {
342961
342961
  const n = nodes[i3];
342962
- if (n.optimizeNames(names3, constants2))
342962
+ if (n.optimizeNames(names3, constants))
342963
342963
  continue;
342964
342964
  subtractNames(names3, n.names);
342965
342965
  nodes.splice(i3, 1);
@@ -343012,12 +343012,12 @@ var require_codegen = __commonJS({
343012
343012
  return void 0;
343013
343013
  return this;
343014
343014
  }
343015
- optimizeNames(names3, constants2) {
343015
+ optimizeNames(names3, constants) {
343016
343016
  var _a3;
343017
- this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names3, constants2);
343018
- if (!(super.optimizeNames(names3, constants2) || this.else))
343017
+ this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names3, constants);
343018
+ if (!(super.optimizeNames(names3, constants) || this.else))
343019
343019
  return;
343020
- this.condition = optimizeExpr(this.condition, names3, constants2);
343020
+ this.condition = optimizeExpr(this.condition, names3, constants);
343021
343021
  return this;
343022
343022
  }
343023
343023
  get names() {
@@ -343040,10 +343040,10 @@ var require_codegen = __commonJS({
343040
343040
  render(opts) {
343041
343041
  return `for(${this.iteration})` + super.render(opts);
343042
343042
  }
343043
- optimizeNames(names3, constants2) {
343044
- if (!super.optimizeNames(names3, constants2))
343043
+ optimizeNames(names3, constants) {
343044
+ if (!super.optimizeNames(names3, constants))
343045
343045
  return;
343046
- this.iteration = optimizeExpr(this.iteration, names3, constants2);
343046
+ this.iteration = optimizeExpr(this.iteration, names3, constants);
343047
343047
  return this;
343048
343048
  }
343049
343049
  get names() {
@@ -343079,10 +343079,10 @@ var require_codegen = __commonJS({
343079
343079
  render(opts) {
343080
343080
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
343081
343081
  }
343082
- optimizeNames(names3, constants2) {
343083
- if (!super.optimizeNames(names3, constants2))
343082
+ optimizeNames(names3, constants) {
343083
+ if (!super.optimizeNames(names3, constants))
343084
343084
  return;
343085
- this.iterable = optimizeExpr(this.iterable, names3, constants2);
343085
+ this.iterable = optimizeExpr(this.iterable, names3, constants);
343086
343086
  return this;
343087
343087
  }
343088
343088
  get names() {
@@ -343124,11 +343124,11 @@ var require_codegen = __commonJS({
343124
343124
  (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();
343125
343125
  return this;
343126
343126
  }
343127
- optimizeNames(names3, constants2) {
343127
+ optimizeNames(names3, constants) {
343128
343128
  var _a3, _b;
343129
- super.optimizeNames(names3, constants2);
343130
- (_a3 = this.catch) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names3, constants2);
343131
- (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names3, constants2);
343129
+ super.optimizeNames(names3, constants);
343130
+ (_a3 = this.catch) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names3, constants);
343131
+ (_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names3, constants);
343132
343132
  return this;
343133
343133
  }
343134
343134
  get names() {
@@ -343429,7 +343429,7 @@ var require_codegen = __commonJS({
343429
343429
  function addExprNames(names3, from) {
343430
343430
  return from instanceof code_1._CodeOrName ? addNames(names3, from.names) : names3;
343431
343431
  }
343432
- function optimizeExpr(expr, names3, constants2) {
343432
+ function optimizeExpr(expr, names3, constants) {
343433
343433
  if (expr instanceof code_1.Name)
343434
343434
  return replaceName(expr);
343435
343435
  if (!canOptimize(expr))
@@ -343444,14 +343444,14 @@ var require_codegen = __commonJS({
343444
343444
  return items;
343445
343445
  }, []));
343446
343446
  function replaceName(n) {
343447
- const c4 = constants2[n.str];
343447
+ const c4 = constants[n.str];
343448
343448
  if (c4 === void 0 || names3[n.str] !== 1)
343449
343449
  return n;
343450
343450
  delete names3[n.str];
343451
343451
  return c4;
343452
343452
  }
343453
343453
  function canOptimize(e3) {
343454
- return e3 instanceof code_1._Code && e3._items.some((c4) => c4 instanceof code_1.Name && names3[c4.str] === 1 && constants2[c4.str] !== void 0);
343454
+ return e3 instanceof code_1._Code && e3._items.some((c4) => c4 instanceof code_1.Name && names3[c4.str] === 1 && constants[c4.str] !== void 0);
343455
343455
  }
343456
343456
  }
343457
343457
  function subtractNames(names3, from) {
@@ -345305,20 +345305,20 @@ var require_compile2 = __commonJS({
345305
345305
  var util_1 = require_util4();
345306
345306
  var validate_1 = require_validate();
345307
345307
  var SchemaEnv = class {
345308
- constructor(env3) {
345308
+ constructor(env2) {
345309
345309
  var _a3;
345310
345310
  this.refs = {};
345311
345311
  this.dynamicAnchors = {};
345312
345312
  let schema2;
345313
- if (typeof env3.schema == "object")
345314
- schema2 = env3.schema;
345315
- this.schema = env3.schema;
345316
- this.schemaId = env3.schemaId;
345317
- this.root = env3.root || this;
345318
- this.baseId = (_a3 = env3.baseId) !== null && _a3 !== void 0 ? _a3 : (0, resolve_1.normalizeId)(schema2 === null || schema2 === void 0 ? void 0 : schema2[env3.schemaId || "$id"]);
345319
- this.schemaPath = env3.schemaPath;
345320
- this.localRefs = env3.localRefs;
345321
- this.meta = env3.meta;
345313
+ if (typeof env2.schema == "object")
345314
+ schema2 = env2.schema;
345315
+ this.schema = env2.schema;
345316
+ this.schemaId = env2.schemaId;
345317
+ this.root = env2.root || this;
345318
+ this.baseId = (_a3 = env2.baseId) !== null && _a3 !== void 0 ? _a3 : (0, resolve_1.normalizeId)(schema2 === null || schema2 === void 0 ? void 0 : schema2[env2.schemaId || "$id"]);
345319
+ this.schemaPath = env2.schemaPath;
345320
+ this.localRefs = env2.localRefs;
345321
+ this.meta = env2.meta;
345322
345322
  this.$async = schema2 === null || schema2 === void 0 ? void 0 : schema2.$async;
345323
345323
  this.refs = {};
345324
345324
  }
@@ -345501,15 +345501,15 @@ var require_compile2 = __commonJS({
345501
345501
  baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);
345502
345502
  }
345503
345503
  }
345504
- let env3;
345504
+ let env2;
345505
345505
  if (typeof schema2 != "boolean" && schema2.$ref && !(0, util_1.schemaHasRulesButRef)(schema2, this.RULES)) {
345506
345506
  const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema2.$ref);
345507
- env3 = resolveSchema.call(this, root2, $ref);
345507
+ env2 = resolveSchema.call(this, root2, $ref);
345508
345508
  }
345509
345509
  const { schemaId } = this.opts;
345510
- env3 = env3 || new SchemaEnv({ schema: schema2, schemaId, root: root2, baseId });
345511
- if (env3.schema !== env3.root.schema)
345512
- return env3;
345510
+ env2 = env2 || new SchemaEnv({ schema: schema2, schemaId, root: root2, baseId });
345511
+ if (env2.schema !== env2.root.schema)
345512
+ return env2;
345513
345513
  return void 0;
345514
345514
  }
345515
345515
  }
@@ -347224,8 +347224,8 @@ var require_ref = __commonJS({
347224
347224
  schemaType: "string",
347225
347225
  code(cxt) {
347226
347226
  const { gen, schema: $ref, it: it6 } = cxt;
347227
- const { baseId, schemaEnv: env3, validateName, opts, self: self2 } = it6;
347228
- const { root: root2 } = env3;
347227
+ const { baseId, schemaEnv: env2, validateName, opts, self: self2 } = it6;
347228
+ const { root: root2 } = env2;
347229
347229
  if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
347230
347230
  return callRootRef();
347231
347231
  const schOrEnv = compile_1.resolveRef.call(self2, root2, baseId, $ref);
@@ -347235,8 +347235,8 @@ var require_ref = __commonJS({
347235
347235
  return callValidate(schOrEnv);
347236
347236
  return inlineRefSchema(schOrEnv);
347237
347237
  function callRootRef() {
347238
- if (env3 === root2)
347239
- return callRef(cxt, validateName, env3, env3.$async);
347238
+ if (env2 === root2)
347239
+ return callRef(cxt, validateName, env2, env2.$async);
347240
347240
  const rootName = gen.scopeValue("root", { ref: root2 });
347241
347241
  return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root2, root2.$async);
347242
347242
  }
@@ -347266,14 +347266,14 @@ var require_ref = __commonJS({
347266
347266
  exports2.getValidate = getValidate;
347267
347267
  function callRef(cxt, v5, sch, $async) {
347268
347268
  const { gen, it: it6 } = cxt;
347269
- const { allErrors, schemaEnv: env3, opts } = it6;
347269
+ const { allErrors, schemaEnv: env2, opts } = it6;
347270
347270
  const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
347271
347271
  if ($async)
347272
347272
  callAsyncRef();
347273
347273
  else
347274
347274
  callSyncRef();
347275
347275
  function callAsyncRef() {
347276
- if (!env3.$async)
347276
+ if (!env2.$async)
347277
347277
  throw new Error("async schema referenced by sync schema");
347278
347278
  const valid = gen.let("valid");
347279
347279
  gen.try(() => {
@@ -359459,7 +359459,7 @@ var require_util5 = __commonJS({
359459
359459
  return path15;
359460
359460
  });
359461
359461
  exports2.normalize = normalize2;
359462
- function join9(aRoot, aPath) {
359462
+ function join7(aRoot, aPath) {
359463
359463
  if (aRoot === "") {
359464
359464
  aRoot = ".";
359465
359465
  }
@@ -359491,7 +359491,7 @@ var require_util5 = __commonJS({
359491
359491
  }
359492
359492
  return joined;
359493
359493
  }
359494
- exports2.join = join9;
359494
+ exports2.join = join7;
359495
359495
  exports2.isAbsolute = function(aPath) {
359496
359496
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
359497
359497
  };
@@ -359664,7 +359664,7 @@ var require_util5 = __commonJS({
359664
359664
  parsed.path = parsed.path.substring(0, index + 1);
359665
359665
  }
359666
359666
  }
359667
- sourceURL = join9(urlGenerate(parsed), sourceURL);
359667
+ sourceURL = join7(urlGenerate(parsed), sourceURL);
359668
359668
  }
359669
359669
  return normalize2(sourceURL);
359670
359670
  }
@@ -363356,14 +363356,14 @@ var require_path2 = __commonJS({
363356
363356
  return normalize2(path16.slice(0, endIndex));
363357
363357
  }
363358
363358
  exports2.dirname = dirname4;
363359
- function join9(p12, ...others) {
363359
+ function join7(p12, ...others) {
363360
363360
  if (others.length > 0) {
363361
363361
  return normalize2((p12 ? p12 + exports2.NormalizedSep : "") + others.join(exports2.NormalizedSep));
363362
363362
  } else {
363363
363363
  return p12;
363364
363364
  }
363365
363365
  }
363366
- exports2.join = join9;
363366
+ exports2.join = join7;
363367
363367
  function isAbsolute(p4) {
363368
363368
  return p4.startsWith(exports2.NormalizedSep);
363369
363369
  }
@@ -363398,7 +363398,7 @@ var require_path2 = __commonJS({
363398
363398
  if (isAbsolute(p22)) {
363399
363399
  return p22;
363400
363400
  } else {
363401
- return join9(p12, p22);
363401
+ return join7(p12, p22);
363402
363402
  }
363403
363403
  }
363404
363404
  exports2.resolve = resolve3;
@@ -364810,7 +364810,7 @@ var require_scan3 = __commonJS({
364810
364810
  var require_parse4 = __commonJS({
364811
364811
  "node_modules/.pnpm/picomatch@4.0.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
364812
364812
  "use strict";
364813
- var constants2 = require_constants6();
364813
+ var constants = require_constants6();
364814
364814
  var utils2 = require_utils8();
364815
364815
  var {
364816
364816
  MAX_LENGTH,
@@ -364818,7 +364818,7 @@ var require_parse4 = __commonJS({
364818
364818
  REGEX_NON_SPECIAL_CHARS,
364819
364819
  REGEX_SPECIAL_CHARS_BACKREF,
364820
364820
  REPLACEMENTS
364821
- } = constants2;
364821
+ } = constants;
364822
364822
  var expandRange = (args, options8) => {
364823
364823
  if (typeof options8.expandRange === "function") {
364824
364824
  return options8.expandRange(...args, options8);
@@ -364849,8 +364849,8 @@ var require_parse4 = __commonJS({
364849
364849
  const bos = { type: "bos", value: "", output: opts.prepend || "" };
364850
364850
  const tokens = [bos];
364851
364851
  const capture = opts.capture ? "" : "?:";
364852
- const PLATFORM_CHARS = constants2.globChars(opts.windows);
364853
- const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
364852
+ const PLATFORM_CHARS = constants.globChars(opts.windows);
364853
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
364854
364854
  const {
364855
364855
  DOT_LITERAL,
364856
364856
  PLUS_LITERAL,
@@ -365528,7 +365528,7 @@ var require_parse4 = __commonJS({
365528
365528
  NO_DOTS_SLASH,
365529
365529
  STAR,
365530
365530
  START_ANCHOR
365531
- } = constants2.globChars(opts.windows);
365531
+ } = constants.globChars(opts.windows);
365532
365532
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
365533
365533
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
365534
365534
  const capture = opts.capture ? "" : "?:";
@@ -365589,7 +365589,7 @@ var require_picomatch3 = __commonJS({
365589
365589
  var scan = require_scan3();
365590
365590
  var parse6 = require_parse4();
365591
365591
  var utils2 = require_utils8();
365592
- var constants2 = require_constants6();
365592
+ var constants = require_constants6();
365593
365593
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
365594
365594
  var picomatch = (glob2, options8, returnState = false) => {
365595
365595
  if (Array.isArray(glob2)) {
@@ -365720,7 +365720,7 @@ var require_picomatch3 = __commonJS({
365720
365720
  return /$^/;
365721
365721
  }
365722
365722
  };
365723
- picomatch.constants = constants2;
365723
+ picomatch.constants = constants;
365724
365724
  module2.exports = picomatch;
365725
365725
  }
365726
365726
  });
@@ -370796,7 +370796,7 @@ var require_scan4 = __commonJS({
370796
370796
  var require_parse5 = __commonJS({
370797
370797
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
370798
370798
  "use strict";
370799
- var constants2 = require_constants7();
370799
+ var constants = require_constants7();
370800
370800
  var utils2 = require_utils9();
370801
370801
  var {
370802
370802
  MAX_LENGTH,
@@ -370804,7 +370804,7 @@ var require_parse5 = __commonJS({
370804
370804
  REGEX_NON_SPECIAL_CHARS,
370805
370805
  REGEX_SPECIAL_CHARS_BACKREF,
370806
370806
  REPLACEMENTS
370807
- } = constants2;
370807
+ } = constants;
370808
370808
  var expandRange = (args, options8) => {
370809
370809
  if (typeof options8.expandRange === "function") {
370810
370810
  return options8.expandRange(...args, options8);
@@ -370836,8 +370836,8 @@ var require_parse5 = __commonJS({
370836
370836
  const tokens = [bos];
370837
370837
  const capture = opts.capture ? "" : "?:";
370838
370838
  const win322 = utils2.isWindows(options8);
370839
- const PLATFORM_CHARS = constants2.globChars(win322);
370840
- const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
370839
+ const PLATFORM_CHARS = constants.globChars(win322);
370840
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
370841
370841
  const {
370842
370842
  DOT_LITERAL,
370843
370843
  PLUS_LITERAL,
@@ -371519,7 +371519,7 @@ var require_parse5 = __commonJS({
371519
371519
  NO_DOTS_SLASH,
371520
371520
  STAR,
371521
371521
  START_ANCHOR
371522
- } = constants2.globChars(win322);
371522
+ } = constants.globChars(win322);
371523
371523
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
371524
371524
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
371525
371525
  const capture = opts.capture ? "" : "?:";
@@ -371581,7 +371581,7 @@ var require_picomatch5 = __commonJS({
371581
371581
  var scan = require_scan4();
371582
371582
  var parse6 = require_parse5();
371583
371583
  var utils2 = require_utils9();
371584
- var constants2 = require_constants7();
371584
+ var constants = require_constants7();
371585
371585
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
371586
371586
  var picomatch = (glob2, options8, returnState = false) => {
371587
371587
  if (Array.isArray(glob2)) {
@@ -371712,7 +371712,7 @@ var require_picomatch5 = __commonJS({
371712
371712
  return /$^/;
371713
371713
  }
371714
371714
  };
371715
- picomatch.constants = constants2;
371715
+ picomatch.constants = constants;
371716
371716
  module2.exports = picomatch;
371717
371717
  }
371718
371718
  });
@@ -379248,7 +379248,7 @@ var require_buffer_list = __commonJS({
379248
379248
  }
379249
379249
  }, {
379250
379250
  key: "join",
379251
- value: function join9(s) {
379251
+ value: function join7(s) {
379252
379252
  if (this.length === 0)
379253
379253
  return "";
379254
379254
  var p4 = this.head;
@@ -399600,8 +399600,8 @@ var require_build2 = __commonJS({
399600
399600
  if (typeof envPrefix === "undefined")
399601
399601
  return;
399602
399602
  const prefix = typeof envPrefix === "string" ? envPrefix : "";
399603
- const env4 = mixin.env();
399604
- Object.keys(env4).forEach(function(envVar) {
399603
+ const env3 = mixin.env();
399604
+ Object.keys(env3).forEach(function(envVar) {
399605
399605
  if (prefix === "" || envVar.lastIndexOf(prefix, 0) === 0) {
399606
399606
  const keys = envVar.split("__").map(function(key2, i3) {
399607
399607
  if (i3 === 0) {
@@ -399610,7 +399610,7 @@ var require_build2 = __commonJS({
399610
399610
  return camelCase(key2);
399611
399611
  });
399612
399612
  if ((configOnly && flags.configs[keys.join(".")] || !configOnly) && !hasKey(argv2, keys)) {
399613
- setArg(keys.join("."), env4[envVar]);
399613
+ setArg(keys.join("."), env3[envVar]);
399614
399614
  }
399615
399615
  }
399616
399616
  });
@@ -399917,11 +399917,11 @@ var require_build2 = __commonJS({
399917
399917
  throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
399918
399918
  }
399919
399919
  }
399920
- var env3 = process ? process.env : {};
399920
+ var env2 = process ? process.env : {};
399921
399921
  var parser = new YargsParser({
399922
399922
  cwd: process.cwd,
399923
399923
  env: () => {
399924
- return env3;
399924
+ return env2;
399925
399925
  },
399926
399926
  format: util3.format,
399927
399927
  normalize: path15.normalize,
@@ -400838,7 +400838,7 @@ var require_strip_it = __commonJS({
400838
400838
  return this.nodes.length > 0 && this.nodes[0].protected === true;
400839
400839
  }
400840
400840
  };
400841
- var constants2 = {
400841
+ var constants = {
400842
400842
  ESCAPED_CHAR_REGEX: /^\\./,
400843
400843
  QUOTED_STRING_REGEX: /^(['"`])((?:\\.|[^\1])+?)(\1)/,
400844
400844
  NEWLINE_REGEX: /^\r*\n/,
@@ -400849,7 +400849,7 @@ var require_strip_it = __commonJS({
400849
400849
  var parse6 = (input) => {
400850
400850
  const cst = new TextBlock({ type: "root", nodes: [] });
400851
400851
  const stack2 = [cst];
400852
- const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants2;
400852
+ const { ESCAPED_CHAR_REGEX, QUOTED_STRING_REGEX, NEWLINE_REGEX, BLOCK_CLOSE_REGEX, BLOCK_OPEN_REGEX, LINE_REGEX } = constants;
400853
400853
  let block = cst;
400854
400854
  let remaining = input;
400855
400855
  let token2;
@@ -402993,7 +402993,7 @@ var require_chunk_GQ77QZBO = __commonJS({
402993
402993
  }
402994
402994
  _fs2.default.mkdirSync(dirPath, { recursive: true });
402995
402995
  const gitIgnorePath = _path2.default.join(options8.workspaceRoot, "tmp", ".tsup", ".gitignore");
402996
- writeFileSync3(gitIgnorePath, "**/*\n");
402996
+ writeFileSync2(gitIgnorePath, "**/*\n");
402997
402997
  return dirPath;
402998
402998
  }
402999
402999
  var toObjectEntry = (entry) => {
@@ -403042,7 +403042,7 @@ var require_chunk_GQ77QZBO = __commonJS({
403042
403042
  function trimDtsExtension(fileName) {
403043
403043
  return fileName.replace(/\.d\.(ts|mts|cts)x?$/, "");
403044
403044
  }
403045
- function writeFileSync3(filePath, content) {
403045
+ function writeFileSync2(filePath, content) {
403046
403046
  _fs2.default.mkdirSync(_path2.default.dirname(filePath), { recursive: true });
403047
403047
  _fs2.default.writeFileSync(filePath, content);
403048
403048
  }
@@ -403063,7 +403063,7 @@ var require_chunk_GQ77QZBO = __commonJS({
403063
403063
  exports2.toObjectEntry = toObjectEntry;
403064
403064
  exports2.toAbsolutePath = toAbsolutePath2;
403065
403065
  exports2.trimDtsExtension = trimDtsExtension;
403066
- exports2.writeFileSync = writeFileSync3;
403066
+ exports2.writeFileSync = writeFileSync2;
403067
403067
  }
403068
403068
  });
403069
403069
 
@@ -403138,13 +403138,13 @@ var require_chunk_UIX4URMV = __commonJS({
403138
403138
  });
403139
403139
  var _tty = require("tty");
403140
403140
  var tty2 = _interopRequireWildcard(_tty);
403141
- var env3 = process.env || {};
403141
+ var env2 = process.env || {};
403142
403142
  var argv = process.argv || [];
403143
- var isDisabled = "NO_COLOR" in env3 || argv.includes("--no-color");
403144
- var isForced = "FORCE_COLOR" in env3 || argv.includes("--color");
403143
+ var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
403144
+ var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
403145
403145
  var isWindows = process.platform === "win32";
403146
- var isCompatibleTerminal = tty2 && tty2.isatty && tty2.isatty(1) && env3.TERM && env3.TERM !== "dumb";
403147
- var isCI = "CI" in env3 && ("GITHUB_ACTIONS" in env3 || "GITLAB_CI" in env3 || "CIRCLECI" in env3);
403146
+ var isCompatibleTerminal = tty2 && tty2.isatty && tty2.isatty(1) && env2.TERM && env2.TERM !== "dumb";
403147
+ var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
403148
403148
  var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
403149
403149
  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));
403150
403150
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -403305,7 +403305,7 @@ var require_lib6 = __commonJS({
403305
403305
  function _interopRequireDefault(obj) {
403306
403306
  return obj && obj.__esModule ? obj : { default: obj };
403307
403307
  }
403308
- var readFileSync4 = (fp3) => {
403308
+ var readFileSync3 = (fp3) => {
403309
403309
  return _fs.default.readFileSync(fp3, "utf8");
403310
403310
  };
403311
403311
  var pathExists = (fp3) => new Promise((resolve3) => {
@@ -403429,7 +403429,7 @@ var require_lib6 = __commonJS({
403429
403429
  if (this.packageJsonCache.has(filepath2)) {
403430
403430
  return this.packageJsonCache.get(filepath2)[options8.packageKey];
403431
403431
  }
403432
- const data2 = this.options.parseJSON(readFileSync4(filepath2));
403432
+ const data2 = this.options.parseJSON(readFileSync3(filepath2));
403433
403433
  return data2;
403434
403434
  }
403435
403435
  };
@@ -403463,7 +403463,7 @@ var require_lib6 = __commonJS({
403463
403463
  if (this.packageJsonCache.has(filepath2)) {
403464
403464
  return this.packageJsonCache.get(filepath2)[options8.packageKey];
403465
403465
  }
403466
- const data2 = this.options.parseJSON(readFileSync4(filepath2));
403466
+ const data2 = this.options.parseJSON(readFileSync3(filepath2));
403467
403467
  return data2;
403468
403468
  }
403469
403469
  };
@@ -404481,7 +404481,7 @@ var require_resolveCommand = __commonJS({
404481
404481
  var which = require_which();
404482
404482
  var getPathKey = require_path_key();
404483
404483
  function resolveCommandAttempt(parsed, withoutPathExt) {
404484
- const env3 = parsed.options.env || process.env;
404484
+ const env2 = parsed.options.env || process.env;
404485
404485
  const cwd = process.cwd();
404486
404486
  const hasCustomCwd = parsed.options.cwd != null;
404487
404487
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
@@ -404494,7 +404494,7 @@ var require_resolveCommand = __commonJS({
404494
404494
  let resolved;
404495
404495
  try {
404496
404496
  resolved = which.sync(parsed.command, {
404497
- path: env3[getPathKey({ env: env3 })],
404497
+ path: env2[getPathKey({ env: env2 })],
404498
404498
  pathExt: withoutPathExt ? path15.delimiter : void 0
404499
404499
  });
404500
404500
  } catch (e3) {
@@ -404779,11 +404779,11 @@ var require_npm_run_path = __commonJS({
404779
404779
  env: process.env,
404780
404780
  ...options8
404781
404781
  };
404782
- const env3 = { ...options8.env };
404783
- const path16 = pathKey({ env: env3 });
404784
- options8.path = env3[path16];
404785
- env3[path16] = module2.exports(options8);
404786
- return env3;
404782
+ const env2 = { ...options8.env };
404783
+ const path16 = pathKey({ env: env2 });
404784
+ options8.path = env2[path16];
404785
+ env2[path16] = module2.exports(options8);
404786
+ return env2;
404787
404787
  };
404788
404788
  }
404789
404789
  });
@@ -405729,11 +405729,11 @@ var require_execa = __commonJS({
405729
405729
  var { joinCommand, parseCommand, getEscapedCommand } = require_command();
405730
405730
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
405731
405731
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
405732
- const env3 = extendEnv ? { ...process.env, ...envOption } : envOption;
405732
+ const env2 = extendEnv ? { ...process.env, ...envOption } : envOption;
405733
405733
  if (preferLocal) {
405734
- return npmRunPath.env({ env: env3, cwd: localDir, execPath });
405734
+ return npmRunPath.env({ env: env2, cwd: localDir, execPath });
405735
405735
  }
405736
- return env3;
405736
+ return env2;
405737
405737
  };
405738
405738
  var handleArguments = (file, args, options8 = {}) => {
405739
405739
  const parsed = crossSpawn._parse(file, args, options8);
@@ -429114,7 +429114,7 @@ var require_util8 = __commonJS({
429114
429114
  var normalize2 = createSafeHandler((url2) => {
429115
429115
  });
429116
429116
  exports2.normalize = normalize2;
429117
- function join9(aRoot, aPath) {
429117
+ function join7(aRoot, aPath) {
429118
429118
  const pathType = getURLType(aPath);
429119
429119
  const rootType = getURLType(aRoot);
429120
429120
  aRoot = ensureDirectory(aRoot);
@@ -429140,7 +429140,7 @@ var require_util8 = __commonJS({
429140
429140
  const newPath = withBase(aPath, withBase(aRoot, base));
429141
429141
  return computeRelativeURL(base, newPath);
429142
429142
  }
429143
- exports2.join = join9;
429143
+ exports2.join = join7;
429144
429144
  function relative2(rootURL, targetURL) {
429145
429145
  const result = relativeIfPossible(rootURL, targetURL);
429146
429146
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -429170,9 +429170,9 @@ var require_util8 = __commonJS({
429170
429170
  }
429171
429171
  let url2 = normalize2(sourceURL || "");
429172
429172
  if (sourceRoot)
429173
- url2 = join9(sourceRoot, url2);
429173
+ url2 = join7(sourceRoot, url2);
429174
429174
  if (sourceMapURL)
429175
- url2 = join9(trimFilename(sourceMapURL), url2);
429175
+ url2 = join7(trimFilename(sourceMapURL), url2);
429176
429176
  return url2;
429177
429177
  }
429178
429178
  exports2.computeSourceURL = computeSourceURL;
@@ -430937,8 +430937,8 @@ var require_source_map3 = __commonJS({
430937
430937
  // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js
430938
430938
  var require_native = __commonJS({
430939
430939
  "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
430940
- var { existsSync: existsSync6 } = require("node:fs");
430941
- var { join: join9 } = require("node:path");
430940
+ var { existsSync: existsSync4 } = require("node:fs");
430941
+ var { join: join7 } = require("node:path");
430942
430942
  var { platform, arch, report } = require("node:process");
430943
430943
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
430944
430944
  var bindingsByPlatformAndArch = {
@@ -431012,7 +431012,7 @@ If this is important to you, please consider supporting Rollup to make a native
431012
431012
  }
431013
431013
  };
431014
431014
  var { parse: parse6, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
431015
- existsSync6(join9(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
431015
+ existsSync4(join7(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
431016
431016
  );
431017
431017
  module2.exports.parse = parse6;
431018
431018
  module2.exports.parseAsync = parseAsync;
@@ -434552,16 +434552,16 @@ var require_rollup = __commonJS({
434552
434552
  return outputOptions;
434553
434553
  }
434554
434554
  var {
434555
- env: env3 = {},
434555
+ env: env2 = {},
434556
434556
  argv = [],
434557
434557
  platform = ""
434558
434558
  } = typeof process === "undefined" ? {} : process;
434559
- var isDisabled = "NO_COLOR" in env3 || argv.includes("--no-color");
434560
- var isForced = "FORCE_COLOR" in env3 || argv.includes("--color");
434559
+ var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
434560
+ var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
434561
434561
  var isWindows = platform === "win32";
434562
- var isDumbTerminal = env3.TERM === "dumb";
434563
- var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env3.TERM && !isDumbTerminal;
434564
- var isCI = "CI" in env3 && ("GITHUB_ACTIONS" in env3 || "GITLAB_CI" in env3 || "CIRCLECI" in env3);
434562
+ var isDumbTerminal = env2.TERM === "dumb";
434563
+ var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env2.TERM && !isDumbTerminal;
434564
+ var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
434565
434565
  var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
434566
434566
  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));
434567
434567
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -437897,7 +437897,7 @@ var require_rollup = __commonJS({
437897
437897
  var scan = scan_1;
437898
437898
  var parse6 = parse_1;
437899
437899
  var utils2 = utils$3;
437900
- var constants2 = constants$2;
437900
+ var constants = constants$2;
437901
437901
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
437902
437902
  var picomatch$1 = (glob2, options8, returnState = false) => {
437903
437903
  if (Array.isArray(glob2)) {
@@ -438028,7 +438028,7 @@ var require_rollup = __commonJS({
438028
438028
  return /$^/;
438029
438029
  }
438030
438030
  };
438031
- picomatch$1.constants = constants2;
438031
+ picomatch$1.constants = constants;
438032
438032
  var picomatch_1 = picomatch$1;
438033
438033
  var picomatch = picomatch_1;
438034
438034
  var pm = /* @__PURE__ */ getDefaultExportFromCjs(picomatch);
@@ -452853,7 +452853,7 @@ var require_shared = __commonJS({
452853
452853
  var binaryExtensions = binaryExtensions$1;
452854
452854
  var extensions = new Set(binaryExtensions);
452855
452855
  var isBinaryPath$1 = (filePath) => extensions.has(path15.extname(filePath).slice(1).toLowerCase());
452856
- var constants2 = {};
452856
+ var constants = {};
452857
452857
  (function(exports3) {
452858
452858
  const { sep: sep4 } = require$$0$2;
452859
452859
  const { platform } = process;
@@ -452912,7 +452912,7 @@ var require_shared = __commonJS({
452912
452912
  exports3.isMacos = platform === "darwin";
452913
452913
  exports3.isLinux = platform === "linux";
452914
452914
  exports3.isIBMi = os6.type() === "OS400";
452915
- })(constants2);
452915
+ })(constants);
452916
452916
  var fs$2 = require$$0$1;
452917
452917
  var sysPath$2 = require$$0$2;
452918
452918
  var { promisify: promisify$2 } = require$$2;
@@ -452934,7 +452934,7 @@ var require_shared = __commonJS({
452934
452934
  STR_END: STR_END$2,
452935
452935
  BRACE_START: BRACE_START$1,
452936
452936
  STAR
452937
- } = constants2;
452937
+ } = constants;
452938
452938
  var THROTTLE_MODE_WATCH = "watch";
452939
452939
  var open = promisify$2(fs$2.open);
452940
452940
  var stat$2 = promisify$2(fs$2.stat);
@@ -453457,7 +453457,7 @@ var require_shared = __commonJS({
453457
453457
  FUNCTION_TYPE: FUNCTION_TYPE$1,
453458
453458
  EMPTY_FN: EMPTY_FN$1,
453459
453459
  IDENTITY_FN
453460
- } = constants2;
453460
+ } = constants;
453461
453461
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
453462
453462
  var stat$1 = promisify$1(fs$1.stat);
453463
453463
  var lstat2 = promisify$1(fs$1.lstat);
@@ -453874,7 +453874,7 @@ var require_shared = __commonJS({
453874
453874
  isWindows,
453875
453875
  isMacos,
453876
453876
  isIBMi
453877
- } = constants2;
453877
+ } = constants;
453878
453878
  var stat2 = promisify(fs7.stat);
453879
453879
  var readdir2 = promisify(fs7.readdir);
453880
453880
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
@@ -456695,11 +456695,11 @@ var require_dist7 = __commonJS({
456695
456695
  ];
456696
456696
  const outDir = options8.outDir;
456697
456697
  const outExtension2 = getOutputExtensionMap(options8, format3, pkg.type);
456698
- const env3 = {
456698
+ const env2 = {
456699
456699
  ...options8.env
456700
456700
  };
456701
456701
  if (options8.replaceNodeEnv) {
456702
- env3.NODE_ENV = options8.minify || options8.minifyWhitespace ? "production" : "development";
456702
+ env2.NODE_ENV = options8.minify || options8.minifyWhitespace ? "production" : "development";
456703
456703
  }
456704
456704
  logger3.info(format3, "Build start");
456705
456705
  const startTime = Date.now();
@@ -456795,8 +456795,8 @@ var require_dist7 = __commonJS({
456795
456795
  "import.meta.url": "importMetaUrl"
456796
456796
  } : {},
456797
456797
  ...options8.define,
456798
- ...Object.keys(env3).reduce((res, key2) => {
456799
- const value = JSON.stringify(env3[key2]);
456798
+ ...Object.keys(env2).reduce((res, key2) => {
456799
+ const value = JSON.stringify(env2[key2]);
456800
456800
  return {
456801
456801
  ...res,
456802
456802
  [`process.env.${key2}`]: value,
@@ -462471,7 +462471,7 @@ var require_iterate_metadata_intersection = __commonJS({
462471
462471
  var _b2 = __read2(_a4, 1), c7 = _b2[0];
462472
462472
  return c7.size() === 1 && (c7.atomics.length === 1 || c7.constants.length === 1 && c7.constants[0].type === "boolean" || c7.arrays.length === 1);
462473
462473
  });
462474
- var constants2 = children.filter(function(m3) {
462474
+ var constants = children.filter(function(m3) {
462475
462475
  return m3.size() === m3.constants.map(function(c7) {
462476
462476
  return c7.values.length;
462477
462477
  }).reduce(function(a2, b8) {
@@ -462501,7 +462501,7 @@ var require_iterate_metadata_intersection = __commonJS({
462501
462501
  return a2.type.name;
462502
462502
  });
462503
462503
  }).flat());
462504
- if (atomics.size + arrays.size > 1 || individuals.length + objects.length + constants2.length !== children.length) {
462504
+ if (atomics.size + arrays.size > 1 || individuals.length + objects.length + constants.length !== children.length) {
462505
462505
  errors.push({
462506
462506
  name: children.map(function(c7) {
462507
462507
  return c7.getName();
@@ -462510,9 +462510,9 @@ var require_iterate_metadata_intersection = __commonJS({
462510
462510
  messages: ["nonsensible intersection"]
462511
462511
  });
462512
462512
  return true;
462513
- } else if (atomics.size === 0 && arrays.size === 0 && constants2.length) {
462513
+ } else if (atomics.size === 0 && arrays.size === 0 && constants.length) {
462514
462514
  try {
462515
- for (var constants_1 = __values2(constants2), constants_1_1 = constants_1.next(); !constants_1_1.done; constants_1_1 = constants_1.next()) {
462515
+ for (var constants_1 = __values2(constants), constants_1_1 = constants_1.next(); !constants_1_1.done; constants_1_1 = constants_1.next()) {
462516
462516
  var m2 = constants_1_1.value;
462517
462517
  try {
462518
462518
  for (var _e12 = (e_2 = void 0, __values2(m2.templates)), _f = _e12.next(); !_f.done; _f = _e12.next()) {
@@ -465180,7 +465180,7 @@ var require_TransformerError = __commonJS({
465180
465180
  TransformerError2.from = function(method) {
465181
465181
  return function(errors) {
465182
465182
  var body = errors.map(function(e3) {
465183
- var subject = e3.explore.object === null ? "" : join9(e3.explore.object)(e3.explore.property);
465183
+ var subject = e3.explore.object === null ? "" : join7(e3.explore.object)(e3.explore.property);
465184
465184
  var type2 = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e3.name);
465185
465185
  return "- ".concat(type2, "\n").concat(e3.messages.map(function(msg) {
465186
465186
  return " - ".concat(msg);
@@ -465192,7 +465192,7 @@ var require_TransformerError = __commonJS({
465192
465192
  });
465193
465193
  };
465194
465194
  };
465195
- var join9 = function(object) {
465195
+ var join7 = function(object) {
465196
465196
  return function(key2) {
465197
465197
  if (key2 === null)
465198
465198
  return object.name;
@@ -471292,13 +471292,13 @@ var require_application_object = __commonJS({
471292
471292
  // swagger can't express patternProperties
471293
471293
  "x-typia-additionalProperties": extraProps.additionalProperties,
471294
471294
  "x-typia-patternProperties": extraProps.patternProperties,
471295
- additionalProperties: join9(options8)(components)(extraMeta)
471295
+ additionalProperties: join7(options8)(components)(extraMeta)
471296
471296
  } : {});
471297
471297
  };
471298
471298
  };
471299
471299
  };
471300
471300
  };
471301
- var join9 = function(options8) {
471301
+ var join7 = function(options8) {
471302
471302
  return function(components) {
471303
471303
  return function(extra) {
471304
471304
  var _a3;
@@ -480785,10 +480785,10 @@ var require_update_lock_file = __commonJS({
480785
480785
  const packageManagerCommands = (0, devkit_1.getPackageManagerCommand)(packageManager);
480786
480786
  let installArgs = generatorOptions?.installArgs || "";
480787
480787
  devkit_1.output.logSingleLine(`Updating ${packageManager} lock file`);
480788
- let env3 = {};
480788
+ let env2 = {};
480789
480789
  if (generatorOptions?.installIgnoreScripts) {
480790
480790
  if (packageManager === "yarn") {
480791
- env3 = { YARN_ENABLE_SCRIPTS: "false" };
480791
+ env2 = { YARN_ENABLE_SCRIPTS: "false" };
480792
480792
  } else {
480793
480793
  installArgs = `${installArgs} --ignore-scripts`.trim();
480794
480794
  }
@@ -480806,7 +480806,7 @@ var require_update_lock_file = __commonJS({
480806
480806
  if (dryRun) {
480807
480807
  return [];
480808
480808
  }
480809
- execLockFileUpdate(command, cwd, env3);
480809
+ execLockFileUpdate(command, cwd, env2);
480810
480810
  if (isDaemonEnabled) {
480811
480811
  try {
480812
480812
  await client_1.daemonClient.startInBackground();
@@ -480822,13 +480822,13 @@ var require_update_lock_file = __commonJS({
480822
480822
  return [lockFile];
480823
480823
  }
480824
480824
  exports2.updateLockFile = updateLockFile2;
480825
- function execLockFileUpdate(command, cwd, env3 = {}) {
480825
+ function execLockFileUpdate(command, cwd, env2 = {}) {
480826
480826
  try {
480827
480827
  (0, child_process_1.execSync)(command, {
480828
480828
  cwd,
480829
480829
  env: {
480830
480830
  ...process.env,
480831
- ...env3
480831
+ ...env2
480832
480832
  }
480833
480833
  });
480834
480834
  } catch (e3) {
@@ -483219,7 +483219,6 @@ var require_resolve_local_package_dependencies = __commonJS({
483219
483219
  // packages/workspace-tools/index.ts
483220
483220
  var workspace_tools_exports = {};
483221
483221
  __export(workspace_tools_exports, {
483222
- WorkspaceStorage: () => WorkspaceStorage,
483223
483222
  addLint: () => addLint,
483224
483223
  applyDefaultOptions: () => applyDefaultOptions,
483225
483224
  applyWorkspaceExecutorTokens: () => applyWorkspaceExecutorTokens,
@@ -483229,7 +483228,6 @@ __export(workspace_tools_exports, {
483229
483228
  createProjectTsConfigJson: () => createProjectTsConfigJson,
483230
483229
  defaultConfig: () => defaultConfig,
483231
483230
  eslintVersion: () => eslintVersion,
483232
- findCacheDirectory: () => findCacheDirectory,
483233
483231
  findFileName: () => findFileName,
483234
483232
  getConfig: () => getConfig,
483235
483233
  getExternalDependencies: () => getExternalDependencies,
@@ -483296,9 +483294,13 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
483296
483294
  sourceRoot = context.sourceRoot;
483297
483295
  } else {
483298
483296
  const projectConfig = tokenizerOptions;
483299
- projectName = projectConfig.name;
483300
483297
  projectRoot = projectConfig.root;
483301
- sourceRoot = projectConfig.sourceRoot;
483298
+ if (projectConfig.name) {
483299
+ projectName = projectConfig.name;
483300
+ }
483301
+ if (projectConfig.sourceRoot) {
483302
+ sourceRoot = projectConfig.sourceRoot;
483303
+ }
483302
483304
  }
483303
483305
  if (tokenizerOptions.config) {
483304
483306
  const configKeys = Object.keys(tokenizerOptions.config);
@@ -483322,7 +483324,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
483322
483324
  if (result.includes("{workspaceRoot}")) {
483323
483325
  result = result.replaceAll(
483324
483326
  "{workspaceRoot}",
483325
- tokenizerOptions.workspaceRoot ?? findWorkspaceRootSafe()
483327
+ tokenizerOptions.workspaceRoot ?? findWorkspaceRoot()
483326
483328
  );
483327
483329
  }
483328
483330
  return result;
@@ -483345,7 +483347,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
483345
483347
  if (result.includes("{workspaceRoot}")) {
483346
483348
  result = result.replaceAll(
483347
483349
  "{workspaceRoot}",
483348
- tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? findWorkspaceRootSafe()
483350
+ tokenizerOptions.workspaceRoot ?? tokenizerOptions.config?.workspaceRoot ?? findWorkspaceRoot()
483349
483351
  );
483350
483352
  }
483351
483353
  return result;
@@ -483370,7 +483372,6 @@ var applyWorkspaceTokens = (options8, config, tokenizerFn) => {
483370
483372
  };
483371
483373
 
483372
483374
  // packages/workspace-tools/src/base/base-executor.ts
483373
- init_src2();
483374
483375
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
483375
483376
  const stopwatch = getStopwatch(name);
483376
483377
  let options8 = _options;
@@ -483383,10 +483384,10 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
483383
483384
  "The Build process failed because the context is not valid. Please run this command from a workspace."
483384
483385
  );
483385
483386
  }
483386
- const workspaceRoot = findWorkspaceRootSafe();
483387
- const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
483388
- const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
483389
- const projectName = context.projectsConfigurations.projects[context.projectName].name;
483387
+ const workspaceRoot = findWorkspaceRoot();
483388
+ const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
483389
+ const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
483390
+ const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
483390
483391
  if (!executorOptions.skipReadingConfig) {
483391
483392
  const { loadStormConfig: loadStormConfig2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
483392
483393
  writeDebug(
@@ -483517,7 +483518,7 @@ ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.en
483517
483518
  writeTrace(
483518
483519
  config,
483519
483520
  `Generator schema options \u2699\uFE0F
483520
- ${Object.keys(options8).map((key2) => ` - ${key2}=${JSON.stringify(options8[key2])}`).join("\n")}`
483521
+ ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options8[key2])}`).join("\n")}`
483521
483522
  );
483522
483523
  const tokenized = applyWorkspaceTokens(
483523
483524
  options8,
@@ -483588,7 +483589,7 @@ function defaultConfig({
483588
483589
  metafile = true,
483589
483590
  skipNativeModulesPlugin = false,
483590
483591
  define: define2,
483591
- env: env3,
483592
+ env: env2,
483592
483593
  plugins,
483593
483594
  generatePackageJson,
483594
483595
  dtsTsConfig,
@@ -483616,7 +483617,7 @@ function defaultConfig({
483616
483617
  platform,
483617
483618
  banner,
483618
483619
  define: define2,
483619
- env: env3,
483620
+ env: env2,
483620
483621
  dts: false,
483621
483622
  experimentalDts: {
483622
483623
  entry,
@@ -483726,7 +483727,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema2) {
483726
483727
  const projectConfig = {
483727
483728
  root: options8.directory,
483728
483729
  projectType: "library",
483729
- sourceRoot: (0, import_devkit2.joinPathFragments)(options8.directory, "src"),
483730
+ sourceRoot: (0, import_devkit2.joinPathFragments)(options8.directory ?? "", "src"),
483730
483731
  targets: {
483731
483732
  build: {
483732
483733
  executor: schema2.buildExecutor,
@@ -483765,7 +483766,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema2) {
483765
483766
  test: {}
483766
483767
  }
483767
483768
  };
483768
- if (schema2.platform) {
483769
+ if (schema2.platform && projectConfig?.targets?.build) {
483769
483770
  projectConfig.targets.build.options.platform = schema2.platform;
483770
483771
  }
483771
483772
  createProjectTsConfigJson(tree, options8);
@@ -483784,9 +483785,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema2) {
483784
483785
  description = packageJson.description;
483785
483786
  }
483786
483787
  }
483788
+ if (!options8.importPath) {
483789
+ options8.importPath = options8.name;
483790
+ }
483787
483791
  const packageJsonPath = (0, import_devkit2.joinPathFragments)(options8.projectRoot, "package.json");
483788
483792
  if (tree.exists(packageJsonPath)) {
483789
483793
  (0, import_devkit2.updateJson)(tree, packageJsonPath, (json2) => {
483794
+ if (!options8.importPath) {
483795
+ options8.importPath = options8.name;
483796
+ }
483790
483797
  json2.name = options8.importPath;
483791
483798
  json2.version = "0.0.1";
483792
483799
  if (json2.private && (options8.publishable || options8.rootProject)) {
@@ -483825,14 +483832,14 @@ async function typeScriptLibraryGeneratorFn(tree, schema2) {
483825
483832
  }
483826
483833
  });
483827
483834
  }
483828
- if (tree.exists("package.json")) {
483835
+ if (tree.exists("package.json") && options8.importPath) {
483829
483836
  (0, import_devkit2.updateJson)(tree, "package.json", (json2) => ({
483830
483837
  ...json2,
483831
483838
  pnpm: {
483832
483839
  ...json2?.pnpm,
483833
483840
  overrides: {
483834
483841
  ...json2?.pnpm?.overrides,
483835
- [options8.importPath]: "workspace:*"
483842
+ [options8.importPath ?? ""]: "workspace:*"
483836
483843
  }
483837
483844
  }
483838
483845
  }));
@@ -483931,7 +483938,7 @@ async function addLint(tree, options8) {
483931
483938
  ruleSeverity = value[0];
483932
483939
  ruleOptions = value[1];
483933
483940
  } else {
483934
- ruleSeverity = value;
483941
+ ruleSeverity = value ?? "error";
483935
483942
  ruleOptions = {};
483936
483943
  }
483937
483944
  if (options8.bundler === "esbuild") {
@@ -484105,10 +484112,10 @@ var environmentPlugin = (data) => ({
484105
484112
  name: PLUGIN_NAME2,
484106
484113
  async setup(build2) {
484107
484114
  const entries = Array.isArray(data) ? data.map((key2) => [key2, ""]) : Object.entries(data);
484108
- const env3 = Object.fromEntries(entries.map(([key2, defaultValue]) => {
484115
+ const env2 = Object.fromEntries(entries.map(([key2, defaultValue]) => {
484109
484116
  return [key2, String(process.env[key2] ?? defaultValue)];
484110
484117
  }));
484111
- await definePlugin({ process: { env: env3 } }).setup(build2);
484118
+ await definePlugin({ process: { env: env2 } }).setup(build2);
484112
484119
  }
484113
484120
  });
484114
484121
 
@@ -484119,7 +484126,7 @@ var import_typescript = __toESM(require_typescript());
484119
484126
  // packages/workspace-tools/src/utils/file-path-utils.ts
484120
484127
  var import_node_path4 = require("node:path");
484121
484128
  var removeExtension = (filePath) => {
484122
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
484129
+ return !filePath || (filePath.match(/./g) || []).length <= 1 ? "." : filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
484123
484130
  };
484124
484131
  function findFileName(filePath) {
484125
484132
  return filePath?.split(filePath?.includes(import_node_path4.sep) ? import_node_path4.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
@@ -484160,17 +484167,17 @@ var applyDefaultOptions = (options8) => {
484160
484167
  return options8;
484161
484168
  };
484162
484169
  var runTsupBuild = async (context, config, options8) => {
484163
- const stormEnv = Object.keys(options8.env).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
484164
- ret[key2] = options8.env[key2];
484170
+ const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
484171
+ ret[key2] = options8.env?.[key2];
484165
484172
  return ret;
484166
484173
  }, {});
484167
- options8.plugins.push(
484174
+ options8.plugins?.push(
484168
484175
  (0, import_esbuild_decorators.esbuildDecorators)({
484169
484176
  tsconfig: options8.tsConfig,
484170
484177
  cwd: config.workspaceRoot
484171
484178
  })
484172
484179
  );
484173
- options8.plugins.push(environmentPlugin(stormEnv));
484180
+ options8.plugins?.push(environmentPlugin(stormEnv));
484174
484181
  const getConfigOptions = {
484175
484182
  ...options8,
484176
484183
  main: context.main,
@@ -484188,7 +484195,7 @@ var runTsupBuild = async (context, config, options8) => {
484188
484195
  },
484189
484196
  dtsTsConfig: getNormalizedTsConfig(
484190
484197
  context,
484191
- config.workspaceRoot,
484198
+ config.workspaceRoot ?? ".",
484192
484199
  options8.outputPath,
484193
484200
  createTypeScriptCompilationOptions(
484194
484201
  (0, import_normalize_options.normalizeOptions)(
@@ -484198,9 +484205,9 @@ var runTsupBuild = async (context, config, options8) => {
484198
484205
  main: context.main,
484199
484206
  transformers: []
484200
484207
  },
484201
- config.workspaceRoot,
484208
+ config.workspaceRoot ?? ".",
484202
484209
  context.sourceRoot,
484203
- config.workspaceRoot
484210
+ config.workspaceRoot ?? "."
484204
484211
  ),
484205
484212
  context.projectName
484206
484213
  )
@@ -484223,7 +484230,7 @@ ${options8.banner}
484223
484230
  const getConfigFns = [options8.getConfig];
484224
484231
  const tsupConfig = (0, import_tsup.defineConfig)(
484225
484232
  getConfigFns.map(
484226
- (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
484233
+ (getConfigFn) => getConfig(config.workspaceRoot ?? ".", context.projectRoot, getConfigFn, getConfigOptions)
484227
484234
  )
484228
484235
  );
484229
484236
  if (_isFunction2(tsupConfig)) {
@@ -484232,7 +484239,7 @@ ${options8.banner}
484232
484239
  } else {
484233
484240
  await build(tsupConfig, config);
484234
484241
  }
484235
- } else if (getLogLevel(config?.logLevel) >= LogLevel.WARN) {
484242
+ } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
484236
484243
  writeWarning(
484237
484244
  config,
484238
484245
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -490504,7 +490511,7 @@ var import_fileutils = require("nx/src/utils/fileutils.js");
490504
490511
  // packages/workspace-tools/src/utils/get-project-configurations.ts
490505
490512
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
490506
490513
  init_src2();
490507
- var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(findWorkspaceRootSafe());
490514
+ var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(findWorkspaceRoot());
490508
490515
  var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
490509
490516
 
490510
490517
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -490513,18 +490520,19 @@ function getExtraDependencies(projectName, graph) {
490513
490520
  recur(projectName);
490514
490521
  function recur(currProjectName) {
490515
490522
  const allDeps = graph.dependencies[currProjectName];
490516
- const externalDeps = allDeps.reduce((acc, node) => {
490517
- const found = graph.externalNodes[node.target];
490518
- if (found)
490523
+ const externalDeps = allDeps?.reduce((acc, node) => {
490524
+ const found = graph.externalNodes?.[node.target];
490525
+ if (found) {
490519
490526
  acc.push(found);
490527
+ }
490520
490528
  return acc;
490521
- }, []);
490522
- const internalDeps = allDeps.reduce((acc, node) => {
490529
+ }, []) ?? [];
490530
+ const internalDeps = allDeps?.reduce((acc, node) => {
490523
490531
  const found = graph.nodes[node.target];
490524
490532
  if (found)
490525
490533
  acc.push(found);
490526
490534
  return acc;
490527
- }, []);
490535
+ }, []) ?? [];
490528
490536
  for (const externalDep of externalDeps) {
490529
490537
  deps.set(externalDep.name, {
490530
490538
  name: externalDep.name,
@@ -490539,7 +490547,7 @@ function getExtraDependencies(projectName, graph) {
490539
490547
  return Array.from(deps.values());
490540
490548
  }
490541
490549
  function getInternalDependencies(projectName, graph) {
490542
- const allDeps = graph.dependencies[projectName];
490550
+ const allDeps = graph.dependencies[projectName] ?? [];
490543
490551
  return Array.from(
490544
490552
  allDeps.reduce((acc, node) => {
490545
490553
  const found = graph.nodes[node.target];
@@ -490552,17 +490560,16 @@ function getInternalDependencies(projectName, graph) {
490552
490560
  function getExternalDependencies(projectName, graph) {
490553
490561
  const allDeps = graph.dependencies[projectName];
490554
490562
  return Array.from(
490555
- allDeps.reduce((acc, node) => {
490556
- const found = graph.externalNodes[node.target];
490563
+ allDeps?.reduce((acc, node) => {
490564
+ const found = graph.externalNodes?.[node.target];
490557
490565
  if (found)
490558
490566
  acc.push(found);
490559
490567
  return acc;
490560
- }, [])
490561
- );
490568
+ }, []) ?? []
490569
+ ) ?? [];
490562
490570
  }
490563
490571
 
490564
490572
  // packages/workspace-tools/src/executors/tsup/executor.ts
490565
- init_src2();
490566
490573
  async function tsupExecutorFn(options8, context, config) {
490567
490574
  writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
490568
490575
  getLogLevel(config?.logLevel) >= LogLevel.TRACE && writeDebug(
@@ -490578,9 +490585,9 @@ ${Object.keys(options8).map(
490578
490585
  "The Build process failed because the context is not valid. Please run this command from a workspace."
490579
490586
  );
490580
490587
  }
490581
- const workspaceRoot = findWorkspaceRootSafe();
490582
- const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
490583
- const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
490588
+ const workspaceRoot = findWorkspaceRoot();
490589
+ const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
490590
+ const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
490584
490591
  if (options8.clean !== false) {
490585
490592
  writeInfo(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
490586
490593
  (0, import_fs_extra.removeSync)(options8.outputPath);
@@ -490635,7 +490642,7 @@ ${Object.keys(options8).map(
490635
490642
  const externalDependencies = options8.external.reduce(
490636
490643
  (ret, name) => {
490637
490644
  if (!packageJson?.devDependencies?.[name]) {
490638
- const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
490645
+ const externalNode = context.projectGraph?.externalNodes?.[`npm:${name}`];
490639
490646
  if (externalNode) {
490640
490647
  ret.push({
490641
490648
  name,
@@ -490648,7 +490655,7 @@ ${Object.keys(options8).map(
490648
490655
  },
490649
490656
  []
490650
490657
  );
490651
- const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
490658
+ const implicitDependencies = context.projectsConfigurations.projects[context.projectName]?.implicitDependencies;
490652
490659
  const internalDependencies = [];
490653
490660
  const projectConfigs = await Promise.resolve(getProjectConfigurations());
490654
490661
  if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
@@ -490661,7 +490668,7 @@ ${Object.keys(options8).map(
490661
490668
  const projectConfig = projectConfigs[key2];
490662
490669
  if (projectConfig?.targets?.build) {
490663
490670
  const projectPackageJson = (0, import_devkit4.readJsonFile)(projectConfig.targets?.build.options.project);
490664
- if (projectPackageJson?.name && !options8.external.includes(projectPackageJson.name)) {
490671
+ if (projectPackageJson?.name && !options8.external?.includes(projectPackageJson.name)) {
490665
490672
  ret.push(projectPackageJson.name);
490666
490673
  internalDependencies.push(projectPackageJson.name);
490667
490674
  }
@@ -490729,7 +490736,7 @@ ${externalDependencies.map((dep) => {
490729
490736
  packageJson.dependencies = void 0;
490730
490737
  for (const externalDependency of externalDependencies) {
490731
490738
  const packageConfig = externalDependency?.node?.data;
490732
- if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
490739
+ if (packageConfig?.packageName && !!(projectGraph.externalNodes?.[externalDependency.node.name]?.type === "npm")) {
490733
490740
  const { packageName, version } = packageConfig;
490734
490741
  if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
490735
490742
  packageJson.dependencies ??= {};
@@ -490777,16 +490784,16 @@ ${externalDependencies.map((dep) => {
490777
490784
  }
490778
490785
  packageJson.exports[`./${formattedEntryPoint}`] = {
490779
490786
  import: {
490780
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.d.ts`,
490781
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.js`
490787
+ types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
490788
+ default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
490782
490789
  },
490783
490790
  require: {
490784
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.d.cts`,
490785
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.cjs`
490791
+ types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.cts`,
490792
+ default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.cjs`
490786
490793
  },
490787
490794
  default: {
490788
- types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.d.ts`,
490789
- default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0], formattedEntryPoint)}.js`
490795
+ types: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.d.ts`,
490796
+ default: `./${(0, import_devkit4.joinPathFragments)(distPaths[0] ?? "./", formattedEntryPoint)}.js`
490790
490797
  }
490791
490798
  };
490792
490799
  }
@@ -490836,10 +490843,10 @@ ${externalDependencies.map((dep) => {
490836
490843
  }
490837
490844
  if (options8.includeSrc === true) {
490838
490845
  const files = globSync([
490839
- (0, import_devkit4.joinPathFragments)(config.workspaceRoot, options8.outputPath, "src/**/*.ts"),
490840
- (0, import_devkit4.joinPathFragments)(config.workspaceRoot, options8.outputPath, "src/**/*.tsx"),
490841
- (0, import_devkit4.joinPathFragments)(config.workspaceRoot, options8.outputPath, "src/**/*.js"),
490842
- (0, import_devkit4.joinPathFragments)(config.workspaceRoot, options8.outputPath, "src/**/*.jsx")
490846
+ (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.ts"),
490847
+ (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.tsx"),
490848
+ (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
490849
+ (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
490843
490850
  ]);
490844
490851
  await Promise.allSettled(
490845
490852
  files.map(
@@ -490859,10 +490866,11 @@ ${(0, import_node_fs3.readFileSync)(file, "utf-8")}`,
490859
490866
  {
490860
490867
  main: entryPoint,
490861
490868
  projectRoot,
490869
+ // biome-ignore lint/style/noNonNullAssertion: <explanation>
490862
490870
  projectName: context.projectName,
490863
490871
  sourceRoot
490864
490872
  },
490865
- config,
490873
+ config ?? {},
490866
490874
  options8
490867
490875
  )
490868
490876
  )
@@ -490912,7 +490920,7 @@ var neutralConfig = ({
490912
490920
  metafile = true,
490913
490921
  skipNativeModulesPlugin = false,
490914
490922
  define: define2,
490915
- env: env3,
490923
+ env: env2,
490916
490924
  apiReport = true,
490917
490925
  docModel = true,
490918
490926
  tsdocMetadata = true,
@@ -490944,7 +490952,7 @@ var neutralConfig = ({
490944
490952
  platform,
490945
490953
  banner,
490946
490954
  define: define2,
490947
- env: env3,
490955
+ env: env2,
490948
490956
  dts: false,
490949
490957
  minify,
490950
490958
  experimentalDts: {
@@ -491045,7 +491053,7 @@ function nodeConfig({
491045
491053
  metafile = true,
491046
491054
  skipNativeModulesPlugin = false,
491047
491055
  define: define2,
491048
- env: env3,
491056
+ env: env2,
491049
491057
  plugins,
491050
491058
  generatePackageJson,
491051
491059
  dtsTsConfig,
@@ -491073,7 +491081,7 @@ function nodeConfig({
491073
491081
  platform,
491074
491082
  banner,
491075
491083
  define: define2,
491076
- env: env3,
491084
+ env: env2,
491077
491085
  dts: false,
491078
491086
  minify,
491079
491087
  experimentalDts: {
@@ -491171,7 +491179,7 @@ var browserConfig = ({
491171
491179
  metafile = true,
491172
491180
  skipNativeModulesPlugin = false,
491173
491181
  define: define2,
491174
- env: env3,
491182
+ env: env2,
491175
491183
  plugins,
491176
491184
  generatePackageJson,
491177
491185
  dtsTsConfig,
@@ -491200,7 +491208,7 @@ var browserConfig = ({
491200
491208
  platform,
491201
491209
  banner,
491202
491210
  define: define2,
491203
- env: env3,
491211
+ env: env2,
491204
491212
  dts: false,
491205
491213
  minify,
491206
491214
  experimentalDts: {
@@ -492336,12 +492344,14 @@ var zodToJsonSchema = (schema2, options8) => {
492336
492344
  };
492337
492345
 
492338
492346
  // packages/workspace-tools/src/generators/config-schema/generator.ts
492347
+ init_src2();
492339
492348
  async function configSchemaGeneratorFn(tree, options8, config) {
492340
492349
  const projectConfigurations = getProjectConfigurations();
492350
+ const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
492341
492351
  const modules = await Promise.all(
492342
492352
  Object.keys(projectConfigurations).map(async (key2) => {
492343
492353
  if (projectConfigurations[key2]?.config) {
492344
- const configPath = (0, import_node_path6.join)(config?.workspaceRoot, projectConfigurations[key2].config);
492354
+ const configPath = (0, import_node_path6.join)(workspaceRoot, projectConfigurations[key2].config);
492345
492355
  if ((0, import_node_fs4.existsSync)(configPath)) {
492346
492356
  const mod = await import(configPath);
492347
492357
  if (mod.default) {
@@ -492367,7 +492377,7 @@ async function configSchemaGeneratorFn(tree, options8, config) {
492367
492377
  );
492368
492378
  (0, import_devkit9.writeJson)(
492369
492379
  tree,
492370
- options8.outputFile ? (0, import_node_path6.join)(config?.workspaceRoot, options8.outputFile) : (0, import_node_path6.join)(config?.workspaceRoot, "storm.schema.json"),
492380
+ options8.outputFile ? (0, import_node_path6.join)(workspaceRoot, options8.outputFile) : (0, import_node_path6.join)(workspaceRoot, "storm.schema.json"),
492371
492381
  zodToJsonSchema(ModulesSchema, "StormConfig")
492372
492382
  );
492373
492383
  await (0, import_devkit9.formatFiles)(tree);
@@ -492701,8 +492711,8 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
492701
492711
  }
492702
492712
  const projects = options8.projects;
492703
492713
  const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
492704
- if (projectNode?.data?.root === config.workspaceRoot || projectNode?.data?.root === ".") {
492705
- return config.workspaceRoot;
492714
+ if (projectNode?.data?.root === config?.workspaceRoot || projectNode?.data?.root === ".") {
492715
+ return config?.workspaceRoot ?? findWorkspaceRoot();
492706
492716
  }
492707
492717
  if (!customPackageRoot) {
492708
492718
  return projectNode.data.root;
@@ -492718,15 +492728,18 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
492718
492728
  for (const project of projects) {
492719
492729
  projectNameToPackageRootMap.set(project.name, resolvePackageRoot(project));
492720
492730
  }
492721
- let currentVersion;
492731
+ let currentVersion = null;
492722
492732
  let currentVersionResolvedFromFallback = false;
492723
- let latestMatchingGitTag;
492733
+ let latestMatchingGitTag = null;
492724
492734
  let specifier = options8.specifier ? options8.specifier : void 0;
492725
492735
  for (const project of projects) {
492726
492736
  const projectName = project.name;
492727
492737
  const packageRoot = projectNameToPackageRootMap.get(projectName);
492728
- const packageJsonPath = (0, import_devkit13.joinPathFragments)(packageRoot, "package.json");
492729
- const workspaceRelativePackageJsonPath = (0, import_node_path7.relative)(config.workspaceRoot, packageJsonPath);
492738
+ const packageJsonPath = (0, import_devkit13.joinPathFragments)(packageRoot ?? "./", "package.json");
492739
+ const workspaceRelativePackageJsonPath = (0, import_node_path7.relative)(
492740
+ config?.workspaceRoot ?? findWorkspaceRoot(),
492741
+ packageJsonPath
492742
+ );
492730
492743
  const log = (msg) => {
492731
492744
  writeInfo(config, `${projectName}: ${msg}`);
492732
492745
  };
@@ -492748,7 +492761,7 @@ To fix this you will either need to add a package.json file at that location, or
492748
492761
  const metadata = options8.currentVersionResolverMetadata;
492749
492762
  const registry = metadata?.registry ?? await getNpmRegistry() ?? "https://registry.npmjs.org";
492750
492763
  const tag = metadata?.tag ?? "latest";
492751
- if (!currentVersion || options8.releaseGroup.projectsRelationship === "independent") {
492764
+ if (options8.releaseGroup.projectsRelationship === "independent") {
492752
492765
  try {
492753
492766
  currentVersion = await new Promise((resolve3, reject) => {
492754
492767
  (0, import_node_child_process2.exec)(
@@ -492798,8 +492811,10 @@ To fix this you will either need to add a package.json file at that location, or
492798
492811
  log(`\u{1F4C4} Resolved the current version as ${currentVersion} from ${packageJsonPath}`);
492799
492812
  break;
492800
492813
  case "git-tag": {
492801
- if (!currentVersion || // We always need to independently resolve the current version from git tag per project if the projects are independent
492802
- options8.releaseGroup.projectsRelationship === "independent") {
492814
+ if (
492815
+ // We always need to independently resolve the current version from git tag per project if the projects are independent
492816
+ options8.releaseGroup.projectsRelationship === "independent"
492817
+ ) {
492803
492818
  const releaseTagPattern = options8.releaseGroup.releaseTagPattern;
492804
492819
  latestMatchingGitTag = await (0, import_git.getLatestGitTagForPattern)(releaseTagPattern, {
492805
492820
  projectName: project.name
@@ -492865,7 +492880,7 @@ To fix this you will either need to add a package.json file at that location, or
492865
492880
  previousVersionRef,
492866
492881
  options8.projectGraph,
492867
492882
  affectedProjects
492868
- );
492883
+ ) ?? void 0;
492869
492884
  if (!specifier) {
492870
492885
  log(
492871
492886
  "\u{1F6AB} No changes were detected using git history and the conventional commits standard."
@@ -492920,7 +492935,7 @@ To fix this you will either need to add a package.json file at that location, or
492920
492935
  tree,
492921
492936
  options8.projectGraph,
492922
492937
  projects.filter(
492923
- (project2) => project2?.data?.root && project2?.data?.root !== config.workspaceRoot
492938
+ (project2) => project2?.data?.root && project2?.data?.root !== config?.workspaceRoot
492924
492939
  ),
492925
492940
  projectNameToPackageRootMap,
492926
492941
  resolvePackageRoot,
@@ -492931,7 +492946,7 @@ To fix this you will either need to add a package.json file at that location, or
492931
492946
  return localPackageDependency.target === project.name;
492932
492947
  });
492933
492948
  versionData[projectName] = {
492934
- currentVersion,
492949
+ currentVersion: currentVersion ? currentVersion : "0.0.1",
492935
492950
  dependentProjects,
492936
492951
  newVersion: null
492937
492952
  // will stay as null in the final result in the case that no changes are detected
@@ -492940,8 +492955,13 @@ To fix this you will either need to add a package.json file at that location, or
492940
492955
  log(`\u{1F6AB} Skipping versioning "${projectPackageJson.name}" as no changes were detected.`);
492941
492956
  continue;
492942
492957
  }
492958
+ if (!currentVersion) {
492959
+ throw new Error(`Unable to determine the current version for project "${projectName}"`);
492960
+ }
492943
492961
  const newVersion = (0, import_version.deriveNewSemverVersion)(currentVersion, specifier, options8.preid);
492944
- versionData[projectName].newVersion = newVersion;
492962
+ if (versionData[projectName]) {
492963
+ versionData[projectName].newVersion = newVersion;
492964
+ }
492945
492965
  (0, import_devkit13.writeJson)(tree, packageJsonPath, {
492946
492966
  ...projectPackageJson,
492947
492967
  version: newVersion
@@ -492955,7 +492975,10 @@ To fix this you will either need to add a package.json file at that location, or
492955
492975
  for (const dependentProject of dependentProjects) {
492956
492976
  (0, import_devkit13.updateJson)(
492957
492977
  tree,
492958
- (0, import_devkit13.joinPathFragments)(projectNameToPackageRootMap.get(dependentProject.source), "package.json"),
492978
+ (0, import_devkit13.joinPathFragments)(
492979
+ projectNameToPackageRootMap.get(dependentProject.source) ?? "./",
492980
+ "package.json"
492981
+ ),
492959
492982
  (json2) => {
492960
492983
  let versionPrefix = options8.versionPrefix ?? "auto";
492961
492984
  if (versionPrefix === "auto") {
@@ -493005,132 +493028,11 @@ async function getNpmRegistry() {
493005
493028
  });
493006
493029
  }
493007
493030
 
493008
- // packages/workspace-tools/src/utils/find-cache-dir.ts
493009
- var import_node_fs5 = require("node:fs");
493010
- var import_node_path8 = require("node:path");
493011
- var import_node_process = require("node:process");
493012
- init_src2();
493013
- var isWritable2 = (path15) => {
493014
- try {
493015
- (0, import_node_fs5.accessSync)(path15, import_node_fs5.constants.W_OK);
493016
- return true;
493017
- } catch {
493018
- return false;
493019
- }
493020
- };
493021
- function useDirectory(directory, { create = true }) {
493022
- if (create) {
493023
- (0, import_node_fs5.mkdirSync)(directory, { recursive: true });
493024
- }
493025
- return directory;
493026
- }
493027
- function getNodeModuleDirectory(workspaceRoot) {
493028
- const nodeModules = (0, import_node_path8.join)(workspaceRoot, "node_modules");
493029
- if ((0, import_node_fs5.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
493030
- throw new Error("Cannot write to node_modules directory");
493031
- }
493032
- return nodeModules;
493033
- }
493034
- function findCacheDirectory({
493035
- name,
493036
- cacheName,
493037
- workspaceRoot,
493038
- create
493039
- } = {
493040
- name: "storm",
493041
- workspaceRoot: findWorkspaceRootSafe(),
493042
- create: true
493043
- }) {
493044
- if (import_node_process.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.CACHE_DIR)) {
493045
- return useDirectory((0, import_node_path8.join)(import_node_process.env.CACHE_DIR, name, cacheName), { create });
493046
- }
493047
- if (import_node_process.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.STORM_CACHE_DIR)) {
493048
- return useDirectory((0, import_node_path8.join)(import_node_process.env.STORM_CACHE_DIR, name, cacheName), {
493049
- create
493050
- });
493051
- }
493052
- const nodeModules = getNodeModuleDirectory(workspaceRoot);
493053
- if (!nodeModules) {
493054
- throw new Error("Cannot find node_modules directory");
493055
- }
493056
- return useDirectory((0, import_node_path8.join)(workspaceRoot, "node_modules", ".cache", name, cacheName), { create });
493057
- }
493058
-
493059
493031
  // packages/workspace-tools/src/utils/typia-transform.ts
493060
493032
  var import_transform = __toESM(require_transform());
493061
493033
  var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
493062
-
493063
- // packages/workspace-tools/src/utils/workspace-storage.ts
493064
- var import_node_fs6 = require("node:fs");
493065
- var import_node_path9 = require("node:path");
493066
- var WorkspaceStorage = class {
493067
- cacheDir;
493068
- constructor({
493069
- cacheName,
493070
- workspaceRoot
493071
- }) {
493072
- this.cacheDir = findCacheDirectory({
493073
- name: "storm",
493074
- cacheName,
493075
- workspaceRoot,
493076
- create: true
493077
- });
493078
- }
493079
- /**
493080
- * Get item from cache
493081
- *
493082
- * @param key - The key to get
493083
- * @returns The value of the key
493084
- */
493085
- getItem(key2) {
493086
- const cacheFile = (0, import_node_path9.join)(this.cacheDir, key2);
493087
- if ((0, import_node_fs6.existsSync)(cacheFile)) {
493088
- return (0, import_node_fs6.readFileSync)(cacheFile, "utf-8");
493089
- }
493090
- return void 0;
493091
- }
493092
- /**
493093
- * Set item to cache
493094
- *
493095
- * @param key - The key to set
493096
- * @param value - The value to set
493097
- */
493098
- setItem(key2, value) {
493099
- (0, import_node_fs6.writeFileSync)((0, import_node_path9.join)(this.cacheDir, key2), value, { encoding: "utf-8" });
493100
- }
493101
- /**
493102
- * Remove item from cache
493103
- *
493104
- * @param key - The key to remove
493105
- */
493106
- removeItem(key2) {
493107
- (0, import_node_fs6.rmSync)((0, import_node_path9.join)(this.cacheDir, key2), { force: true, recursive: true });
493108
- }
493109
- /**
493110
- * Clear the cache
493111
- */
493112
- clear() {
493113
- for (const cacheFile of (0, import_node_fs6.readdirSync)(this.cacheDir)) {
493114
- (0, import_node_fs6.rmSync)(cacheFile, { force: true, recursive: true });
493115
- }
493116
- }
493117
- /**
493118
- * Get the key at the index
493119
- *
493120
- * @param index - The index to get
493121
- * @returns The key at the index
493122
- */
493123
- key(index) {
493124
- const files = (0, import_node_fs6.readdirSync)(this.cacheDir);
493125
- if (index < files.length && index >= 0) {
493126
- return files[index];
493127
- }
493128
- return void 0;
493129
- }
493130
- };
493131
493034
  // Annotate the CommonJS export names for ESM import in node:
493132
493035
  0 && (module.exports = {
493133
- WorkspaceStorage,
493134
493036
  addLint,
493135
493037
  applyDefaultOptions,
493136
493038
  applyWorkspaceExecutorTokens,
@@ -493140,7 +493042,6 @@ var WorkspaceStorage = class {
493140
493042
  createProjectTsConfigJson,
493141
493043
  defaultConfig,
493142
493044
  eslintVersion,
493143
- findCacheDirectory,
493144
493045
  findFileName,
493145
493046
  getConfig,
493146
493047
  getExternalDependencies,