@storm-software/untyped 0.11.16 → 0.11.17

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/untyped.cjs CHANGED
@@ -71940,7 +71940,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
71940
71940
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
71941
71941
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
71942
71942
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
71943
- var StormConfigSchema = z.object({
71943
+ var stormWorkspaceConfigSchema = z.object({
71944
71944
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
71945
71945
  extends: ExtendsSchema.optional(),
71946
71946
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -73788,7 +73788,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
73788
73788
  // ../config-tools/src/create-storm-config.ts
73789
73789
  var _extension_cache = /* @__PURE__ */ new WeakMap();
73790
73790
  var _static_cache = void 0;
73791
- var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
73791
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
73792
73792
  let result;
73793
73793
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
73794
73794
  let _workspaceRoot = workspaceRoot;
@@ -73803,7 +73803,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
73803
73803
  logLevel: "all"
73804
73804
  });
73805
73805
  }
73806
- result = await StormConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
73806
+ result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
73807
73807
  result.workspaceRoot ??= _workspaceRoot;
73808
73808
  } else {
73809
73809
  result = _static_cache.data;
@@ -73819,7 +73819,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
73819
73819
  data: result
73820
73820
  };
73821
73821
  return result;
73822
- }, "createStormConfig");
73822
+ }, "createStormWorkspaceConfig");
73823
73823
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
73824
73824
  const extension_cache_key = {
73825
73825
  extensionName
@@ -73834,19 +73834,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
73834
73834
  _extension_cache.set(extension_cache_key, extension);
73835
73835
  return extension;
73836
73836
  }, "createConfigExtension");
73837
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
73838
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
73837
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
73838
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
73839
73839
  setConfigEnv(config);
73840
73840
  if (!skipLogs && !config.skipConfigLogging) {
73841
73841
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
73842
73842
  ${formatLogMessage(config)}`, config);
73843
73843
  }
73844
73844
  return config;
73845
- }, "loadStormConfig");
73845
+ }, "loadStormWorkspaceConfig");
73846
73846
 
73847
73847
  // ../config-tools/src/get-config.ts
73848
73848
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
73849
- return loadStormConfig(workspaceRoot, skipLogs);
73849
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
73850
73850
  }, "getConfig");
73851
73851
 
73852
73852
  // bin/untyped.ts
@@ -74044,7 +74044,9 @@ async function createProgram(config) {
74044
74044
  const root = findWorkspaceRootSafe();
74045
74045
  process.env.STORM_WORKSPACE_ROOT ??= root;
74046
74046
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
74047
- root && process.chdir(root);
74047
+ if (root) {
74048
+ process.chdir(root);
74049
+ }
74048
74050
  const program = new import_commander.Command("storm-untyped");
74049
74051
  program.version("1.0.0", "-v --version", "display CLI version");
74050
74052
  program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
package/bin/untyped.js CHANGED
@@ -71931,7 +71931,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
71931
71931
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
71932
71932
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
71933
71933
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
71934
- var StormConfigSchema = z.object({
71934
+ var stormWorkspaceConfigSchema = z.object({
71935
71935
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
71936
71936
  extends: ExtendsSchema.optional(),
71937
71937
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -73776,7 +73776,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
73776
73776
  // ../config-tools/src/create-storm-config.ts
73777
73777
  var _extension_cache = /* @__PURE__ */ new WeakMap();
73778
73778
  var _static_cache = void 0;
73779
- var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
73779
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
73780
73780
  let result;
73781
73781
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
73782
73782
  let _workspaceRoot = workspaceRoot;
@@ -73791,7 +73791,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
73791
73791
  logLevel: "all"
73792
73792
  });
73793
73793
  }
73794
- result = await StormConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
73794
+ result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
73795
73795
  result.workspaceRoot ??= _workspaceRoot;
73796
73796
  } else {
73797
73797
  result = _static_cache.data;
@@ -73807,7 +73807,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
73807
73807
  data: result
73808
73808
  };
73809
73809
  return result;
73810
- }, "createStormConfig");
73810
+ }, "createStormWorkspaceConfig");
73811
73811
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
73812
73812
  const extension_cache_key = {
73813
73813
  extensionName
@@ -73822,19 +73822,19 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
73822
73822
  _extension_cache.set(extension_cache_key, extension);
73823
73823
  return extension;
73824
73824
  }, "createConfigExtension");
73825
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
73826
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
73825
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
73826
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
73827
73827
  setConfigEnv(config);
73828
73828
  if (!skipLogs && !config.skipConfigLogging) {
73829
73829
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
73830
73830
  ${formatLogMessage(config)}`, config);
