@storm-software/linting-tools 1.119.36 → 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/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;
@@ -344933,7 +344933,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344933
344933
  // ../config-tools/src/create-storm-config.ts
344934
344934
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344935
344935
  var _static_cache = void 0;
344936
- 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) => {
344937
344937
  let result;
344938
344938
  if (!_optionalChain([_static_cache, 'optionalAccess', _561 => _561.data]) || !_optionalChain([_static_cache, 'optionalAccess', _562 => _562.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
344939
344939
  let _workspaceRoot = workspaceRoot;
@@ -344941,13 +344941,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344941
344941
  _workspaceRoot = findWorkspaceRoot();
344942
344942
  }
344943
344943
  const configEnv = getConfigEnv();
344944
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344945
344944
  const configFile = await getConfigFile(_workspaceRoot);
344946
- if (!configFile && !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
- });
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
+ }
344950
344954
  }
344955
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344951
344956
  result = await stormWorkspaceConfigSchema.parseAsync(_chunkC22CM2QIcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
344952
344957
  result.workspaceRoot ??= _workspaceRoot;
344953
344958
  } else {
@@ -344980,7 +344985,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0
344980
344985
  return extension;
344981
344986
  }, "createConfigExtension");
344982
344987
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
344983
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344988
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344984
344989
  setConfigEnv(config);
344985
344990
  if (!skipLogs && !config.skipConfigLogging) {
344986
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;
@@ -344931,7 +344931,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
344931
344931
  // ../config-tools/src/create-storm-config.ts
344932
344932
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344933
344933
  var _static_cache = void 0;
344934
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344934
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344935
344935
  let result;
344936
344936
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
344937
344937
  let _workspaceRoot = workspaceRoot;
@@ -344939,13 +344939,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
344939
344939
  _workspaceRoot = findWorkspaceRoot();
344940
344940
  }
344941
344941
  const configEnv = getConfigEnv();
344942
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344943
344942
  const configFile = await getConfigFile(_workspaceRoot);
344944
- if (!configFile && !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
- });
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
+ }
344948
344952
  }
344953
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344949
344954
  result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
344950
344955
  result.workspaceRoot ??= _workspaceRoot;
344951
344956
  } else {
@@ -344978,7 +344983,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
344978
344983
  return extension;
344979
344984
  }, "createConfigExtension");
344980
344985
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
344981
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344986
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344982
344987
  setConfigEnv(config);
344983
344988
  if (!skipLogs && !config.skipConfigLogging) {
344984
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;
@@ -344900,7 +344900,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344900
344900
  // ../config-tools/src/create-storm-config.ts
344901
344901
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344902
344902
  var _static_cache = void 0;
344903
- 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) => {
344904
344904
  let result;
344905
344905
  if (!_optionalChain([_static_cache, 'optionalAccess', _561 => _561.data]) || !_optionalChain([_static_cache, 'optionalAccess', _562 => _562.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
344906
344906
  let _workspaceRoot = workspaceRoot;
@@ -344908,13 +344908,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(v
344908
344908
  _workspaceRoot = findWorkspaceRoot();
344909
344909
  }
344910
344910
  const configEnv = getConfigEnv();
344911
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344912
344911
  const configFile = await getConfigFile(_workspaceRoot);
344913
- if (!configFile && !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
- });
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
+ }
344917
344921
  }
344922
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344918
344923
  result = await stormWorkspaceConfigSchema.parseAsync(_chunkC22CM2QIcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
344919
344924
  result.workspaceRoot ??= _workspaceRoot;
344920
344925
  } else {
@@ -344947,7 +344952,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0
344947
344952
  return extension;
344948
344953
  }, "createConfigExtension");
344949
344954
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
344950
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344955
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344951
344956
  setConfigEnv(config);
344952
344957
  if (!skipLogs && !config.skipConfigLogging) {
344953
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;
@@ -344898,7 +344898,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
344898
344898
  // ../config-tools/src/create-storm-config.ts
344899
344899
  var _extension_cache = /* @__PURE__ */ new WeakMap();
344900
344900
  var _static_cache = void 0;
344901
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false) => {
344901
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema2, workspaceRoot, skipLogs = false, useDefault = true) => {
344902
344902
  let result;
344903
344903
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
344904
344904
  let _workspaceRoot = workspaceRoot;
@@ -344906,13 +344906,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
344906
344906
  _workspaceRoot = findWorkspaceRoot();
344907
344907
  }
344908
344908
  const configEnv = getConfigEnv();
344909
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
344910
344909
  const configFile = await getConfigFile(_workspaceRoot);
344911
- if (!configFile && !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
- });
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
+ }
344915
344919
  }
344920
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
344916
344921
  result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
344917
344922
  result.workspaceRoot ??= _workspaceRoot;
344918
344923
  } else {
@@ -344945,7 +344950,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema2) => {
344945
344950
  return extension;
344946
344951
  }, "createConfigExtension");
344947
344952
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
344948
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
344953
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
344949
344954
  setConfigEnv(config);
344950
344955
  if (!skipLogs && !config.skipConfigLogging) {
344951
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.36",
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": {