@storm-software/linting-tools 1.119.35 → 1.119.37

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.119.34-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.119.36-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/alex/.alexignore CHANGED
File without changes
package/alex/config.json CHANGED
File without changes
package/bin/lint.cjs CHANGED
@@ -343793,7 +343793,7 @@ var stormWorkspaceConfigSchema = z.object({
343793
343793
  "staging",
343794
343794
  "production"
343795
343795
  ]).default("production").describe("The current runtime environment mode for the package"),
343796
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
343796
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
343797
343797
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
343798
343798
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
343799
343799
  directories: WorkspaceDirectoryConfigSchema,
@@ -344457,7 +344457,7 @@ var getConfigFile = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async
344457
344457
  }
344458
344458
  }
344459
344459
  }
344460
- if (!config) {
344460
+ if (!config || Object.keys(config).length === 0) {
344461
344461
  return void 0;
344462
344462
  }
344463
344463
  config.configFile = configFile;
@@ -344519,12 +344519,12 @@ var getConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => {
344519
344519
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
344520
344520
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
344521
344521
  directories: {
344522
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
344523
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
344524
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
344525
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
344526
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
344527
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
344522
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
344523
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
344524
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
344525
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
344526
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
344527
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
344528
344528
  },
344529
344529
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
344530
344530
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -344745,21 +344745,27 @@ var setConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (config
344745
344745
  if (config.directories) {
344746
344746
  if (!config.skipCache && config.directories.cache) {
344747
344747
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
344748
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
344748
344749
  }
344749
344750
  if (config.directories.data) {
344750
344751
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
344752
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
344751
344753
  }
344752
344754
  if (config.directories.config) {
344753
344755
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
344756
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
344754
344757
  }
344755
344758
  if (config.directories.temp) {
344756
344759
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
344760
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
344757
344761
  }
344758
344762
  if (config.directories.log) {
344759
344763
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
344764
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
344760
344765
  }
344761
344766
  if (config.directories.build) {
344762
344767
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
344768
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
344763
344769
  }
344764
344770
  }
344765
344771
  if (config.skipCache !== void 0) {
@@ -344927,7 +344933,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344927
344933
  // ../config-tools/src/create-storm-config.ts
344928
344934
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344929
344935
  var _static_cache = void 0;
344930
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344936
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344931
344937
  let result;
344932
344938
  if (!_optionalChain([_static_cache, 'optionalAccess', _561 => _561.data]) || !_optionalChain([_static_cache, 'optionalAccess', _562 => _562.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
344933
344939
  let _workspaceRoot = workspaceRoot;
@@ -344935,13 +344941,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344935
344941
  _workspaceRoot = findWorkspaceRoot();
344936
344942
  }
344937
344943
  const configEnv = getConfigEnv();
344938
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344939
344944
  const configFile = await getConfigFile(_workspaceRoot);
344940
- if (!configFile && !skipLogs) {
344941
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344942
- logLevel: "all"
344943
- });
344945
+ if (!configFile) {
344946
+ if (!skipLogs) {
344947
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344948
+ logLevel: "all"
344949
+ });
344950
+ }
344951
+ if (useDefault === false) {
344952
+ return void 0;
344953
+ }
344944
344954
  }
344955
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344945
344956
  result = await stormWorkspaceConfigSchema.parseAsync(_chunkC22CM2QIcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
344946
344957
  result.workspaceRoot ??= _workspaceRoot;
344947
344958
  } else {
@@ -344974,7 +344985,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0
344974
344985
  return extension;
344975
344986
  }, "createConfigExtension");
344976
344987
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
344977
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344988
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344978
344989
  setConfigEnv(config);
344979
344990
  if (!skipLogs && !config.skipConfigLogging) {
344980
344991
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
package/bin/lint.js CHANGED
@@ -343791,7 +343791,7 @@ var stormWorkspaceConfigSchema = z.object({
343791
343791
  "staging",
343792
343792
  "production"
343793
343793
  ]).default("production").describe("The current runtime environment mode for the package"),
343794
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
343794
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
343795
343795
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
343796
343796
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
343797
343797
  directories: WorkspaceDirectoryConfigSchema,
@@ -344455,7 +344455,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath2, additionalFileNames
344455
344455
  }
344456
344456
  }
344457
344457
  }
