@storm-software/workspace-tools 1.16.17 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2377,7 +2377,7 @@ var require_scan = __commonJS({
2377
2377
  var require_parse2 = __commonJS({
2378
2378
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) {
2379
2379
  "use strict";
2380
- var constants2 = require_constants2();
2380
+ var constants = require_constants2();
2381
2381
  var utils = require_utils2();
2382
2382
  var {
2383
2383
  MAX_LENGTH,
@@ -2385,7 +2385,7 @@ var require_parse2 = __commonJS({
2385
2385
  REGEX_NON_SPECIAL_CHARS,
2386
2386
  REGEX_SPECIAL_CHARS_BACKREF,
2387
2387
  REPLACEMENTS
2388
- } = constants2;
2388
+ } = constants;
2389
2389
  var expandRange = (args, options) => {
2390
2390
  if (typeof options.expandRange === "function") {
2391
2391
  return options.expandRange(...args, options);
@@ -2417,8 +2417,8 @@ var require_parse2 = __commonJS({
2417
2417
  const tokens = [bos];
2418
2418
  const capture = opts.capture ? "" : "?:";
2419
2419
  const win322 = utils.isWindows(options);
2420
- const PLATFORM_CHARS = constants2.globChars(win322);
2421
- const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
2420
+ const PLATFORM_CHARS = constants.globChars(win322);
2421
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
2422
2422
  const {
2423
2423
  DOT_LITERAL,
2424
2424
  PLUS_LITERAL,
@@ -3100,7 +3100,7 @@ var require_parse2 = __commonJS({
3100
3100
  NO_DOTS_SLASH,
3101
3101
  STAR,
3102
3102
  START_ANCHOR
3103
- } = constants2.globChars(win322);
3103
+ } = constants.globChars(win322);
3104
3104
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
3105
3105
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
3106
3106
  const capture = opts.capture ? "" : "?:";
@@ -3162,7 +3162,7 @@ var require_picomatch = __commonJS({
3162
3162
  var scan = require_scan();
3163
3163
  var parse = require_parse2();
3164
3164
  var utils = require_utils2();
3165
- var constants2 = require_constants2();
3165
+ var constants = require_constants2();
3166
3166
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
3167
3167
  var picomatch = (glob2, options, returnState = false) => {
3168
3168
  if (Array.isArray(glob2)) {
@@ -3293,7 +3293,7 @@ var require_picomatch = __commonJS({
3293
3293
  return /$^/;
3294
3294
  }
3295
3295
  };
3296
- picomatch.constants = constants2;
3296
+ picomatch.constants = constants;
3297
3297
  module2.exports = picomatch;
3298
3298
  }
3299
3299
  });
@@ -6755,7 +6755,7 @@ var require_chunk_GQ77QZBO = __commonJS({
6755
6755
  }
6756
6756
  _fs2.default.mkdirSync(dirPath, { recursive: true });
6757
6757
  const gitIgnorePath = _path2.default.join(options.workspaceRoot, "tmp", ".tsup", ".gitignore");
6758
- writeFileSync2(gitIgnorePath, "**/*\n");
6758
+ writeFileSync(gitIgnorePath, "**/*\n");
6759
6759
  return dirPath;
6760
6760
  }
6761
6761
  var toObjectEntry = (entry) => {
@@ -6804,7 +6804,7 @@ var require_chunk_GQ77QZBO = __commonJS({
6804
6804
  function trimDtsExtension(fileName) {
6805
6805
  return fileName.replace(/\.d\.(ts|mts|cts)x?$/, "");
6806
6806
  }
6807
- function writeFileSync2(filePath, content) {
6807
+ function writeFileSync(filePath, content) {
6808
6808
  _fs2.default.mkdirSync(_path2.default.dirname(filePath), { recursive: true });
6809
6809
  _fs2.default.writeFileSync(filePath, content);
6810
6810
  }
@@ -6825,7 +6825,7 @@ var require_chunk_GQ77QZBO = __commonJS({
6825
6825
  exports.toObjectEntry = toObjectEntry;
6826
6826
  exports.toAbsolutePath = toAbsolutePath;
6827
6827
  exports.trimDtsExtension = trimDtsExtension;
6828
- exports.writeFileSync = writeFileSync2;
6828
+ exports.writeFileSync = writeFileSync;
6829
6829
  }
6830
6830
  });
6831
6831
 
@@ -6900,13 +6900,13 @@ var require_chunk_UIX4URMV = __commonJS({
6900
6900
  });
6901
6901
  var _tty = require("tty");
6902
6902
  var tty = _interopRequireWildcard(_tty);
6903
- var env2 = process.env || {};
6903
+ var env = process.env || {};
6904
6904
  var argv = process.argv || [];
6905
- var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
6906
- var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
6905
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
6906
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
6907
6907
  var isWindows = process.platform === "win32";
6908
- var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env2.TERM && env2.TERM !== "dumb";
6909
- var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
6908
+ var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && env.TERM !== "dumb";
6909
+ var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
6910
6910
  var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
6911
6911
  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));
6912
6912
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -7067,7 +7067,7 @@ var require_lib = __commonJS({
7067
7067
  function _interopRequireDefault(obj) {
7068
7068
  return obj && obj.__esModule ? obj : { default: obj };
7069
7069
  }
7070
- var readFileSync2 = (fp) => {
7070
+ var readFileSync = (fp) => {
7071
7071
  return _fs.default.readFileSync(fp, "utf8");
7072
7072
  };
7073
7073
  var pathExists = (fp) => new Promise((resolve) => {
@@ -7191,7 +7191,7 @@ var require_lib = __commonJS({
7191
7191
  if (this.packageJsonCache.has(filepath2)) {
7192
7192
  return this.packageJsonCache.get(filepath2)[options.packageKey];
7193
7193
  }
7194
- const data2 = this.options.parseJSON(readFileSync2(filepath2));
7194
+ const data2 = this.options.parseJSON(readFileSync(filepath2));
7195
7195
  return data2;
7196
7196
  }
7197
7197
  };
@@ -7225,7 +7225,7 @@ var require_lib = __commonJS({
7225
7225
  if (this.packageJsonCache.has(filepath2)) {
7226
7226
  return this.packageJsonCache.get(filepath2)[options.packageKey];
7227
7227
  }
7228
- const data2 = this.options.parseJSON(readFileSync2(filepath2));
7228
+ const data2 = this.options.parseJSON(readFileSync(filepath2));
7229
7229
  return data2;
7230
7230
  }
7231
7231
  };
@@ -8243,7 +8243,7 @@ var require_resolveCommand = __commonJS({
8243
8243
  var which = require_which();
8244
8244
  var getPathKey = require_path_key();
8245
8245
  function resolveCommandAttempt(parsed, withoutPathExt) {
8246
- const env2 = parsed.options.env || process.env;
8246
+ const env = parsed.options.env || process.env;
8247
8247
  const cwd = process.cwd();
8248
8248
  const hasCustomCwd = parsed.options.cwd != null;
8249
8249
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
@@ -8256,7 +8256,7 @@ var require_resolveCommand = __commonJS({
8256
8256
  let resolved;
8257
8257
  try {
8258
8258
  resolved = which.sync(parsed.command, {
8259
- path: env2[getPathKey({ env: env2 })],
8259
+ path: env[getPathKey({ env })],
8260
8260
  pathExt: withoutPathExt ? path2.delimiter : void 0
8261
8261
  });
8262
8262
  } catch (e) {
@@ -8541,11 +8541,11 @@ var require_npm_run_path = __commonJS({
8541
8541
  env: process.env,
8542
8542
  ...options
8543
8543
  };
8544
- const env2 = { ...options.env };
8545
- const path3 = pathKey({ env: env2 });
8546
- options.path = env2[path3];
8547
- env2[path3] = module2.exports(options);
8548
- return env2;
8544
+ const env = { ...options.env };
8545
+ const path3 = pathKey({ env });
8546
+ options.path = env[path3];
8547
+ env[path3] = module2.exports(options);
8548
+ return env;
8549
8549
  };
8550
8550
  }
8551
8551
  });
@@ -9740,11 +9740,11 @@ var require_execa = __commonJS({
9740
9740
  var { joinCommand, parseCommand, getEscapedCommand } = require_command();
9741
9741
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
9742
9742
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
9743
- const env2 = extendEnv ? { ...process.env, ...envOption } : envOption;
9743
+ const env = extendEnv ? { ...process.env, ...envOption } : envOption;
9744
9744
  if (preferLocal) {
9745
- return npmRunPath.env({ env: env2, cwd: localDir, execPath });
9745
+ return npmRunPath.env({ env, cwd: localDir, execPath });
9746
9746
  }
9747
- return env2;
9747
+ return env;
9748
9748
  };
9749
9749
  var handleArguments = (file, args, options = {}) => {
9750
9750
  const parsed = crossSpawn._parse(file, args, options);
@@ -33360,7 +33360,7 @@ var require_util3 = __commonJS({
33360
33360
  var normalize2 = createSafeHandler((url) => {
33361
33361
  });
33362
33362
  exports.normalize = normalize2;
33363
- function join4(aRoot, aPath) {
33363
+ function join2(aRoot, aPath) {
33364
33364
  const pathType = getURLType(aPath);
33365
33365
  const rootType = getURLType(aRoot);
33366
33366
  aRoot = ensureDirectory(aRoot);
@@ -33386,7 +33386,7 @@ var require_util3 = __commonJS({
33386
33386
  const newPath = withBase(aPath, withBase(aRoot, base));
33387
33387
  return computeRelativeURL(base, newPath);
33388
33388
  }
33389
- exports.join = join4;
33389
+ exports.join = join2;
33390
33390
  function relative(rootURL, targetURL) {
33391
33391
  const result = relativeIfPossible(rootURL, targetURL);
33392
33392
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -33416,9 +33416,9 @@ var require_util3 = __commonJS({
33416
33416
  }
33417
33417
  let url = normalize2(sourceURL || "");
33418
33418
  if (sourceRoot)
33419
- url = join4(sourceRoot, url);
33419
+ url = join2(sourceRoot, url);
33420
33420
  if (sourceMapURL)
33421
- url = join4(trimFilename(sourceMapURL), url);
33421
+ url = join2(trimFilename(sourceMapURL), url);
33422
33422
  return url;
33423
33423
  }
33424
33424
  exports.computeSourceURL = computeSourceURL;
@@ -35183,8 +35183,8 @@ var require_source_map = __commonJS({
35183
35183
  // node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
35184
35184
  var require_native = __commonJS({
35185
35185
  "node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
35186
- var { existsSync: existsSync3 } = require("node:fs");
35187
- var { join: join4 } = require("node:path");
35186
+ var { existsSync } = require("node:fs");
35187
+ var { join: join2 } = require("node:path");
35188
35188
  var { platform, arch, report } = require("node:process");
35189
35189
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
35190
35190
  var bindingsByPlatformAndArch = {
@@ -35234,7 +35234,7 @@ If this is important to you, please consider supporting Rollup to make a native
35234
35234
  return imported.base;
35235
35235
  }
35236
35236
  var localName = `./rollup.${packageBase}.node`;
35237
- var { parse, parseAsync, xxhashBase64Url } = existsSync3(join4(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
35237
+ var { parse, parseAsync, xxhashBase64Url } = existsSync(join2(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
35238
35238
  module2.exports.parse = parse;
35239
35239
  module2.exports.parseAsync = parseAsync;
35240
35240
  module2.exports.xxhashBase64Url = xxhashBase64Url;
@@ -38811,16 +38811,16 @@ var require_rollup = __commonJS({
38811
38811
  return outputOptions;
38812
38812
  }
38813
38813
  var {
38814
- env: env2 = {},
38814
+ env = {},
38815
38815
  argv = [],
38816
38816
  platform = ""
38817
38817
  } = typeof process === "undefined" ? {} : process;
38818
- var isDisabled = "NO_COLOR" in env2 || argv.includes("--no-color");
38819
- var isForced = "FORCE_COLOR" in env2 || argv.includes("--color");
38818
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
38819
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
38820
38820
  var isWindows = platform === "win32";
38821
- var isDumbTerminal = env2.TERM === "dumb";
38822
- var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env2.TERM && !isDumbTerminal;
38823
- var isCI = "CI" in env2 && ("GITHUB_ACTIONS" in env2 || "GITLAB_CI" in env2 || "CIRCLECI" in env2);
38821
+ var isDumbTerminal = env.TERM === "dumb";
38822
+ var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
38823
+ var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
38824
38824
  var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
38825
38825
  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));
38826
38826
  var clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
@@ -42111,7 +42111,7 @@ var require_rollup = __commonJS({
42111
42111
  var scan = scan_1;
42112
42112
  var parse = parse_1;
42113
42113
  var utils = utils$3;
42114
- var constants2 = constants$2;
42114
+ var constants = constants$2;
42115
42115
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
42116
42116
  var picomatch$1 = (glob2, options, returnState = false) => {
42117
42117
  if (Array.isArray(glob2)) {
@@ -42242,7 +42242,7 @@ var require_rollup = __commonJS({
42242
42242
  return /$^/;
42243
42243
  }
42244
42244
  };
42245
- picomatch$1.constants = constants2;
42245
+ picomatch$1.constants = constants;
42246
42246
  var picomatch_1 = picomatch$1;
42247
42247
  var picomatch = picomatch_1;
42248
42248
  var pm = /* @__PURE__ */ getDefaultExportFromCjs(picomatch);
@@ -56993,7 +56993,7 @@ var require_shared = __commonJS({
56993
56993
  var binaryExtensions = binaryExtensions$1;
56994
56994
  var extensions = new Set(binaryExtensions);
56995
56995
  var isBinaryPath$1 = (filePath) => extensions.has(path2.extname(filePath).slice(1).toLowerCase());
56996
- var constants2 = {};
56996
+ var constants = {};
56997
56997
  (function(exports2) {
56998
56998
  const { sep: sep2 } = require$$0$2;
56999
56999
  const { platform } = process;
@@ -57051,7 +57051,7 @@ var require_shared = __commonJS({
57051
57051
  exports2.isMacos = platform === "darwin";
57052
57052
  exports2.isLinux = platform === "linux";
57053
57053
  exports2.isIBMi = os.type() === "OS400";
57054
- })(constants2);
57054
+ })(constants);
57055
57055
  var fs$2 = require$$0$1;
57056
57056
  var sysPath$2 = require$$0$2;
57057
57057
  var { promisify: promisify$2 } = require$$2;
@@ -57073,7 +57073,7 @@ var require_shared = __commonJS({
57073
57073
  STR_END: STR_END$2,
57074
57074
  BRACE_START: BRACE_START$1,
57075
57075
  STAR
57076
- } = constants2;
57076
+ } = constants;
57077
57077
  var THROTTLE_MODE_WATCH = "watch";
57078
57078
  var open = promisify$2(fs$2.open);
57079
57079
  var stat$2 = promisify$2(fs$2.stat);
@@ -57595,7 +57595,7 @@ var require_shared = __commonJS({
57595
57595
  FUNCTION_TYPE: FUNCTION_TYPE$1,
57596
57596
  EMPTY_FN: EMPTY_FN$1,
57597
57597
  IDENTITY_FN
57598
- } = constants2;
57598
+ } = constants;
57599
57599
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
57600
57600
  var stat$1 = promisify$1(fs$1.stat);
57601
57601
  var lstat2 = promisify$1(fs$1.lstat);
@@ -58010,7 +58010,7 @@ var require_shared = __commonJS({
58010
58010
  isWindows,
58011
58011
  isMacos,
58012
58012
  isIBMi
58013
- } = constants2;
58013
+ } = constants;
58014
58014
  var stat = promisify(fs.stat);
58015
58015
  var readdir2 = promisify(fs.readdir);
58016
58016
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
@@ -63211,11 +63211,11 @@ var require_dist5 = __commonJS({
63211
63211
  ];
63212
63212
  const outDir = options.outDir;
63213
63213
  const outExtension2 = getOutputExtensionMap(options, format, pkg.type);
63214
- const env2 = {
63214
+ const env = {
63215
63215
  ...options.env
63216
63216
  };
63217
63217
  if (options.replaceNodeEnv) {
63218
- env2.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
63218
+ env.NODE_ENV = options.minify || options.minifyWhitespace ? "production" : "development";
63219
63219
  }
63220
63220
  logger3.info(format, "Build start");
63221
63221
  const startTime = Date.now();
@@ -63309,8 +63309,8 @@ var require_dist5 = __commonJS({
63309
63309
  "import.meta.url": "importMetaUrl"
63310
63310
  } : {},
63311
63311
  ...options.define,
63312
- ...Object.keys(env2).reduce((res, key) => {
63313
- const value = JSON.stringify(env2[key]);
63312
+ ...Object.keys(env).reduce((res, key) => {
63313
+ const value = JSON.stringify(env[key]);
63314
63314
  return {
63315
63315
  ...res,
63316
63316
  [`process.env.${key}`]: value,
@@ -70603,141 +70603,11 @@ glob.glob = glob;
70603
70603
  var import_path2 = require("path");
70604
70604
  var import_tsup = __toESM(require_dist5());
70605
70605
 
70606
- // packages/workspace-tools/src/utils/get-workspace-root.ts
70607
- var import_find_workspace_root = require("nx/src/utils/find-workspace-root.js");
70608
- var getWorkspaceRoot = () => {
70609
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
70610
- process.env.STORM_REPO_ROOT ??= root?.dir;
70611
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
70612
- return root?.dir;
70613
- };
70614
-
70615
70606
  // packages/workspace-tools/src/utils/file-path-utils.ts
70616
70607
  var removeExtension = (filePath) => {
70617
70608
  return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
70618
70609
  };
70619
70610
 
70620
- // packages/workspace-tools/src/utils/find-cache-dir.ts
70621
- var import_node_fs = require("node:fs");
70622
- var import_node_path = require("node:path");
70623
- var import_node_process = require("node:process");
70624
- var isWritable2 = (path2) => {
70625
- try {
70626
- (0, import_node_fs.accessSync)(path2, import_node_fs.constants.W_OK);
70627
- return true;
70628
- } catch {
70629
- return false;
70630
- }
70631
- };
70632
- function useDirectory(directory, { create = true }) {
70633
- if (create) {
70634
- (0, import_node_fs.mkdirSync)(directory, { recursive: true });
70635
- }
70636
- return directory;
70637
- }
70638
- function getNodeModuleDirectory(workspaceRoot) {
70639
- const nodeModules = (0, import_node_path.join)(workspaceRoot, "node_modules");
70640
- if ((0, import_node_fs.existsSync)(nodeModules) && !isWritable2(nodeModules)) {
70641
- throw new Error("Cannot write to node_modules directory");
70642
- }
70643
- return nodeModules;
70644
- }
70645
- function findCacheDirectory({
70646
- name,
70647
- cacheName,
70648
- workspaceRoot,
70649
- create
70650
- } = {
70651
- name: "storm",
70652
- workspaceRoot: getWorkspaceRoot(),
70653
- create: true
70654
- }) {
70655
- if (import_node_process.env.CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.CACHE_DIR)) {
70656
- return useDirectory((0, import_node_path.join)(import_node_process.env.CACHE_DIR, name, cacheName), { create });
70657
- }
70658
- if (import_node_process.env.STORM_CACHE_DIR && !["true", "false", "1", "0"].includes(import_node_process.env.STORM_CACHE_DIR)) {
70659
- return useDirectory((0, import_node_path.join)(import_node_process.env.STORM_CACHE_DIR, name, cacheName), {
70660
- create
70661
- });
70662
- }
70663
- const nodeModules = getNodeModuleDirectory(workspaceRoot);
70664
- if (!nodeModules) {
70665
- throw new Error("Cannot find node_modules directory");
70666
- }
70667
- return useDirectory(
70668
- (0, import_node_path.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
70669
- { create }
70670
- );
70671
- }
70672
-
70673
- // packages/workspace-tools/src/utils/workspace-storage.ts
70674
- var import_node_fs2 = require("node:fs");
70675
- var import_node_path2 = require("node:path");
70676
- var WorkspaceStorage = class {
70677
- constructor({
70678
- cacheName,
70679
- workspaceRoot
70680
- }) {
70681
- this.cacheDir = findCacheDirectory({
70682
- name: "storm",
70683
- cacheName,
70684
- workspaceRoot,
70685
- create: true
70686
- });
70687
- }
70688
- /**
70689
- * Get item from cache
70690
- *
70691
- * @param key - The key to get
70692
- * @returns The value of the key
70693
- */
70694
- getItem(key) {
70695
- const cacheFile = (0, import_node_path2.join)(this.cacheDir, key);
70696
- if ((0, import_node_fs2.existsSync)(cacheFile)) {
70697
- return (0, import_node_fs2.readFileSync)(cacheFile, "utf-8");
70698
- }
70699
- return void 0;
70700
- }
70701
- /**
70702
- * Set item to cache
70703
- *
70704
- * @param key - The key to set
70705
- * @param value - The value to set
70706
- */
70707
- setItem(key, value) {
70708
- (0, import_node_fs2.writeFileSync)((0, import_node_path2.join)(this.cacheDir, key), value, { encoding: "utf-8" });
70709
- }
70710
- /**
70711
- * Remove item from cache
70712
- *
70713
- * @param key - The key to remove
70714
- */
70715
- removeItem(key) {
70716
- (0, import_node_fs2.rmSync)((0, import_node_path2.join)(this.cacheDir, key), { force: true, recursive: true });
70717
- }
70718
- /**
70719
- * Clear the cache
70720
- */
70721
- clear() {
70722
- (0, import_node_fs2.readdirSync)(this.cacheDir).forEach((cacheFile) => {
70723
- (0, import_node_fs2.rmSync)(cacheFile, { force: true, recursive: true });
70724
- });
70725
- }
70726
- /**
70727
- * Get the key at the index
70728
- *
70729
- * @param index - The index to get
70730
- * @returns The key at the index
70731
- */
70732
- key(index) {
70733
- const files = (0, import_node_fs2.readdirSync)(this.cacheDir);
70734
- if (index < files.length && index >= 0) {
70735
- return files[index];
70736
- }
70737
- return void 0;
70738
- }
70739
- };
70740
-
70741
70611
  // packages/workspace-tools/src/executors/tsup/get-config.ts
70742
70612
  function modernConfig({
70743
70613
  entry,
@@ -70754,8 +70624,7 @@ function modernConfig({
70754
70624
  docModel = true,
70755
70625
  tsdocMetadata = true,
70756
70626
  define: define2,
70757
- env: env2,
70758
- tsCdnStorage,
70627
+ env,
70759
70628
  plugins,
70760
70629
  dtsTsConfig
70761
70630
  }) {
@@ -70785,7 +70654,7 @@ function modernConfig({
70785
70654
  platform,
70786
70655
  banner,
70787
70656
  define: define2,
70788
- env: env2,
70657
+ env,
70789
70658
  dts: false,
70790
70659
  experimentalDts: {
70791
70660
  entry,
@@ -70802,7 +70671,6 @@ function modernConfig({
70802
70671
  tsdocMetadata,
70803
70672
  sourcemap: debug,
70804
70673
  clean: false,
70805
- tsCdnStorage,
70806
70674
  plugins,
70807
70675
  outExtension
70808
70676
  };
@@ -70819,8 +70687,7 @@ function legacyConfig({
70819
70687
  platform = "neutral",
70820
70688
  verbose = false,
70821
70689
  define: define2,
70822
- env: env2,
70823
- tsCdnStorage,
70690
+ env,
70824
70691
  plugins,
70825
70692
  dtsTsConfig
70826
70693
  }) {
@@ -70842,7 +70709,7 @@ function legacyConfig({
70842
70709
  platform,
70843
70710
  banner,
70844
70711
  define: define2,
70845
- env: env2,
70712
+ env,
70846
70713
  dts: false,
70847
70714
  experimentalDts: {
70848
70715
  entry,
@@ -70859,7 +70726,6 @@ function legacyConfig({
70859
70726
  tsdocMetadata: false,
70860
70727
  sourcemap: debug,
70861
70728
  clean: false,
70862
- tsCdnStorage,
70863
70729
  plugins,
70864
70730
  outExtension
70865
70731
  };
@@ -70878,8 +70744,7 @@ function workerConfig({
70878
70744
  docModel = true,
70879
70745
  tsdocMetadata = true,
70880
70746
  define: define2,
70881
- env: env2,
70882
- tsCdnStorage,
70747
+ env,
70883
70748
  plugins,
70884
70749
  dtsTsConfig
70885
70750
  }) {
@@ -70895,13 +70760,13 @@ function workerConfig({
70895
70760
  outDir: (0, import_path2.join)(outDir, "dist"),
70896
70761
  silent: !verbose,
70897
70762
  metafile: true,
70898
- shims: true,
70763
+ shims: false,
70899
70764
  minify: true,
70900
70765
  external,
70901
70766
  platform: "browser",
70902
70767
  banner,
70903
70768
  define: define2,
70904
- env: env2,
70769
+ env,
70905
70770
  dts: false,
70906
70771
  experimentalDts: {
70907
70772
  entry,
@@ -70918,7 +70783,6 @@ function workerConfig({
70918
70783
  tsdocMetadata,
70919
70784
  sourcemap: debug,
70920
70785
  clean: false,
70921
- tsCdnStorage,
70922
70786
  plugins,
70923
70787
  outExtension
70924
70788
  };
@@ -70936,7 +70800,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
70936
70800
  docModel,
70937
70801
  tsdocMetadata,
70938
70802
  define: define2,
70939
- env: env2,
70803
+ env,
70940
70804
  verbose,
70941
70805
  dtsTsConfig,
70942
70806
  plugins,
@@ -70977,11 +70841,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
70977
70841
  docModel,
70978
70842
  tsdocMetadata,
70979
70843
  define: define2,
70980
- env: env2,
70981
- tsCdnStorage: new WorkspaceStorage({
70982
- cacheName: "ts-libs",
70983
- workspaceRoot
70984
- }),
70844
+ env,
70985
70845
  options,
70986
70846
  plugins,
70987
70847
  dtsTsConfig