@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.52.16",
3
+ "version": "1.53.0",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
package/src/base/index.js CHANGED
@@ -47930,6 +47930,8 @@ var StormConfigSchema = objectType({
47930
47930
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
47931
47931
  "The build will use these package patterns to determine if they should be external to the bundle"
47932
47932
  ),
47933
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
47934
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
47933
47935
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47934
47936
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47935
47937
  runtimeVersion: stringType().trim().regex(
@@ -47970,6 +47972,8 @@ var DEFAULT_STORM_CONFIG = {
47970
47972
  owner: "@storm-software/development",
47971
47973
  worker: "stormie-bot",
47972
47974
  runtimeDirectory: "node_modules/.storm",
47975
+ cacheDirectory: "node_modules/.cache/storm",
47976
+ skipCache: false,
47973
47977
  packageManager: "npm",
47974
47978
  timezone: "America/New_York",
47975
47979
  locale: "en-US",
@@ -49808,6 +49812,8 @@ var getConfigEnv = () => {
49808
49812
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
49809
49813
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
49810
49814
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
49815
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
49816
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
49811
49817
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
49812
49818
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
49813
49819
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -49915,6 +49921,16 @@ var setConfigEnv = (config) => {
49915
49921
  if (config.buildDirectory) {
49916
49922
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
49917
49923
  }
49924
+ if (config.skipCache !== void 0) {
49925
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
49926
+ if (config.skipCache) {
49927
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
49928
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
49929
+ }
49930
+ }
49931
+ if (!config.skipCache && config.cacheDirectory) {
49932
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
49933
+ }
49918
49934
  if (config.runtimeVersion) {
49919
49935
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
49920
49936
  }
@@ -65648,6 +65648,8 @@ var StormConfigSchema = objectType({
65648
65648
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
65649
65649
  "The build will use these package patterns to determine if they should be external to the bundle"
65650
65650
  ),
65651
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
65652
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
65651
65653
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
65652
65654
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
65653
65655
  runtimeVersion: stringType().trim().regex(
@@ -65688,6 +65690,8 @@ var DEFAULT_STORM_CONFIG = {
65688
65690
  owner: "@storm-software/development",
65689
65691
  worker: "stormie-bot",
65690
65692
  runtimeDirectory: "node_modules/.storm",
65693
+ cacheDirectory: "node_modules/.cache/storm",
65694
+ skipCache: false,
65691
65695
  packageManager: "npm",
65692
65696
  timezone: "America/New_York",
65693
65697
  locale: "en-US",
@@ -67526,6 +67530,8 @@ var getConfigEnv = () => {
67526
67530
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
67527
67531
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
67528
67532
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
67533
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
67534
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
67529
67535
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67530
67536
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
67531
67537
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -67633,6 +67639,16 @@ var setConfigEnv = (config) => {
67633
67639
  if (config.buildDirectory) {
67634
67640
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
67635
67641
  }
67642
+ if (config.skipCache !== void 0) {
67643
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
67644
+ if (config.skipCache) {
67645
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
67646
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
67647
+ }
67648
+ }
67649
+ if (!config.skipCache && config.cacheDirectory) {
67650
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
67651
+ }
67636
67652
  if (config.runtimeVersion) {
67637
67653
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
67638
67654
  }
@@ -32362,8 +32362,8 @@ var require_select = __commonJS({
32362
32362
  separator() {
32363
32363
  if (this.options.separator)
32364
32364
  return super.separator();
32365
- let sep2 = this.styles.muted(this.symbols.ellipsis);
32366
- return this.state.submitted ? super.separator() : sep2;
32365
+ let sep3 = this.styles.muted(this.symbols.ellipsis);
32366
+ return this.state.submitted ? super.separator() : sep3;
32367
32367
  }
32368
32368
  pointer(choice, i) {
32369
32369
  return !this.multiple || this.options.pointer ? super.pointer(choice, i) : "";
@@ -32727,8 +32727,8 @@ var require_form = __commonJS({
32727
32727
  return choice.input ? "\u29BF" : "\u2299";
32728
32728
  }
32729
32729
  async choiceSeparator(choice, i) {
32730
- let sep2 = await this.resolve(choice.separator, this.state, choice, i) || ":";
32731
- return sep2 ? " " + this.styles.disabled(sep2) : "";
32730
+ let sep3 = await this.resolve(choice.separator, this.state, choice, i) || ":";
32731
+ return sep3 ? " " + this.styles.disabled(sep3) : "";
32732
32732
  }
32733
32733
  async renderChoice(choice, i) {
32734
32734
  await this.onChoice(choice, i);
@@ -32738,7 +32738,7 @@ var require_form = __commonJS({
32738
32738
  let help = hint;
32739
32739
  let focused = this.index === i;
32740
32740
  let validate = choice.validate || (() => true);
32741
- let sep2 = await this.choiceSeparator(choice, i);
32741
+ let sep3 = await this.choiceSeparator(choice, i);
32742
32742
  let msg = choice.message;
32743
32743
  if (this.align === "right")
32744
32744
  msg = msg.padStart(this.longest + 1, " ");
@@ -32752,7 +32752,7 @@ var require_form = __commonJS({
32752
32752
  let style = styles[color];
32753
32753
  let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
32754
32754
  let indent = this.indent(choice);
32755
- let line = () => [indent, indicator, msg + sep2, input, help].filter(Boolean).join(" ");
32755
+ let line = () => [indent, indicator, msg + sep3, input, help].filter(Boolean).join(" ");
32756
32756
  if (state.submitted) {
32757
32757
  msg = colors.unstyle(msg);
32758
32758
  input = submitted(input);
@@ -32908,10 +32908,10 @@ var require_boolean = __commonJS({
32908
32908
  async render() {
32909
32909
  let { input, size } = this.state;
32910
32910
  let prefix = await this.prefix();
32911
- let sep2 = await this.separator();
32911
+ let sep3 = await this.separator();
32912
32912
  let msg = await this.message();
32913
32913
  let hint = this.styles.muted(this.default);
32914
- let promptLine = [prefix, msg, hint, sep2].filter(Boolean).join(" ");
32914
+ let promptLine = [prefix, msg, hint, sep3].filter(Boolean).join(" ");
32915
32915
  this.state.prompt = promptLine;
32916
32916
  let header = await this.header();
32917
32917
  let value = this.value = this.cast(input);
@@ -95623,7 +95623,7 @@ var require_shared = __commonJS({
95623
95623
  var isBinaryPath$1 = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
95624
95624
  var constants3 = {};
95625
95625
  (function(exports3) {
95626
- const { sep: sep2 } = require$$0$2;
95626
+ const { sep: sep3 } = require$$0$2;
95627
95627
  const { platform } = process;
95628
95628
  const os2 = require$$2$1;
95629
95629
  exports3.EV_ALL = "all";
@@ -95651,7 +95651,7 @@ var require_shared = __commonJS({
95651
95651
  exports3.KEY_ERR = "errHandlers";
95652
95652
  exports3.KEY_RAW = "rawEmitters";
95653
95653
  exports3.HANDLER_KEYS = [exports3.KEY_LISTENERS, exports3.KEY_ERR, exports3.KEY_RAW];
95654
- exports3.DOT_SLASH = `.${sep2}`;
95654
+ exports3.DOT_SLASH = `.${sep3}`;
95655
95655
  exports3.BACK_SLASH_RE = /\\/g;
95656
95656
  exports3.DOUBLE_SLASH_RE = /\/\//;
95657
95657
  exports3.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -98410,7 +98410,7 @@ var require_is_binary_path = __commonJS({
98410
98410
  var require_constants5 = __commonJS({
98411
98411
  "node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js"(exports2) {
98412
98412
  "use strict";
98413
- var { sep: sep2 } = require("path");
98413
+ var { sep: sep3 } = require("path");
98414
98414
  var { platform } = process;
98415
98415
  var os2 = require("os");
98416
98416
  exports2.EV_ALL = "all";
@@ -98438,7 +98438,7 @@ var require_constants5 = __commonJS({
98438
98438
  exports2.KEY_ERR = "errHandlers";
98439
98439
  exports2.KEY_RAW = "rawEmitters";
98440
98440
  exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
98441
- exports2.DOT_SLASH = `.${sep2}`;
98441
+ exports2.DOT_SLASH = `.${sep3}`;
98442
98442
  exports2.BACK_SLASH_RE = /\\/g;
98443
98443
  exports2.DOUBLE_SLASH_RE = /\/\//;
98444
98444
  exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
@@ -106801,6 +106801,8 @@ var StormConfigSchema = objectType({
106801
106801
  externalPackagePatterns: arrayType(stringType()).default([]).describe(
106802
106802
  "The build will use these package patterns to determine if they should be external to the bundle"
106803
106803
  ),
106804
+ skipCache: booleanType().default(false).describe("Should all known types of workspace caching be skipped?"),
106805
+ cacheDirectory: stringType().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
106804
106806
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106805
106807
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106806
106808
  runtimeVersion: stringType().trim().regex(
@@ -106841,6 +106843,8 @@ var DEFAULT_STORM_CONFIG = {
106841
106843
  owner: "@storm-software/development",
106842
106844
  worker: "stormie-bot",
106843
106845
  runtimeDirectory: "node_modules/.storm",
106846
+ cacheDirectory: "node_modules/.cache/storm",
106847
+ skipCache: false,
106844
106848
  packageManager: "npm",
106845
106849
  timezone: "America/New_York",
106846
106850
  locale: "en-US",
@@ -108679,6 +108683,8 @@ var getConfigEnv = () => {
108679
108683
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
108680
108684
  packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
108681
108685
  buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
108686
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
108687
+ cacheDirectory: process.env[`${prefix}CACHE_DIRECTORY`],
108682
108688
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
108683
108689
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
108684
108690
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
@@ -108786,6 +108792,16 @@ var setConfigEnv = (config) => {
108786
108792
  if (config.buildDirectory) {
108787
108793
  process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
108788
108794
  }
108795
+ if (config.skipCache !== void 0) {
108796
+ process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
108797
+ if (config.skipCache) {
108798
+ process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
108799
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
108800
+ }
108801
+ }
108802
+ if (!config.skipCache && config.cacheDirectory) {
108803
+ process.env[`${prefix}CACHE_DIRECTORY`] = config.cacheDirectory;
108804
+ }
108789
108805
  if (config.runtimeVersion) {
108790
108806
  process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
108791
108807
  }
@@ -113418,7 +113434,7 @@ var PathScurryBase = class {
113418
113434
  *
113419
113435
  * @internal
113420
113436
  */
113421
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
113437
+ constructor(cwd = process.cwd(), pathImpl, sep3, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
113422
113438
  this.#fs = fsFromOption(fs);
113423
113439
  if (cwd instanceof URL || cwd.startsWith("file://")) {
113424
113440
  cwd = (0, import_url.fileURLToPath)(cwd);
@@ -113429,7 +113445,7 @@ var PathScurryBase = class {
113429
113445
  this.#resolveCache = new ResolveCache();
113430
113446
  this.#resolvePosixCache = new ResolveCache();
113431
113447
  this.#children = new ChildrenCache(childrenCacheSize);
113432
- const split = cwdPath.substring(this.rootPath.length).split(sep2);
113448
+ const split = cwdPath.substring(this.rootPath.length).split(sep3);
113433
113449
  if (split.length === 1 && !split[0]) {
113434
113450
  split.pop();
113435
113451
  }
@@ -115485,8 +115501,11 @@ var runTsupBuild = async (context, config, options) => {
115485
115501
  options.plugins.push(environmentPlugin(stormEnv));
115486
115502
  const getConfigOptions = {
115487
115503
  ...options,
115504
+ main: context.main,
115488
115505
  entry: {
115489
- [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
115506
+ [removeExtension(
115507
+ context.main?.split(context.main?.includes(import_node_path5.sep) ? import_node_path5.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
115508
+ )]: context.main
115490
115509
  },
115491
115510
  define: {
115492
115511
  __STORM_CONFIG: JSON.stringify(stormEnv)
@@ -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
  }
@@ -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
  }