344458
- if (!config) {
344458
+ if (!config || Object.keys(config).length === 0) {
344459
344459
  return void 0;
344460
344460
  }
344461
344461
  config.configFile = configFile;
@@ -344517,12 +344517,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
344517
344517
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
344518
344518
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
344519
344519
  directories: {
344520
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
344521
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
344522
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
344523
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
344524
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
344525
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
344520
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
344521
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
344522
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
344523
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
344524
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
344525
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
344526
344526
  },
344527
344527
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
344528
344528
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -344743,21 +344743,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
344743
344743
  if (config.directories) {
344744
344744
  if (!config.skipCache && config.directories.cache) {
344745
344745
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
344746
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
344746
344747
  }
344747
344748
  if (config.directories.data) {
344748
344749
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
344750
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
344749
344751
  }
344750
344752
  if (config.directories.config) {
344751
344753
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
344754
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
344752
344755
  }
344753
344756
  if (config.directories.temp) {
344754
344757
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
344758
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
344755
344759
  }
344756
344760
  if (config.directories.log) {
344757
344761
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
344762
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
344758
344763
  }
344759
344764
  if (config.directories.build) {
344760
344765
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
344766
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
344761
344767
  }
344762
344768
  }
344763
344769
  if (config.skipCache !== void 0) {
@@ -344925,7 +344931,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
344925
344931
  // ../config-tools/src/create-storm-config.ts
344926
344932
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344927
344933
  var _static_cache = void 0;
344928
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344934
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344929
344935
  let result;
344930
344936
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
344931
344937
  let _workspaceRoot = workspaceRoot;
@@ -344933,13 +344939,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
344933
344939
  _workspaceRoot = findWorkspaceRoot();
344934
344940
  }
344935
344941
  const configEnv = getConfigEnv();
344936
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344937
344942
  const configFile = await getConfigFile(_workspaceRoot);
344938
- if (!configFile && !skipLogs) {
344939
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344940
- logLevel: "all"
344941
- });
344943
+ if (!configFile) {
344944
+ if (!skipLogs) {
344945
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344946
+ logLevel: "all"
344947
+ });
344948
+ }
344949
+ if (useDefault === false) {
344950
+ return void 0;
344951
+ }
344942
344952
  }
344953
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344943
344954
  result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
344944
344955
  result.workspaceRoot ??= _workspaceRoot;
344945
344956
  } else {
@@ -344972,7 +344983,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
344972
344983
  return extension;
344973
344984
  }, "createConfigExtension");
344974
344985
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
344975
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344986
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344976
344987
  setConfigEnv(config);
344977
344988
  if (!skipLogs && !config.skipConfigLogging) {
344978
344989
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
package/dist/index.cjs CHANGED
@@ -343795,7 +343795,7 @@ var stormWorkspaceConfigSchema = z.object({
343795
343795
  "staging",
343796
343796
  "production"
343797
343797
  ]).default("production").describe("The current runtime environment mode for the package"),
343798
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
343798
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
343799
343799
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
343800
343800
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
343801
343801
  directories: WorkspaceDirectoryConfigSchema,
@@ -344424,7 +344424,7 @@ var getConfigFile = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async
344424
344424
  }
344425
344425
  }
344426
344426
  }