73831
73831
  }
73832
73832
  return config;
73833
- }, "loadStormConfig");
73833
+ }, "loadStormWorkspaceConfig");
73834
73834
 
73835
73835
  // ../config-tools/src/get-config.ts
73836
73836
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
73837
- return loadStormConfig(workspaceRoot, skipLogs);
73837
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
73838
73838
  }, "getConfig");
73839
73839
 
73840
73840
  // bin/untyped.ts
@@ -74032,7 +74032,9 @@ async function createProgram(config) {
74032
74032
  const root = findWorkspaceRootSafe();
74033
74033
  process.env.STORM_WORKSPACE_ROOT ??= root;
74034
74034
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
74035
- root && process.chdir(root);
74035
+ if (root) {
74036
+ process.chdir(root);
74037
+ }
74036
74038
  const program = new Command("storm-untyped");
74037
74039
  program.version("1.0.0", "-v --version", "display CLI version");
74038
74040
  program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkCEYH26U6cjs = require('./chunk-CEYH26U6.cjs');
4
+ var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
5
5
 
6
6
 
7
7
 
@@ -48,10 +48,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLe
48
48
  function generateMarkdownFile(schema, file, config) {
49
49
  try {
50
50
  const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "md");
51
- _chunkCEYH26U6cjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
51
+ _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
52
52
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
53
53
  } catch (error) {
54
- _chunkCEYH26U6cjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
54
+ _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
55
55
 
56
56
  Error:
57
57
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkCEYH26U6cjs = require('./chunk-CEYH26U6.cjs');
4
+ var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
5
5
 
6
6
 
7
7
 
@@ -29,10 +29,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateDeclaration, "generateDeclaration"
29
29
  function generateDeclarationFile(schema, file, config) {
30
30
  try {
31
31
  const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "d.ts");
32
- _chunkCEYH26U6cjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
32
+ _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
33
33
  return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
34
34
  } catch (error) {
35
- _chunkCEYH26U6cjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
35
+ _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
36
36
 
37
37
  Error:
38
38
  ${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkM7M35IZZcjs = require('./chunk-M7M35IZZ.cjs');
3
+ var _chunkB3ONKCXJcjs = require('./chunk-B3ONKCXJ.cjs');
4
4
 
5
5
 
6
- var _chunkPA63U7NZcjs = require('./chunk-PA63U7NZ.cjs');
6
+ var _chunkP3BRVAKZcjs = require('./chunk-P3BRVAKZ.cjs');
7
7
 
8
8
 
9
- var _chunkLUUH7K73cjs = require('./chunk-LUUH7K73.cjs');
9
+ var _chunk7G54AXUIcjs = require('./chunk-7G54AXUI.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkCEYH26U6cjs = require('./chunk-CEYH26U6.cjs');
14
+ var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
15
15
 
16
16
 
17
17
 
@@ -23,7 +23,7 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
23
23
  var _glob = require('glob');
24
24
  var _loader = require('untyped/loader');
25
25
  var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (config) => async (options) => {
26
- _chunkCEYH26U6cjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
26
+ _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
27
27
  const files = await _glob.glob.call(void 0, options.entry || "**/{untyped.ts,*.untyped.ts}", {
28
28
  ignore: [
29
29
  "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
@@ -38,18 +38,18 @@ var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (c
38
38
  cwd: config.workspaceRoot
39
39
  });
40
40
  await Promise.all(files.map(async (file) => {
41
- _chunkCEYH26U6cjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
41
+ _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
42
42
  let schema;
43
43
  try {
44
44
  schema = await _loader.loadSchema.call(void 0, _chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name), {
45
45
  jiti: {
46
- debug: _chunkCEYH26U6cjs.isVerbose.call(void 0, config.logLevel),
46
+ debug: _chunkYHQOB4Q7cjs.isVerbose.call(void 0, config.logLevel),
47
47
  fsCache: config.skipCache ? false : _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.directories.cache || _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.workspaceRoot, "node_modules/.cache/storm"), "jiti"),
48
48
  interopDefault: true
49
49
  }
50
50
  });
51
51
  } catch (error) {
52
- _chunkCEYH26U6cjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}
52
+ _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}
53
53
 
54
54
  Error:
55
55
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -61,9 +61,9 @@ ${JSON.stringify(schema)}
61
61
  throw error;
62
62
  }
63
63
  const promises = [];
64
- promises.push(_chunkM7M35IZZcjs.generateDeclarationFile.call(void 0, schema, file, config));
65
- promises.push(_chunkLUUH7K73cjs.generateMarkdownFile.call(void 0, schema, file, config));
66
- promises.push(_chunkPA63U7NZcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
64
+ promises.push(_chunkB3ONKCXJcjs.generateDeclarationFile.call(void 0, schema, file, config));
65
+ promises.push(_chunk7G54AXUIcjs.generateMarkdownFile.call(void 0, schema, file, config));
66
+ promises.push(_chunkP3BRVAKZcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
67
67
  return Promise.all(promises);
68
68
  }));
69
69
  }, "getGenerateAction");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-R6ZO63TX.js";
4
+ } from "./chunk-ZACMGGI6.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkCEYH26U6cjs = require('./chunk-CEYH26U6.cjs');
4
+ var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
5
5
 
6
6
 
7
7
 
@@ -14,10 +14,10 @@ var _promises = require('fs/promises');
14
14
  function generateJsonSchemaFile(schema, file, config) {
15
15
  try {
16
16
  const jsonSchema = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "json");
17
- _chunkCEYH26U6cjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
17
+ _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
18
18
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
19
19
  } catch (error) {
20
- _chunkCEYH26U6cjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
20
+ _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
21
21
 
22
22
  Error:
23
23
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-R6ZO63TX.js";
4
+ } from "./chunk-ZACMGGI6.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-R6ZO63TX.js";
4
+ } from "./chunk-ZACMGGI6.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -7016,7 +7016,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
7016
7016
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
7017
7017
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
7018
7018
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
7019
- var StormConfigSchema = z.object({
7019
+ var stormWorkspaceConfigSchema = z.object({
7020
7020
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
7021
7021
  extends: ExtendsSchema.optional(),
7022
7022
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-WGH5236Y.js";
3
+ } from "./chunk-RL7G6HKE.js";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-5YOP573F.js";
6
+ } from "./chunk-LZQ5P5IG.js";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-REP2OKDB.js";
9
+ } from "./chunk-RFUCL2N2.js";
10
10
  import {
11
11
  isVerbose,
12
12
  writeError,
13
13
  writeTrace
14
- } from "./chunk-R6ZO63TX.js";
14
+ } from "./chunk-ZACMGGI6.js";
15
15
  import {
16
16
  __name,
17
17
  init_esm_shims,
@@ -7016,7 +7016,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
7016
7016
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
7017
7017
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
7018
7018
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
7019
- var StormConfigSchema = z.object({
7019
+ var stormWorkspaceConfigSchema = z.object({
7020
7020
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
7021
7021
  extends: ExtendsSchema.optional(),
7022
7022
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
package/dist/generate.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKJIJ4XETcjs = require('./chunk-KJIJ4XET.cjs');
4
- require('./chunk-M7M35IZZ.cjs');
5
- require('./chunk-PA63U7NZ.cjs');
6
- require('./chunk-LUUH7K73.cjs');
7
- require('./chunk-CEYH26U6.cjs');
3
+ var _chunkJTXABIVWcjs = require('./chunk-JTXABIVW.cjs');
4
+ require('./chunk-B3ONKCXJ.cjs');
5
+ require('./chunk-P3BRVAKZ.cjs');
6
+ require('./chunk-7G54AXUI.cjs');
7
+ require('./chunk-YHQOB4Q7.cjs');
8
8
  require('./chunk-PBRGYMWB.cjs');
9
9
 
10
10
 
11
- exports.getGenerateAction = _chunkKJIJ4XETcjs.getGenerateAction;
11
+ exports.getGenerateAction = _chunkJTXABIVWcjs.getGenerateAction;
@@ -1,7 +1,7 @@
1
- import { S as StormConfig } from './types-DvpNTtPm.cjs';
1
+ import { S as StormWorkspaceConfig } from './types-D_AzVlEf.cjs';
2
2
  import 'zod';
3
3
 
4
- declare const getGenerateAction: (config: StormConfig) => (options: {
4
+ declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
5
5
  entry?: string | string[];
6
6
  outputPath?: string;
7
7
  }) => Promise<void>;
@@ -1,7 +1,7 @@
1
- import { S as StormConfig } from './types-DvpNTtPm.js';
1
+ import { S as StormWorkspaceConfig } from './types-D_AzVlEf.js';
2
2
  import 'zod';
3
3
 
4
- declare const getGenerateAction: (config: StormConfig) => (options: {
4
+ declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
5
5
  entry?: string | string[];
6
6
  outputPath?: string;
7
7
  }) => Promise<void>;
package/dist/generate.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-ZFDZ3WAW.js";
4
- import "./chunk-WGH5236Y.js";
5
- import "./chunk-5YOP573F.js";
6
- import "./chunk-REP2OKDB.js";
7
- import "./chunk-R6ZO63TX.js";
3
+ } from "./chunk-YOXSPNH7.js";
4
+ import "./chunk-RL7G6HKE.js";
5
+ import "./chunk-LZQ5P5IG.js";
6
+ import "./chunk-RFUCL2N2.js";
7
+ import "./chunk-ZACMGGI6.js";
8
8
  import "./chunk-YRIEPGDN.js";
9
9
  export {
10
10
  getGenerateAction
package/dist/index.cjs CHANGED
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKJIJ4XETcjs = require('./chunk-KJIJ4XET.cjs');
3
+ var _chunkJTXABIVWcjs = require('./chunk-JTXABIVW.cjs');
4
4
  require('./chunk-RAXH6VUY.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkM7M35IZZcjs = require('./chunk-M7M35IZZ.cjs');
8
+ var _chunkB3ONKCXJcjs = require('./chunk-B3ONKCXJ.cjs');
9
9
 
10
10
 
11
- var _chunkPA63U7NZcjs = require('./chunk-PA63U7NZ.cjs');
11
+ var _chunkP3BRVAKZcjs = require('./chunk-P3BRVAKZ.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkLUUH7K73cjs = require('./chunk-LUUH7K73.cjs');
16
- require('./chunk-CEYH26U6.cjs');
15
+ var _chunk7G54AXUIcjs = require('./chunk-7G54AXUI.cjs');
16
+ require('./chunk-YHQOB4Q7.cjs');
17
17
 
18
18
 
19
19
 
@@ -29,4 +29,4 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
29
29
 
30
30
 
31
31
 
32
- exports.generateDeclaration = _chunkM7M35IZZcjs.generateDeclaration; exports.generateDeclarationFile = _chunkM7M35IZZcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkPA63U7NZcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkLUUH7K73cjs.generateMarkdown; exports.generateMarkdownFile = _chunkLUUH7K73cjs.generateMarkdownFile; exports.getGenerateAction = _chunkKJIJ4XETcjs.getGenerateAction; exports.getOutputFile = _chunkPBRGYMWBcjs.getOutputFile;
32
+ exports.generateDeclaration = _chunkB3ONKCXJcjs.generateDeclaration; exports.generateDeclarationFile = _chunkB3ONKCXJcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkP3BRVAKZcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunk7G54AXUIcjs.generateMarkdown; exports.generateMarkdownFile = _chunk7G54AXUIcjs.generateMarkdownFile; exports.getGenerateAction = _chunkJTXABIVWcjs.getGenerateAction; exports.getOutputFile = _chunkPBRGYMWBcjs.getOutputFile;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.c
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.cjs';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.cjs';
5
5
  export { getOutputFile } from './utilities.cjs';
6
- import './types-DvpNTtPm.cjs';
6
+ import './types-D_AzVlEf.cjs';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.j
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.js';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.js';
5
5
  export { getOutputFile } from './utilities.js';
6
- import './types-DvpNTtPm.js';
6
+ import './types-D_AzVlEf.js';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-ZFDZ3WAW.js";
3
+ } from "./chunk-YOXSPNH7.js";
4
4
  import "./chunk-7UW24DGF.js";
5
5
  import {
6
6
  generateDeclaration,
7
7
  generateDeclarationFile
8
- } from "./chunk-WGH5236Y.js";
8
+ } from "./chunk-RL7G6HKE.js";
9
9
  import {
10
10
  generateJsonSchemaFile
11
- } from "./chunk-5YOP573F.js";
11
+ } from "./chunk-LZQ5P5IG.js";
12
12
  import {
13
13
  generateMarkdown,
14
14
  generateMarkdownFile
15
- } from "./chunk-REP2OKDB.js";
16
- import "./chunk-R6ZO63TX.js";
15
+ } from "./chunk-RFUCL2N2.js";
16
+ import "./chunk-ZACMGGI6.js";
17
17
  import {
18
18
  getOutputFile,
19
19
  init_esm_shims
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  /**
4
4
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
5
5
  */
6
- declare const StormConfigSchema: z.ZodObject<{
6
+ declare const stormWorkspaceConfigSchema: z.ZodObject<{
7
7
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
8
8
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
9
  name: z.ZodOptional<z.ZodString>;
@@ -1242,11 +1242,27 @@ declare const StormConfigSchema: z.ZodObject<{
1242
1242
  extensions?: Record<string, any> | undefined;
1243
1243
  }>;
1244
1244
 
1245
- type TStormConfig = z.infer<typeof StormConfigSchema>;
1246
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
1247
- extensions: (TStormConfig["extensions"] & {
1245
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
1246
+ /**
1247
+ * The Storm workspace's configuration object
1248
+ *
1249
+ * @remarks
1250
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1251
+ *
1252
+ * @deprecated
1253
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
1254
+ */
1255
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
1256
+ extensions: (TStormWorkspaceConfig["extensions"] & {
1248
1257
  [extensionName in TExtensionName]: TExtensionConfig;
1249
1258
  }) | NonNullable<Record<string, any>>;
1250
1259
  };
1260
+ /**
1261
+ * The Storm workspace's configuration object
1262
+ *
1263
+ * @remarks
1264
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1265
+ */
1266
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
1251
1267
 
1252
- export type { StormConfig as S };
1268
+ export type { StormWorkspaceConfig as S };
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  /**
4
4
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
5
5
  */
6
- declare const StormConfigSchema: z.ZodObject<{
6
+ declare const stormWorkspaceConfigSchema: z.ZodObject<{
7
7
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
8
8
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
9
  name: z.ZodOptional<z.ZodString>;
@@ -1242,11 +1242,27 @@ declare const StormConfigSchema: z.ZodObject<{
1242
1242
  extensions?: Record<string, any> | undefined;
1243
1243
  }>;
1244
1244
 
1245
- type TStormConfig = z.infer<typeof StormConfigSchema>;
1246
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
1247
- extensions: (TStormConfig["extensions"] & {
1245
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
1246
+ /**
1247
+ * The Storm workspace's configuration object
1248
+ *
1249
+ * @remarks
1250
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1251
+ *
1252
+ * @deprecated
1253
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
1254
+ */
1255
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
1256
+ extensions: (TStormWorkspaceConfig["extensions"] & {
1248
1257
  [extensionName in TExtensionName]: TExtensionConfig;
1249
1258
  }) | NonNullable<Record<string, any>>;
1250
1259
  };
1260
+ /**
1261
+ * The Storm workspace's configuration object
1262
+ *
1263
+ * @remarks
1264
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1265
+ */
1266
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
1251
1267
 
1252
- export type { StormConfig as S };
1268
+ export type { StormWorkspaceConfig as S };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/untyped",
3
- "version": "0.11.16",
3
+ "version": "0.11.17",
4
4
  "type": "module",
5
5
  "description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
6
6
  "repository": {