@storm-software/workspace-tools 1.52.16 → 1.53.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.
@@ -84019,7 +84019,7 @@ var require_shared = __commonJS({
84019
84019
  var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
84020
84020
  var constants3 = {};
84021
84021
  (function(exports3) {
84022
- const { sep: sep2 } = require$$0$2;
84022
+ const { sep: sep3 } = require$$0$2;
84023
84023
  const { platform } = process;
84024
84024
  const os2 = require$$2$1;
84025
84025
  exports3.EV_ALL = "all";
@@ -84047,7 +84047,7 @@ var require_shared = __commonJS({
84047
84047
  exports3.KEY_ERR = "errHandlers";
84048
84048
  exports3.KEY_RAW = "rawEmitters";
84049
84049
  exports3.HANDLER_KEYS = [exports3.KEY_LISTENERS, exports3.KEY_ERR, exports3.KEY_RAW];
84050
- exports3.DOT_SLASH = `.${sep2}`;
84050
+ exports3.DOT_SLASH = `.${sep3}`;
84051
84051
  exports3.BACK_SLASH_RE = /\\/g;
84052
84052
  exports3.DOUBLE_SLASH_RE = /\/\//;
84053
84053
  exports3.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -86806,7 +86806,7 @@ var require_is_binary_path = __commonJS({
86806
86806
  var require_constants5 = __commonJS({
86807
86807
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports2) {
86808
86808
  "use strict";
86809
- var { sep: sep2 } = require("path");
86809
+ var { sep: sep3 } = require("path");
86810
86810
  var { platform } = process;
86811
86811
  var os2 = require("os");
86812
86812
  exports2.EV_ALL = "all";
@@ -86834,7 +86834,7 @@ var require_constants5 = __commonJS({
86834
86834
  exports2.KEY_ERR = "errHandlers";
86835
86835
  exports2.KEY_RAW = "rawEmitters";
86836
86836
  exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
86837
- exports2.DOT_SLASH = `.${sep2}`;
86837
+ exports2.DOT_SLASH = `.${sep3}`;
86838
86838
  exports2.BACK_SLASH_RE = /\\/g;
86839
86839
  exports2.DOUBLE_SLASH_RE = /\/\//;
86840
86840
  exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -98604,8 +98604,8 @@ var require_select = __commonJS({
98604
98604
  separator() {
98605
98605
  if (this.options.separator)
98606
98606
  return super.separator();
98607
- let sep2 = this.styles.muted(this.symbols.ellipsis);
98608
- return this.state.submitted ? super.separator() : sep2;
98607
+ let sep3 = this.styles.muted(this.symbols.ellipsis);
98608
+ return this.state.submitted ? super.separator() : sep3;
98609
98609
  }
98610
98610
  pointer(choice, i) {
98611
98611
  return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
@@ -98969,8 +98969,8 @@ var require_form = __commonJS({
98969
98969
  return choice.input ? "\u29BF" : "\u2299";
98970
98970
  }
98971
98971
  async choiceSeparator(choice, i) {
98972
- let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
98973
- return sep2 ? " " + this.styles.disabled(sep2) : "";
98972
+ let sep3 = await this.resolve(choice.separator, this.state, choice, i) || ":";
98973
+ return sep3 ? " " + this.styles.disabled(sep3) : "";
98974
98974
  }
98975
98975
  async renderChoice(choice, i) {
98976
98976
  await this.onChoice(choice, i);
@@ -98980,7 +98980,7 @@ var require_form = __commonJS({
98980
98980
  let help = hint;
98981
98981
  let focused = this.index === i;
98982
98982
  let validate = choice.validate || (() => true);
98983
- let sep2 = await this.choiceSeparator(choice, i);
98983
+ let sep3 = await this.choiceSeparator(choice, i);
98984
98984
  let msg = choice.message;
98985
98985
  if (this.align === "right")
98986
98986
  msg = msg.padStart(this.longest + 1, " ");
@@ -98994,7 +98994,7 @@ var require_form = __commonJS({
98994
98994
  let style = styles[color];
98995
98995
  let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
98996
98996
  let indent = this.indent(choice);
98997
- let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
98997
+ let line = () => [indent, indicator, msg + sep3, input, help].filter(Boolean).join(" ");
98998
98998
  if (state.submitted) {
98999
98999
  msg = colors.unstyle(msg);
99000
99000
  input = submitted(input);
@@ -99150,10 +99150,10 @@ var require_boolean = __commonJS({
99150
99150
  async render() {
99151
99151
  let { input, size } = this.state;
99152
99152
  let prefix = await this.prefix();
99153
- let sep2 = await this.separator();
99153
+ let sep3 = await this.separator();
99154
99154
  let msg = await this.message();
99155
99155
  let hint = this.styles.muted(this.default);
99156
- let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
99156
+ let promptLine = [prefix, msg, hint, sep3].filter(Boolean).join(" ");
99157
99157
  this.state.prompt = promptLine;
99158
99158
  let header = await this.header();
99159
99159
  let value = this.value = this.cast(input);
@@ -106797,6 +106797,8 @@ var StormConfigSchema = objectType({
106797
106797
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
106798
106798
  "The build will use these package patterns to determine if they should be external to the bundle"
106799
106799
  ),
106800
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
106801
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
106800
106802
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106801
106803
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106802
106804
  runtimeVersion: stringType().trim().regex(
@@ -106837,6 +106839,8 @@ var DEFAULT_STORM_CONFIG = {
106837
106839
  owner: "@storm-software/development",
106838
106840
  worker: "stormie-bot",
106839
106841
  runtimeDirectory: "node_modules/.storm",
106842
+ cacheDirectory: "node_modules/.cache/storm",
106843
+ skipCache: false,
106840
106844
  packageManager: "npm",
106841
106845
  timezone: "America/New_York",
106842
106846
  locale: "en-US",
@@ -108675,6 +108679,8 @@ var getConfigEnv = () => {
108675
108679
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
108676
108680
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
108677
108681
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
108682
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
108683
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
108678
108684
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
108679
108685
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
108680
108686
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -108782,6 +108788,16 @@ var setConfigEnv = (config) => {
108782
108788
  if (config.buildDirectory) {
108783
108789
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
108784
108790
  }
108791
+ if (config.skipCache !== void 0) {
108792
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
108793
+ if (config.skipCache) {
108794
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
108795
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
108796
+ }
108797
+ }
108798
+ if (!config.skipCache && config.cacheDirectory) {
108799
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
108800
+ }
108785
108801
  if (config.runtimeVersion) {
108786
108802
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
108787
108803
  }
@@ -109294,8 +109310,11 @@ var runTsupBuild = async (context, config, options) => {
109294
109310
  options.plugins.push(environmentPlugin(stormEnv));
109295
109311
  const getConfigOptions = {
109296
109312
  ...options,
109313
+ main: context.main,
109297
109314
  entry: {
109298
- [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109315
+ [removeExtension(
109316
+ context.main?.split(context.main?.includes(import_node_path5.sep) ? import_node_path5.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
109317
+ )]: context.main
109299
109318
  },
109300
109319
  define: {
109301
109320
  __STORM_CONFIG: JSON.stringify(stormEnv)
@@ -110117,8 +110136,8 @@ var path3 = {
110117
110136
  win32: { sep: "\\" },
110118
110137
  posix: { sep: "/" }
110119
110138
  };
110120
- var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
110121
- minimatch.sep = sep;
110139
+ var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
110140
+ minimatch.sep = sep2;
110122
110141
  var GLOBSTAR = Symbol("globstar **");
110123
110142
  minimatch.GLOBSTAR = GLOBSTAR;
110124
110143
  var qmark2 = "[^/]";
@@ -113986,7 +114005,7 @@ var PathScurryBase = class {
113986
114005
  *
113987
114006
  * @internal
113988
114007
  */
113989
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
114008
+ constructor(cwd = process.cwd(), pathImpl, sep3, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
113990
114009
  this.#fs = fsFromOption(fs);
113991
114010
  if (cwd instanceof URL || cwd.startsWith("file://")) {
113992
114011
  cwd = (0, import_url.fileURLToPath)(cwd);
@@ -113997,7 +114016,7 @@ var PathScurryBase = class {
113997
114016
  this.#resolveCache = new ResolveCache();
113998
114017
  this.#resolvePosixCache = new ResolveCache();
113999
114018
  this.#children = new ChildrenCache(childrenCacheSize);
114000
- const split = cwdPath.substring(this.rootPath.length).split(sep2);
114019
+ const split = cwdPath.substring(this.rootPath.length).split(sep3);
114001
114020
  if (split.length === 1 && !split[0]) {
114002
114021
  split.pop();
114003
114022
  }
@@ -37338,6 +37338,8 @@ var StormConfigSchema = objectType({
37338
37338
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
37339
37339
  "The build will use these package patterns to determine if they should be external to the bundle"
37340
37340
  ),
37341
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
37342
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
37341
37343
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
37342
37344
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
37343
37345
  runtimeVersion: stringType().trim().regex(
@@ -37378,6 +37380,8 @@ var DEFAULT_STORM_CONFIG = {
37378
37380
  owner: "@storm-software/development",
37379
37381
  worker: "stormie-bot",
37380
37382
  runtimeDirectory: "node_modules/.storm",
37383
+ cacheDirectory: "node_modules/.cache/storm",
37384
+ skipCache: false,
37381
37385
  packageManager: "npm",
37382
37386
  timezone: "America/New_York",
37383
37387
  locale: "en-US",
@@ -39216,6 +39220,8 @@ var getConfigEnv = () => {
39216
39220
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
39217
39221
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
39218
39222
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
39223
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
39224
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
39219
39225
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
39220
39226
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
39221
39227
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -39323,6 +39329,16 @@ var setConfigEnv = (config) => {
39323
39329
  if (config.buildDirectory) {
39324
39330
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
39325
39331
  }
39332
+ if (config.skipCache !== void 0) {
39333
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
39334
+ if (config.skipCache) {
39335
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
39336
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
39337
+ }
39338
+ }
39339
+ if (!config.skipCache && config.cacheDirectory) {
39340
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
39341
+ }
39326
39342
  if (config.runtimeVersion) {
39327
39343
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
39328
39344
  }
@@ -47923,6 +47923,8 @@ var StormConfigSchema = objectType({
47923
47923
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
47924
  "The build will use these package patterns to determine if they should be external to the bundle"
47925
47925
  ),
47926
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
47927
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
47926
47928
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47927
47929
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47928
47930
  runtimeVersion: stringType().trim().regex(
@@ -47963,6 +47965,8 @@ var DEFAULT_STORM_CONFIG = {
47963
47965
  owner: "@storm-software/development",
47964
47966
  worker: "stormie-bot",
47965
47967
  runtimeDirectory: "node_modules/.storm",
47968
+ cacheDirectory: "node_modules/.cache/storm",
47969
+ skipCache: false,
47966
47970
  packageManager: "npm",
47967
47971
  timezone: "America/New_York",
47968
47972
  locale: "en-US",
@@ -49801,6 +49805,8 @@ var getConfigEnv = () => {
49801
49805
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
49802
49806
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
49803
49807
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
49808
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
49809
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
49804
49810
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
49805
49811
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
49806
49812
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -49908,6 +49914,16 @@ var setConfigEnv = (config) => {
49908
49914
  if (config.buildDirectory) {
49909
49915
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
49910
49916
  }
49917
+ if (config.skipCache !== void 0) {
49918
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
49919
+ if (config.skipCache) {
49920
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
49921
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
49922
+ }
49923
+ }
49924
+ if (!config.skipCache && config.cacheDirectory) {
49925
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
49926
+ }
49911
49927
  if (config.runtimeVersion) {
49912
49928
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
49913
49929
  }
@@ -30483,6 +30483,8 @@ var StormConfigSchema = objectType({
30483
30483
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
30484
30484
  "The build will use these package patterns to determine if they should be external to the bundle"
30485
30485
  ),
30486
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
30487
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
30486
30488
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
30487
30489
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
30488
30490
  runtimeVersion: stringType().trim().regex(
@@ -30523,6 +30525,8 @@ var DEFAULT_STORM_CONFIG = {
30523
30525
  owner: "@storm-software/development",
30524
30526
  worker: "stormie-bot",
30525
30527
  runtimeDirectory: "node_modules/.storm",
30528
+ cacheDirectory: "node_modules/.cache/storm",
30529
+ skipCache: false,
30526
30530
  packageManager: "npm",
30527
30531
  timezone: "America/New_York",
30528
30532
  locale: "en-US",
@@ -32361,6 +32365,8 @@ var getConfigEnv = () => {
32361
32365
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
32362
32366
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
32363
32367
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
32368
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
32369
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
32364
32370
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
32365
32371
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
32366
32372
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -32468,6 +32474,16 @@ var setConfigEnv = (config) => {
32468
32474
  if (config.buildDirectory) {
32469
32475
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
32470
32476
  }
32477
+ if (config.skipCache !== void 0) {
32478
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
32479
+ if (config.skipCache) {
32480
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
32481
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
32482
+ }
32483
+ }
32484
+ if (!config.skipCache && config.cacheDirectory) {
32485
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
32486
+ }
32471
32487
  if (config.runtimeVersion) {
32472
32488
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
32473
32489
  }
@@ -47923,6 +47923,8 @@ var StormConfigSchema = objectType({
47923
47923
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
47924
  "The build will use these package patterns to determine if they should be external to the bundle"
47925
47925
  ),
47926
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
47927
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
47926
47928
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47927
47929
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47928
47930
  runtimeVersion: stringType().trim().regex(
@@ -47963,6 +47965,8 @@ var DEFAULT_STORM_CONFIG = {
47963
47965
  owner: "@storm-software/development",
47964
47966
  worker: "stormie-bot",
47965
47967
  runtimeDirectory: "node_modules/.storm",
47968
+ cacheDirectory: "node_modules/.cache/storm",
47969
+ skipCache: false,
47966
47970
  packageManager: "npm",
47967
47971
  timezone: "America/New_York",
47968
47972
  locale: "en-US",
@@ -49801,6 +49805,8 @@ var getConfigEnv = () => {
49801
49805
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
49802
49806
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
49803
49807
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
49808
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
49809
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
49804
49810
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
49805
49811
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
49806
49812
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -49908,6 +49914,16 @@ var setConfigEnv = (config) => {
49908
49914
  if (config.buildDirectory) {
49909
49915
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
49910
49916
  }
49917
+ if (config.skipCache !== void 0) {
49918
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
49919
+ if (config.skipCache) {
49920
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
49921
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
49922
+ }
49923
+ }
49924
+ if (!config.skipCache && config.cacheDirectory) {
49925
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
49926
+ }
49911
49927
  if (config.runtimeVersion) {
49912
49928
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
49913
49929
  }
@@ -47923,6 +47923,8 @@ var StormConfigSchema = objectType({
47923
47923
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
47924
  "The build will use these package patterns to determine if they should be external to the bundle"
47925
47925
  ),
47926
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
47927
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
47926
47928
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47927
47929
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47928
47930
  runtimeVersion: stringType().trim().regex(
@@ -47963,6 +47965,8 @@ var DEFAULT_STORM_CONFIG = {
47963
47965
  owner: "@storm-software/development",
47964
47966
  worker: "stormie-bot",
47965
47967
  runtimeDirectory: "node_modules/.storm",
47968
+ cacheDirectory: "node_modules/.cache/storm",
47969
+ skipCache: false,
47966
47970
  packageManager: "npm",
47967
47971
  timezone: "America/New_York",
47968
47972
  locale: "en-US",
@@ -49801,6 +49805,8 @@ var getConfigEnv = () => {
49801
49805
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
49802
49806
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
49803
49807
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
49808
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
49809
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
49804
49810
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
49805
49811
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
49806
49812
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -49908,6 +49914,16 @@ var setConfigEnv = (config) => {
49908
49914
  if (config.buildDirectory) {
49909
49915
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
49910
49916
  }
49917
+ if (config.skipCache !== void 0) {
49918
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
49919
+ if (config.skipCache) {
49920
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
49921
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
49922
+ }
49923
+ }
49924
+ if (!config.skipCache && config.cacheDirectory) {
49925
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
49926
+ }
49911
49927
  if (config.runtimeVersion) {
49912
49928
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
49913
49929
  }
@@ -30484,6 +30484,8 @@ var StormConfigSchema = objectType({
30484
30484
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
30485
30485
  "The build will use these package patterns to determine if they should be external to the bundle"
30486
30486
  ),
30487
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
30488
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
30487
30489
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
30488
30490
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
30489
30491
  runtimeVersion: stringType().trim().regex(
@@ -30524,6 +30526,8 @@ var DEFAULT_STORM_CONFIG = {
30524
30526
  owner: "@storm-software/development",
30525
30527
  worker: "stormie-bot",
30526
30528
  runtimeDirectory: "node_modules/.storm",
30529
+ cacheDirectory: "node_modules/.cache/storm",
30530
+ skipCache: false,
30527
30531
  packageManager: "npm",
30528
30532
  timezone: "America/New_York",
30529
30533
  locale: "en-US",
@@ -32362,6 +32366,8 @@ var getConfigEnv = () => {
32362
32366
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
32363
32367
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
32364
32368
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
32369
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
32370
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
32365
32371
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
32366
32372
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
32367
32373
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -32469,6 +32475,16 @@ var setConfigEnv = (config) => {
32469
32475
  if (config.buildDirectory) {
32470
32476
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
32471
32477
  }
32478
+ if (config.skipCache !== void 0) {
32479
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
32480
+ if (config.skipCache) {
32481
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
32482
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
32483
+ }
32484
+ }
32485
+ if (!config.skipCache && config.cacheDirectory) {
32486
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
32487
+ }
32472
32488
  if (config.runtimeVersion) {
32473
32489
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
32474
32490
  }
@@ -106399,7 +106399,7 @@ var require_shared = __commonJS({
106399
106399
  var isBinaryPath$1 = (filePath) => extensions.has(path3.extname(filePath).slice(1).toLowerCase());
106400
106400
  var constants4 = {};
106401
106401
  (function(exports3) {
106402
- const { sep: sep2 } = require$$0$2;
106402
+ const { sep: sep3 } = require$$0$2;
106403
106403
  const { platform } = process;
106404
106404
  const os2 = require$$2$1;
106405
106405
  exports3.EV_ALL = "all";
@@ -106427,7 +106427,7 @@ var require_shared = __commonJS({
106427
106427
  exports3.KEY_ERR = "errHandlers";
106428
106428
  exports3.KEY_RAW = "rawEmitters";
106429
106429
  exports3.HANDLER_KEYS = [exports3.KEY_LISTENERS, exports3.KEY_ERR, exports3.KEY_RAW];
106430
- exports3.DOT_SLASH = `.${sep2}`;
106430
+ exports3.DOT_SLASH = `.${sep3}`;
106431
106431
  exports3.BACK_SLASH_RE = /\\/g;
106432
106432
  exports3.DOUBLE_SLASH_RE = /\/\//;
106433
106433
  exports3.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -109186,7 +109186,7 @@ var require_is_binary_path = __commonJS({
109186
109186
  var require_constants5 = __commonJS({
109187
109187
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports2) {
109188
109188
  "use strict";
109189
- var { sep: sep2 } = require("path");
109189
+ var { sep: sep3 } = require("path");
109190
109190
  var { platform } = process;
109191
109191
  var os2 = require("os");
109192
109192
  exports2.EV_ALL = "all";
@@ -109214,7 +109214,7 @@ var require_constants5 = __commonJS({
109214
109214
  exports2.KEY_ERR = "errHandlers";
109215
109215
  exports2.KEY_RAW = "rawEmitters";
109216
109216
  exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
109217
- exports2.DOT_SLASH = `.${sep2}`;
109217
+ exports2.DOT_SLASH = `.${sep3}`;
109218
109218
  exports2.BACK_SLASH_RE = /\\/g;
109219
109219
  exports2.DOUBLE_SLASH_RE = /\/\//;
109220
109220
  exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -117851,6 +117851,8 @@ var StormConfigSchema = objectType({
117851
117851
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
117852
117852
  "The build will use these package patterns to determine if they should be external to the bundle"
117853
117853
  ),
117854
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
117855
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
117854
117856
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
117855
117857
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
117856
117858
  runtimeVersion: stringType().trim().regex(
@@ -117891,6 +117893,8 @@ var DEFAULT_STORM_CONFIG = {
117891
117893
  owner: "@storm-software/development",
117892
117894
  worker: "stormie-bot",
117893
117895
  runtimeDirectory: "node_modules/.storm",
117896
+ cacheDirectory: "node_modules/.cache/storm",
117897
+ skipCache: false,
117894
117898
  packageManager: "npm",
117895
117899
  timezone: "America/New_York",
117896
117900
  locale: "en-US",
@@ -119809,8 +119813,11 @@ var runTsupBuild = async (context, config, options) => {
119809
119813
  options.plugins.push(environmentPlugin(stormEnv));
119810
119814
  const getConfigOptions = {
119811
119815
  ...options,
119816
+ main: context.main,
119812
119817
  entry: {
119813
- [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
119818
+ [removeExtension(
119819
+ context.main?.split(context.main?.includes(import_node_path6.sep) ? import_node_path6.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
119820
+ )]: context.main
119814
119821
  },
119815
119822
  define: {
119816
119823
  __STORM_CONFIG: JSON.stringify(stormEnv)