344427
- if (!config) {
344427
+ if (!config || Object.keys(config).length === 0) {
344428
344428
  return void 0;
344429
344429
  }
344430
344430
  config.configFile = configFile;
@@ -344486,12 +344486,12 @@ var getConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => {
344486
344486
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
344487
344487
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
344488
344488
  directories: {
344489
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
344490
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
344491
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
344492
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
344493
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
344494
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
344489
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
344490
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
344491
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
344492
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
344493
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
344494
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
344495
344495
  },
344496
344496
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
344497
344497
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -344712,21 +344712,27 @@ var setConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (config
344712
344712
  if (config.directories) {
344713
344713
  if (!config.skipCache && config.directories.cache) {
344714
344714
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
344715
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
344715
344716
  }
344716
344717
  if (config.directories.data) {
344717
344718
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
344719
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
344718
344720
  }
344719
344721
  if (config.directories.config) {
344720
344722
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
344723
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
344721
344724
  }
344722
344725
  if (config.directories.temp) {
344723
344726
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
344727
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
344724
344728
  }
344725
344729
  if (config.directories.log) {
344726
344730
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
344731
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
344727
344732
  }
344728
344733
  if (config.directories.build) {
344729
344734
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
344735
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
344730
344736
  }
344731
344737
  }
344732
344738
  if (config.skipCache !== void 0) {
@@ -344894,7 +344900,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344894
344900
  // ../config-tools/src/create-storm-config.ts
344895
344901
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344896
344902
  var _static_cache = void 0;
344897
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344903
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344898
344904
  let result;
344899
344905
  if (!_optionalChain([_static_cache, 'optionalAccess', _561 => _561.data]) || !_optionalChain([_static_cache, 'optionalAccess', _562 => _562.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
344900
344906
  let _workspaceRoot = workspaceRoot;
@@ -344902,13 +344908,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344902
344908
  _workspaceRoot = findWorkspaceRoot();
344903
344909
  }
344904
344910
  const configEnv = getConfigEnv();
344905
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344906
344911
  const configFile = await getConfigFile(_workspaceRoot);
344907
- if (!configFile && !skipLogs) {
344908
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344909
- logLevel: "all"
344910
- });
344912
+ if (!configFile) {
344913
+ if (!skipLogs) {
344914
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344915
+ logLevel: "all"
344916
+ });
344917
+ }
344918
+ if (useDefault === false) {
344919
+ return void 0;
344920
+ }
344911
344921
  }
344922
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344912
344923
  result = await stormWorkspaceConfigSchema.parseAsync(_chunkC22CM2QIcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
344913
344924
  result.workspaceRoot ??= _workspaceRoot;
344914
344925
  } else {
@@ -344941,7 +344952,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0
344941
344952
  return extension;
344942
344953
  }, "createConfigExtension");
344943
344954
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
344944
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344955
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344945
344956
  setConfigEnv(config);
344946
344957
  if (!skipLogs && !config.skipConfigLogging) {
344947
344958
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
package/dist/index.d.cts CHANGED
@@ -75,7 +75,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
75
75
  url?: string | undefined;
76
76
  }>;
77
77
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
78
- workspaceRoot: z.ZodDefault<z.ZodString>;
78
+ workspaceRoot: z.ZodString;
79
79
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
80
80
  skipCache: z.ZodDefault<z.ZodBoolean>;
81
81
  directories: z.ZodObject<{
@@ -1072,6 +1072,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1072
  codesFile?: string | undefined;
1073
1073
  url?: string | undefined;
1074
1074
  };
1075
+ workspaceRoot: string;
1075
1076
  directories: {
1076
1077
  cache?: string | undefined;
1077
1078
  data?: string | undefined;
@@ -1242,7 +1243,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1242
1243
  preid?: string | undefined;
1243
1244
  owner?: string | undefined;
1244
1245
  mode?: "development" | "staging" | "production" | undefined;
1245
- workspaceRoot?: string | undefined;
1246
1246
  externalPackagePatterns?: string[] | undefined;
1247
1247
  skipCache?: boolean | undefined;
1248
1248
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
75
75
  url?: string | undefined;
76
76
  }>;
77
77
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
78
- workspaceRoot: z.ZodDefault<z.ZodString>;
78
+ workspaceRoot: z.ZodString;
79
79
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
80
80
  skipCache: z.ZodDefault<z.ZodBoolean>;
81
81
  directories: z.ZodObject<{
@@ -1072,6 +1072,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1072
  codesFile?: string | undefined;
1073
1073
  url?: string | undefined;
1074
1074
  };
1075
+ workspaceRoot: string;
1075
1076
  directories: {
1076
1077
  cache?: string | undefined;
1077
1078
  data?: string | undefined;
@@ -1242,7 +1243,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1242
1243
  preid?: string | undefined;
1243
1244
  owner?: string | undefined;
1244
1245
  mode?: "development" | "staging" | "production" | undefined;
1245
- workspaceRoot?: string | undefined;
1246
1246
  externalPackagePatterns?: string[] | undefined;
1247
1247
  skipCache?: boolean | undefined;
1248
1248
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
package/dist/index.js CHANGED
@@ -343793,7 +343793,7 @@ var stormWorkspaceConfigSchema = z.object({
343793
343793
  "staging",
343794
343794
  "production"
343795
343795
  ]).default("production").describe("The current runtime environment mode for the package"),
343796
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
343796
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
343797
343797
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
343798
343798
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
343799
343799
  directories: WorkspaceDirectoryConfigSchema,
@@ -344422,7 +344422,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath2, additionalFileNames
344422
344422
  }
344423
344423
  }
344424
344424
  }
344425
- if (!config) {
344425
+ if (!config || Object.keys(config).length === 0) {
344426
344426
  return void 0;
344427
344427
  }
344428
344428
  config.configFile = configFile;
@@ -344484,12 +344484,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
344484
344484
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
344485
344485
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
344486
344486
  directories: {
344487
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
344488
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
344489
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
344490
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
344491
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
344492
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
344487
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
344488
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
344489
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
344490
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
344491
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
344492
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
344493
344493
  },
344494
344494
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
344495
344495
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -344710,21 +344710,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
344710
344710
  if (config.directories) {
344711
344711
  if (!config.skipCache && config.directories.cache) {
344712
344712
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
344713
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
344713
344714
  }
344714
344715
  if (config.directories.data) {
344715
344716
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
344717
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
344716
344718
  }
344717
344719
  if (config.directories.config) {
344718
344720
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
344721
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
344719
344722
  }
344720
344723
  if (config.directories.temp) {
344721
344724
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
344725
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
344722
344726
  }
344723
344727
  if (config.directories.log) {
344724
344728
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
344729
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
344725
344730
  }
344726
344731
  if (config.directories.build) {
344727
344732
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
344733
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
344728
344734
  }
344729
344735
  }
344730
344736
  if (config.skipCache !== void 0) {
@@ -344892,7 +344898,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
344892
344898
  // ../config-tools/src/create-storm-config.ts
344893
344899
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344894
344900
  var _static_cache = void 0;
344895
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344901
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344896
344902
  let result;
344897
344903
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
344898
344904
  let _workspaceRoot = workspaceRoot;
@@ -344900,13 +344906,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
344900
344906
  _workspaceRoot = findWorkspaceRoot();
344901
344907
  }
344902
344908
  const configEnv = getConfigEnv();
344903
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344904
344909
  const configFile = await getConfigFile(_workspaceRoot);
344905
- if (!configFile && !skipLogs) {
344906
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344907
- logLevel: "all"
344908
- });
344910
+ if (!configFile) {
344911
+ if (!skipLogs) {
344912
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
344913
+ logLevel: "all"
344914
+ });
344915
+ }
344916
+ if (useDefault === false) {
344917
+ return void 0;
344918
+ }
344909
344919
  }
344920
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344910
344921
  result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
344911
344922
  result.workspaceRoot ??= _workspaceRoot;
344912
344923
  } else {
@@ -344939,7 +344950,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
344939
344950
  return extension;
344940
344951
  }, "createConfigExtension");
344941
344952
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
344942
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344953
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344943
344954
  setConfigEnv(config);
344944
344955
  if (!skipLogs && !config.skipConfigLogging) {
344945
344956
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.119.35",
3
+ "version": "1.119.37",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {