@storm-software/untyped 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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-0.0.1-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-0.2.0-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/bin/untyped.js CHANGED
@@ -443,7 +443,8 @@ var CONSOLE_ICONS = {
443
443
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
444
444
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
445
445
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
446
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
446
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
447
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
447
448
  };
448
449
 
449
450
  // ../config-tools/src/logger/format-timestamp.ts
@@ -518,48 +519,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
518
519
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
519
520
  return (message) => {
520
521
  console.error(`
521
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
522
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
522
523
  `);
523
524
  };
524
525
  }
525
526
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
526
527
  return (message) => {
527
528
  console.error(`
528
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
529
530
  `);
530
531
  };
531
532
  }
532
533
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
533
534
  return (message) => {
534
535
  console.warn(`
535
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
536
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
536
537
  `);
537
538
  };
538
539
  }
539
540
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
540
541
  return (message) => {
541
542
  console.info(`
542
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
543
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
543
544
  `);
544
545
  };
545
546
  }
546
547
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
547
548
  return (message) => {
548
549
  console.info(`
549
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
550
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
550
551
  `);
551
552
  };
552
553
  }
553
554
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
554
555
  return (message) => {
555
556
  console.debug(`
556
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
557
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
557
558
  `);
558
559
  };
559
560
  }
560
561
  return (message) => {
561
562
  console.log(`
562
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
563
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
563
564
  `);
564
565
  };
565
566
  }, "getLogFn");
@@ -642,26 +643,26 @@ Stacktrace: ${error.stack}`, config);
642
643
  // ../config-tools/src/config-file/get-config-file.ts
643
644
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
644
645
  const workspacePath = filePath || findWorkspaceRoot(filePath);
645
- let config = (0, import_c12.loadConfig)({
646
+ let config = await (0, import_c12.loadConfig)({
646
647
  cwd: workspacePath,
647
648
  packageJson: true,
648
649
  name: fileName,
649
650
  envName: fileName?.toUpperCase(),
650
651
  jitiOptions: {
651
652
  debug: false,
652
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
653
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
653
654
  },
654
655
  ...options
655
656
  });
656
657
  if (!config || Object.keys(config).length === 0) {
657
- config = (0, import_c12.loadConfig)({
658
+ config = await (0, import_c12.loadConfig)({
658
659
  cwd: workspacePath,
659
660
  packageJson: true,
660
661
  name: fileName,
661
662
  envName: fileName?.toUpperCase(),
662
663
  jitiOptions: {
663
664
  debug: false,
664
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
665
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
665
666
  },
666
667
  configFile: fileName,
667
668
  ...options
@@ -1124,11 +1125,11 @@ var import_untyped = require("untyped");
1124
1125
 
1125
1126
  // src/utilities.ts
1126
1127
  var getOutputFile = /* @__PURE__ */ __name((file, extension) => {
1127
- let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".schema", "").replace("schema", "");
1128
+ let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".untyped", "").replace("untyped", "").replace(".schema", "").replace("schema", "");
1128
1129
  if (!fileName) {
1129
1130
  fileName = "schema";
1130
1131
  }
1131
- if (extension === "json" && fileName !== "schema") {
1132
+ if (fileName !== "schema") {
1132
1133
  fileName = `${fileName}.schema`;
1133
1134
  }
1134
1135
  return joinPaths(file.parentPath, `${fileName}.${extension}`);
@@ -1308,8 +1309,8 @@ async function createProgram(config) {
1308
1309
  program.version("1.0.0", "-v --version", "display CLI version");
1309
1310
  program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError().showSuggestionAfterError();
1310
1311
  const entryOption = new import_commander.Option("-e --entry <path>", "The path to the entry file to generate types for. This can be a file or a directory. Globs are supported.").argParser((val) => val.split(",")).default([
1311
- "**/schema.ts",
1312
- "**/*.schema.ts"
1312
+ "**/untyped.ts",
1313
+ "**/*.untyped.ts"
1313
1314
  ]);
1314
1315
  const outputPathOption = new import_commander.Option("-o --output-path <path>", "The path of the project's source folder to build");
1315
1316
  program.command("generate", {
package/bin/untyped.mjs CHANGED
@@ -422,7 +422,8 @@ var CONSOLE_ICONS = {
422
422
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
423
423
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
424
424
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
425
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
425
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
426
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
426
427
  };
427
428
 
428
429
  // ../config-tools/src/logger/format-timestamp.ts
@@ -497,48 +498,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
497
498
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
498
499
  return (message) => {
499
500
  console.error(`
500
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
501
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
501
502
  `);
502
503
  };
503
504
  }
504
505
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
505
506
  return (message) => {
506
507
  console.error(`
507
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
508
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
508
509
  `);
509
510
  };
510
511
  }
511
512
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
512
513
  return (message) => {
513
514
  console.warn(`
514
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
515
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
515
516
  `);
516
517
  };
517
518
  }
518
519
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
519
520
  return (message) => {
520
521
  console.info(`
521
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
522
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
522
523
  `);
523
524
  };
524
525
  }
525
526
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
526
527
  return (message) => {
527
528
  console.info(`
528
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
529
530
  `);
530
531
  };
531
532
  }
532
533
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
533
534
  return (message) => {
534
535
  console.debug(`
535
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
536
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
536
537
  `);
537
538
  };
538
539
  }
539
540
  return (message) => {
540
541
  console.log(`
541
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
542
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
542
543
  `);
543
544
  };
544
545
  }, "getLogFn");
@@ -621,26 +622,26 @@ Stacktrace: ${error.stack}`, config);
621
622
  // ../config-tools/src/config-file/get-config-file.ts
622
623
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
623
624
  const workspacePath = filePath || findWorkspaceRoot(filePath);
624
- let config = loadConfig({
625
+ let config = await loadConfig({
625
626
  cwd: workspacePath,
626
627
  packageJson: true,
627
628
  name: fileName,
628
629
  envName: fileName?.toUpperCase(),
629
630
  jitiOptions: {
630
631
  debug: false,
631
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
632
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
632
633
  },
633
634
  ...options
634
635
  });
635
636
  if (!config || Object.keys(config).length === 0) {
636
- config = loadConfig({
637
+ config = await loadConfig({
637
638
  cwd: workspacePath,
638
639
  packageJson: true,
639
640
  name: fileName,
640
641
  envName: fileName?.toUpperCase(),
641
642
  jitiOptions: {
642
643
  debug: false,
643
- cache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
644
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
644
645
  },
645
646
  configFile: fileName,
646
647
  ...options
@@ -1103,11 +1104,11 @@ import { generateTypes } from "untyped";
1103
1104
 
1104
1105
  // src/utilities.ts
1105
1106
  var getOutputFile = /* @__PURE__ */ __name((file, extension) => {
1106
- let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".schema", "").replace("schema", "");
1107
+ let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".untyped", "").replace("untyped", "").replace(".schema", "").replace("schema", "");
1107
1108
  if (!fileName) {
1108
1109
  fileName = "schema";
1109
1110
  }
1110
- if (extension === "json" && fileName !== "schema") {
1111
+ if (fileName !== "schema") {
1111
1112
  fileName = `${fileName}.schema`;
1112
1113
  }
1113
1114
  return joinPaths(file.parentPath, `${fileName}.${extension}`);
@@ -1287,8 +1288,8 @@ async function createProgram(config) {
1287
1288
  program.version("1.0.0", "-v --version", "display CLI version");
1288
1289
  program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError().showSuggestionAfterError();
1289
1290
  const entryOption = new Option("-e --entry <path>", "The path to the entry file to generate types for. This can be a file or a directory. Globs are supported.").argParser((val) => val.split(",")).default([
1290
- "**/schema.ts",
1291
- "**/*.schema.ts"
1291
+ "**/untyped.ts",
1292
+ "**/*.untyped.ts"
1292
1293
  ]);
1293
1294
  const outputPathOption = new Option("-o --output-path <path>", "The path of the project's source folder to build");
1294
1295
  program.command("generate", {
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-IZL7IEIU.mjs";
3
+ } from "./chunk-XAGWZ3JW.mjs";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-RAX4M7XF.mjs";
6
+ } from "./chunk-ZHHYXAVP.mjs";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-CSRZXE4P.mjs";
9
+ } from "./chunk-OLRKE2WB.mjs";
10
10
  import {
11
11
  isVerbose,
12
12
  writeError,
13
13
  writeTrace
14
- } from "./chunk-CVBHL6A3.mjs";
14
+ } from "./chunk-7OPTVFZK.mjs";
15
15
  import {
16
16
  __name,
17
17
  joinPaths
18
- } from "./chunk-NWAI6PTH.mjs";
18
+ } from "./chunk-DH2WY7QT.mjs";
19
19
 
20
20
  // src/generate.ts
21
21
  import { glob } from "glob";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-NWAI6PTH.mjs";
3
+ } from "./chunk-DH2WY7QT.mjs";
4
4
 
5
5
  // ../config-tools/src/types.ts
6
6
  var LogLevel = {
@@ -288,7 +288,8 @@ var CONSOLE_ICONS = {
288
288
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
289
289
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
290
290
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
291
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
291
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
292
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
292
293
  };
293
294
 
294
295
  // ../config-tools/src/logger/format-timestamp.ts
@@ -308,48 +309,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
308
309
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
309
310
  return (message) => {
310
311
  console.error(`
311
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
312
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
312
313
  `);
313
314
  };
314
315
  }
315
316
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
316
317
  return (message) => {
317
318
  console.error(`
318
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
319
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
319
320
  `);
320
321
  };
321
322
  }
322
323
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
323
324
  return (message) => {
324
325
  console.warn(`
325
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
326
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
326
327
  `);
327
328
  };
328
329
  }
329
330
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
330
331
  return (message) => {
331
332
  console.info(`
332
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
333
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
333
334
  `);
334
335
  };
335
336
  }
336
337
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
337
338
  return (message) => {
338
339
  console.info(`
339
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
340
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
340
341
  `);
341
342
  };
342
343
  }
343
344
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
344
345
  return (message) => {
345
346
  console.debug(`
346
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
347
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
347
348
  `);
348
349
  };
349
350
  }
350
351
  return (message) => {
351
352
  console.log(`
352
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
353
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
353
354
  `);
354
355
  };
355
356
  }, "getLogFn");
@@ -21,11 +21,11 @@ var joinPaths = /* @__PURE__ */ __name((...paths) => {
21
21
 
22
22
  // src/utilities.ts
23
23
  var getOutputFile = /* @__PURE__ */ __name((file, extension) => {
24
- let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".schema", "").replace("schema", "");
24
+ let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".untyped", "").replace("untyped", "").replace(".schema", "").replace("schema", "");
25
25
  if (!fileName) {
26
26
  fileName = "schema";
27
27
  }
28
- if (extension === "json" && fileName !== "schema") {
28
+ if (fileName !== "schema") {
29
29
  fileName = `${fileName}.schema`;
30
30
  }
31
31
  return joinPaths(file.parentPath, `${fileName}.${extension}`);
@@ -1,21 +1,21 @@
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 _chunkPSNCUPEFjs = require('./chunk-PSNCUPEF.js');
4
+ var _chunkYMCYTSDOjs = require('./chunk-YMCYTSDO.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
8
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
9
9
 
10
10
  // src/generators/json-schema.ts
11
11
  var _promises = require('fs/promises');
12
12
  function generateJsonSchemaFile(schema, file, config) {
13
13
  try {
14
- const jsonSchema = _chunk64SOMW7Ajs.getOutputFile.call(void 0, file, "json");
15
- _chunkPSNCUPEFjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
14
+ const jsonSchema = _chunkZP3OD7IOjs.getOutputFile.call(void 0, file, "json");
15
+ _chunkYMCYTSDOjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
16
16
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
17
17
  } catch (error) {
18
- _chunkPSNCUPEFjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
18
+ _chunkYMCYTSDOjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
19
19
 
20
20
  Error:
21
21
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -27,7 +27,7 @@ ${JSON.stringify(schema)}
27
27
  throw error;
28
28
  }
29
29
  }
30
- _chunk64SOMW7Ajs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
30
+ _chunkZP3OD7IOjs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
31
31
 
32
32
 
33
33
 
@@ -1,26 +1,26 @@
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 _chunk4E62JEHLjs = require('./chunk-4E62JEHL.js');
3
+ var _chunkI5HMFTDJjs = require('./chunk-I5HMFTDJ.js');
4
4
 
5
5
 
6
- var _chunkBBZKEOA5js = require('./chunk-BBZKEOA5.js');
6
+ var _chunkDV7PRVVQjs = require('./chunk-DV7PRVVQ.js');
7
7
 
8
8
 
9
- var _chunkRXZL622Njs = require('./chunk-RXZL622N.js');
9
+ var _chunkJRYWLT6Jjs = require('./chunk-JRYWLT6J.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkPSNCUPEFjs = require('./chunk-PSNCUPEF.js');
14
+ var _chunkYMCYTSDOjs = require('./chunk-YMCYTSDO.js');
15
15
 
16
16
 
17
17
 
18
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
18
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
19
19
 
20
20
  // src/generate.ts
21
21
  var _glob = require('glob');
22
22
  var _loader = require('untyped/loader');
23
- var getGenerateAction = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (config) => async (options) => {
23
+ var getGenerateAction = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (config) => async (options) => {
24
24
  const files = await _glob.glob.call(void 0, options.entry, {
25
25
  ignore: [
26
26
  "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
@@ -35,21 +35,21 @@ var getGenerateAction = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (co
35
35
  cwd: config.workspaceRoot
36
36
  });
37
37
  const cache = !Boolean(process.env.CI) && !Boolean(process.env.STORM_CI) && !config.skipCache;
38
- _chunkPSNCUPEFjs.writeTrace.call(void 0, cache ? `Skipping jiti cache because ${Boolean(process.env.CI) ? '`process.env.CI` is set to "true"' : Boolean(process.env.STORM_CI) ? '`process.env.STORM_CI` is set to "true"' : config.skipCache ? "`skipCache` in the Storm configuration file is set to `true`" : "<INVALID REASON>"}` : "Will use jiti cache while parsing schema files", config);
38
+ _chunkYMCYTSDOjs.writeTrace.call(void 0, cache ? `Skipping jiti cache because ${Boolean(process.env.CI) ? '`process.env.CI` is set to "true"' : Boolean(process.env.STORM_CI) ? '`process.env.STORM_CI` is set to "true"' : config.skipCache ? "`skipCache` in the Storm configuration file is set to `true`" : "<INVALID REASON>"}` : "Will use jiti cache while parsing schema files", config);
39
39
  await Promise.all(files.map(async (file) => {
40
- _chunkPSNCUPEFjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunk64SOMW7Ajs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
40
+ _chunkYMCYTSDOjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkZP3OD7IOjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
41
41
  let schema;
42
42
  try {
43
- schema = await _loader.loadSchema.call(void 0, _chunk64SOMW7Ajs.joinPaths.call(void 0, file.parentPath, file.name), {
43
+ schema = await _loader.loadSchema.call(void 0, _chunkZP3OD7IOjs.joinPaths.call(void 0, file.parentPath, file.name), {
44
44
  jiti: {
45
- debug: _chunkPSNCUPEFjs.isVerbose.call(void 0, config.logLevel),
46
- fsCache: cache && _chunk64SOMW7Ajs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache", "storm", "untyped"),
45
+ debug: _chunkYMCYTSDOjs.isVerbose.call(void 0, config.logLevel),
46
+ fsCache: cache && _chunkZP3OD7IOjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache", "storm", "untyped"),
47
47
  moduleCache: cache,
48
48
  interopDefault: true
49
49
  }
50
50
  });
51
51
  } catch (error) {
52
- _chunkPSNCUPEFjs.writeError.call(void 0, `Error while parsing schema file: ${_chunk64SOMW7Ajs.joinPaths.call(void 0, file.parentPath, file.name)}
52
+ _chunkYMCYTSDOjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkZP3OD7IOjs.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(_chunk4E62JEHLjs.generateDeclarationFile.call(void 0, schema, file, config));
65
- promises.push(_chunkRXZL622Njs.generateMarkdownFile.call(void 0, schema, file, config));
66
- promises.push(_chunkBBZKEOA5js.generateJsonSchemaFile.call(void 0, schema, file, config));
64
+ promises.push(_chunkI5HMFTDJjs.generateDeclarationFile.call(void 0, schema, file, config));
65
+ promises.push(_chunkJRYWLT6Jjs.generateMarkdownFile.call(void 0, schema, file, config));
66
+ promises.push(_chunkDV7PRVVQjs.generateJsonSchemaFile.call(void 0, schema, file, config));
67
67
  return Promise.all(promises);
68
68
  }));
69
69
  }, "getGenerateAction");
@@ -1,11 +1,11 @@
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 _chunkPSNCUPEFjs = require('./chunk-PSNCUPEF.js');
4
+ var _chunkYMCYTSDOjs = require('./chunk-YMCYTSDO.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
8
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
9
9
 
10
10
  // src/generators/dts.ts
11
11
  var _promises = require('fs/promises');
@@ -23,14 +23,14 @@ ${_untyped.generateTypes.call(void 0, schema, {
23
23
 
24
24
  `;
25
25
  }
26
- _chunk64SOMW7Ajs.__name.call(void 0, generateDeclaration, "generateDeclaration");
26
+ _chunkZP3OD7IOjs.__name.call(void 0, generateDeclaration, "generateDeclaration");
27
27
  function generateDeclarationFile(schema, file, config) {
28
28
  try {
29
- const declarations = _chunk64SOMW7Ajs.getOutputFile.call(void 0, file, "d.ts");
30
- _chunkPSNCUPEFjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
29
+ const declarations = _chunkZP3OD7IOjs.getOutputFile.call(void 0, file, "d.ts");
30
+ _chunkYMCYTSDOjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
31
31
  return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
32
32
  } catch (error) {
33
- _chunkPSNCUPEFjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
33
+ _chunkYMCYTSDOjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
34
34
 
35
35
  Error:
36
36
  ${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
@@ -42,7 +42,7 @@ ${JSON.stringify(schema)}
42
42
  throw error;
43
43
  }
44
44
  }
45
- _chunk64SOMW7Ajs.__name.call(void 0, generateDeclarationFile, "generateDeclarationFile");
45
+ _chunkZP3OD7IOjs.__name.call(void 0, generateDeclarationFile, "generateDeclarationFile");
46
46
 
47
47
 
48
48
 
@@ -1,11 +1,11 @@
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 _chunkPSNCUPEFjs = require('./chunk-PSNCUPEF.js');
4
+ var _chunkYMCYTSDOjs = require('./chunk-YMCYTSDO.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
8
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
9
9
 
10
10
  // src/generators/markdown.ts
11
11
  var _promises = require('fs/promises');
@@ -18,7 +18,7 @@ ${generateMarkdownLevel(schema, schema.title || "", "#").join("\n")}
18
18
 
19
19
  `;
20
20
  }
21
- _chunk64SOMW7Ajs.__name.call(void 0, generateMarkdown, "generateMarkdown");
21
+ _chunkZP3OD7IOjs.__name.call(void 0, generateMarkdown, "generateMarkdown");
22
22
  function generateMarkdownLevel(schema, title, level) {
23
23
  const lines = [];
24
24
  lines.push(`${level} ${title}`);
@@ -42,14 +42,14 @@ function generateMarkdownLevel(schema, title, level) {
42
42
  }
43
43
  return lines;
44
44
  }
45
- _chunk64SOMW7Ajs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLevel");
45
+ _chunkZP3OD7IOjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLevel");
46
46
  function generateMarkdownFile(schema, file, config) {
47
47
  try {
48
- const declarations = _chunk64SOMW7Ajs.getOutputFile.call(void 0, file, "md");
49
- _chunkPSNCUPEFjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
48
+ const declarations = _chunkZP3OD7IOjs.getOutputFile.call(void 0, file, "md");
49
+ _chunkYMCYTSDOjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
50
50
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
51
51
  } catch (error) {
52
- _chunkPSNCUPEFjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
52
+ _chunkYMCYTSDOjs.writeError.call(void 0, `Error writing markdown file for ${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,7 +61,7 @@ ${JSON.stringify(schema)}
61
61
  throw error;
62
62
  }
63
63
  }
64
- _chunk64SOMW7Ajs.__name.call(void 0, generateMarkdownFile, "generateMarkdownFile");
64
+ _chunkZP3OD7IOjs.__name.call(void 0, generateMarkdownFile, "generateMarkdownFile");
65
65
 
66
66
 
67
67
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-CVBHL6A3.mjs";
4
+ } from "./chunk-7OPTVFZK.mjs";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile
8
- } from "./chunk-NWAI6PTH.mjs";
8
+ } from "./chunk-DH2WY7QT.mjs";
9
9
 
10
10
  // src/generators/markdown.ts
11
11
  import { writeFile } from "node:fs/promises";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-CVBHL6A3.mjs";
4
+ } from "./chunk-7OPTVFZK.mjs";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile
8
- } from "./chunk-NWAI6PTH.mjs";
8
+ } from "./chunk-DH2WY7QT.mjs";
9
9
 
10
10
  // src/generators/dts.ts
11
11
  import { writeFile } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
3
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
4
4
 
5
5
  // ../config-tools/src/types.ts
6
6
  var LogLevel = {
@@ -27,7 +27,7 @@ var LogLevelLabel = {
27
27
  };
28
28
 
29
29
  // ../config-tools/src/logger/get-log-level.ts
30
- var getLogLevel = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (label) => {
30
+ var getLogLevel = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (label) => {
31
31
  switch (label) {
32
32
  case "all":
33
33
  return LogLevel.ALL;
@@ -49,7 +49,7 @@ var getLogLevel = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (label) =
49
49
  return LogLevel.INFO;
50
50
  }
51
51
  }, "getLogLevel");
52
- var isVerbose = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
52
+ var isVerbose = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
53
53
  const logLevel = typeof label === "string" ? getLogLevel(label) : label;
54
54
  return logLevel >= LogLevel.DEBUG;
55
55
  }, "isVerbose");
@@ -238,25 +238,25 @@ var DEFAULT_COLOR_CONFIG = {
238
238
  // ../config-tools/src/logger/chalk.ts
239
239
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
240
240
  var chalkDefault = {
241
- hex: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (_) => (message) => message, "hex"),
242
- bgHex: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (_) => ({
243
- whiteBright: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "whiteBright")
241
+ hex: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (_) => (message) => message, "hex"),
242
+ bgHex: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (_) => ({
243
+ whiteBright: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "whiteBright")
244
244
  }), "bgHex"),
245
- whiteBright: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "whiteBright"),
246
- gray: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "gray"),
245
+ whiteBright: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "whiteBright"),
246
+ gray: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "gray"),
247
247
  bold: {
248
- hex: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (_) => (message) => message, "hex"),
249
- bgHex: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (_) => ({
250
- whiteBright: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "whiteBright")
248
+ hex: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (_) => (message) => message, "hex"),
249
+ bgHex: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (_) => ({
250
+ whiteBright: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "whiteBright")
251
251
  }), "bgHex"),
252
- whiteBright: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "whiteBright")
252
+ whiteBright: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "whiteBright")
253
253
  },
254
254
  dim: {
255
- hex: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (_) => (message) => message, "hex"),
256
- gray: /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message) => message, "gray")
255
+ hex: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (_) => (message) => message, "hex"),
256
+ gray: /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message) => message, "gray")
257
257
  }
258
258
  };
259
- var getChalk = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, () => {
259
+ var getChalk = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, () => {
260
260
  let _chalk = _chalk3.default;
261
261
  if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
262
262
  _chalk = chalkDefault;
@@ -277,10 +277,10 @@ function isUnicodeSupported() {
277
277
  env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
278
278
  TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
279
279
  }
280
- _chunk64SOMW7Ajs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
280
+ _chunkZP3OD7IOjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
281
281
 
282
282
  // ../config-tools/src/logger/console-icons.ts
283
- var useIcon = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
283
+ var useIcon = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
284
284
  var CONSOLE_ICONS = {
285
285
  [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
286
286
  [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
@@ -288,16 +288,17 @@ var CONSOLE_ICONS = {
288
288
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
289
289
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
290
290
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
291
- [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
291
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
292
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
292
293
  };
293
294
 
294
295
  // ../config-tools/src/logger/format-timestamp.ts
295
- var formatTimestamp = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
296
+ var formatTimestamp = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
296
297
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
297
298
  }, "formatTimestamp");
298
299
 
299
300
  // ../config-tools/src/logger/console.ts
300
- var getLogFn = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
301
+ var getLogFn = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
301
302
  const _chalk = getChalk();
302
303
  const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
303
304
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
@@ -308,55 +309,55 @@ var getLogFn = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (logLevel =
308
309
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
309
310
  return (message) => {
310
311
  console.error(`
311
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
312
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
312
313
  `);
313
314
  };
314
315
  }
315
316
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
316
317
  return (message) => {
317
318
  console.error(`
318
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
319
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
319
320
  `);
320
321
  };
321
322
  }
322
323
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
323
324
  return (message) => {
324
325
  console.warn(`
325
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
326
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
326
327
  `);
327
328
  };
328
329
  }
329
330
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
330
331
  return (message) => {
331
332
  console.info(`
332
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
333
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
333
334
  `);
334
335
  };
335
336
  }
336
337
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
337
338
  return (message) => {
338
339
  console.info(`
339
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
340
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
340
341
  `);
341
342
  };
342
343
  }
343
344
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
344
345
  return (message) => {
345
346
  console.debug(`
346
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
347
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
347
348
  `);
348
349
  };
349
350
  }
350
351
  return (message) => {
351
352
  console.log(`
352
- ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
353
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
353
354
  `);
354
355
  };
355
356
  }, "getLogFn");
356
- var writeError = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
357
- var writeTrace = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
357
+ var writeError = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
358
+ var writeTrace = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
358
359
  var MAX_DEPTH = 4;
359
- var formatLogMessage = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (message, options = {}, depth = 0) => {
360
+ var formatLogMessage = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (message, options = {}, depth = 0) => {
360
361
  if (depth > MAX_DEPTH) {
361
362
  return "<max depth>";
362
363
  }
@@ -372,7 +373,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${pre
372
373
  skip
373
374
  }, depth + 1) : message[key]}`).join("\n")}` : message;
374
375
  }, "formatLogMessage");
375
- var _isFunction = /* @__PURE__ */ _chunk64SOMW7Ajs.__name.call(void 0, (value) => {
376
+ var _isFunction = /* @__PURE__ */ _chunkZP3OD7IOjs.__name.call(void 0, (value) => {
376
377
  try {
377
378
  return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
378
379
  } catch (e) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-CVBHL6A3.mjs";
4
+ } from "./chunk-7OPTVFZK.mjs";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile
8
- } from "./chunk-NWAI6PTH.mjs";
8
+ } from "./chunk-DH2WY7QT.mjs";
9
9
 
10
10
  // src/generators/json-schema.ts
11
11
  import { writeFile } from "node:fs/promises";
@@ -21,11 +21,11 @@ var joinPaths = /* @__PURE__ */ __name((...paths) => {
21
21
 
22
22
  // src/utilities.ts
23
23
  var getOutputFile = /* @__PURE__ */ __name((file, extension) => {
24
- let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".schema", "").replace("schema", "");
24
+ let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".untyped", "").replace("untyped", "").replace(".schema", "").replace("schema", "");
25
25
  if (!fileName) {
26
26
  fileName = "schema";
27
27
  }
28
- if (extension === "json" && fileName !== "schema") {
28
+ if (fileName !== "schema") {
29
29
  fileName = `${fileName}.schema`;
30
30
  }
31
31
  return joinPaths(file.parentPath, `${fileName}.${extension}`);
package/dist/generate.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkODWHGK5Njs = require('./chunk-ODWHGK5N.js');
4
- require('./chunk-4E62JEHL.js');
5
- require('./chunk-BBZKEOA5.js');
6
- require('./chunk-RXZL622N.js');
7
- require('./chunk-PSNCUPEF.js');
8
- require('./chunk-64SOMW7A.js');
3
+ var _chunkHBHOVTK2js = require('./chunk-HBHOVTK2.js');
4
+ require('./chunk-I5HMFTDJ.js');
5
+ require('./chunk-DV7PRVVQ.js');
6
+ require('./chunk-JRYWLT6J.js');
7
+ require('./chunk-YMCYTSDO.js');
8
+ require('./chunk-ZP3OD7IO.js');
9
9
 
10
10
 
11
- exports.getGenerateAction = _chunkODWHGK5Njs.getGenerateAction;
11
+ exports.getGenerateAction = _chunkHBHOVTK2js.getGenerateAction;
package/dist/generate.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-UU4FFJSX.mjs";
4
- import "./chunk-IZL7IEIU.mjs";
5
- import "./chunk-RAX4M7XF.mjs";
6
- import "./chunk-CSRZXE4P.mjs";
7
- import "./chunk-CVBHL6A3.mjs";
8
- import "./chunk-NWAI6PTH.mjs";
3
+ } from "./chunk-7LOMEJRK.mjs";
4
+ import "./chunk-XAGWZ3JW.mjs";
5
+ import "./chunk-ZHHYXAVP.mjs";
6
+ import "./chunk-OLRKE2WB.mjs";
7
+ import "./chunk-7OPTVFZK.mjs";
8
+ import "./chunk-DH2WY7QT.mjs";
9
9
  export {
10
10
  getGenerateAction
11
11
  };
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkODWHGK5Njs = require('./chunk-ODWHGK5N.js');
3
+ var _chunkHBHOVTK2js = require('./chunk-HBHOVTK2.js');
4
4
  require('./chunk-U4YLQDJK.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk4E62JEHLjs = require('./chunk-4E62JEHL.js');
8
+ var _chunkI5HMFTDJjs = require('./chunk-I5HMFTDJ.js');
9
9
 
10
10
 
11
- var _chunkBBZKEOA5js = require('./chunk-BBZKEOA5.js');
11
+ var _chunkDV7PRVVQjs = require('./chunk-DV7PRVVQ.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkRXZL622Njs = require('./chunk-RXZL622N.js');
16
- require('./chunk-PSNCUPEF.js');
15
+ var _chunkJRYWLT6Jjs = require('./chunk-JRYWLT6J.js');
16
+ require('./chunk-YMCYTSDO.js');
17
17
 
18
18
 
19
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
19
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
20
20
 
21
21
 
22
22
 
@@ -25,4 +25,4 @@ var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
25
25
 
26
26
 
27
27
 
28
- exports.generateDeclaration = _chunk4E62JEHLjs.generateDeclaration; exports.generateDeclarationFile = _chunk4E62JEHLjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkBBZKEOA5js.generateJsonSchemaFile; exports.generateMarkdown = _chunkRXZL622Njs.generateMarkdown; exports.generateMarkdownFile = _chunkRXZL622Njs.generateMarkdownFile; exports.getGenerateAction = _chunkODWHGK5Njs.getGenerateAction; exports.getOutputFile = _chunk64SOMW7Ajs.getOutputFile;
28
+ exports.generateDeclaration = _chunkI5HMFTDJjs.generateDeclaration; exports.generateDeclarationFile = _chunkI5HMFTDJjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkDV7PRVVQjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkJRYWLT6Jjs.generateMarkdown; exports.generateMarkdownFile = _chunkJRYWLT6Jjs.generateMarkdownFile; exports.getGenerateAction = _chunkHBHOVTK2js.getGenerateAction; exports.getOutputFile = _chunkZP3OD7IOjs.getOutputFile;
package/dist/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-UU4FFJSX.mjs";
3
+ } from "./chunk-7LOMEJRK.mjs";
4
4
  import "./chunk-ZHPKHX4S.mjs";
5
5
  import {
6
6
  generateDeclaration,
7
7
  generateDeclarationFile
8
- } from "./chunk-IZL7IEIU.mjs";
8
+ } from "./chunk-XAGWZ3JW.mjs";
9
9
  import {
10
10
  generateJsonSchemaFile
11
- } from "./chunk-RAX4M7XF.mjs";
11
+ } from "./chunk-ZHHYXAVP.mjs";
12
12
  import {
13
13
  generateMarkdown,
14
14
  generateMarkdownFile
15
- } from "./chunk-CSRZXE4P.mjs";
16
- import "./chunk-CVBHL6A3.mjs";
15
+ } from "./chunk-OLRKE2WB.mjs";
16
+ import "./chunk-7OPTVFZK.mjs";
17
17
  import {
18
18
  getOutputFile
19
- } from "./chunk-NWAI6PTH.mjs";
19
+ } from "./chunk-DH2WY7QT.mjs";
20
20
  export {
21
21
  generateDeclaration,
22
22
  generateDeclarationFile,
package/dist/utilities.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk64SOMW7Ajs = require('./chunk-64SOMW7A.js');
3
+ var _chunkZP3OD7IOjs = require('./chunk-ZP3OD7IO.js');
4
4
 
5
5
 
6
- exports.getOutputFile = _chunk64SOMW7Ajs.getOutputFile;
6
+ exports.getOutputFile = _chunkZP3OD7IOjs.getOutputFile;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getOutputFile
3
- } from "./chunk-NWAI6PTH.mjs";
3
+ } from "./chunk-DH2WY7QT.mjs";
4
4
  export {
5
5
  getOutputFile
6
6
  };
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@storm-software/untyped","version":"0.1.0","description":"A package containing `untyped` utilities for building Storm Software libraries and applications","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops.git","directory":"packages/untyped"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"maintainers":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},{"name":"Pat Sullivan","email":"admin@stormsoftware.com","url":"https://patsullivan.org"}],"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"packageManager":"pnpm@9.15.2","engines":{"node":">=22.4.0","pnpm":">=9.15.2"},"bin":{"storm-untyped":"./bin/storm-untyped.js","storm-untyped-cjs":"./bin/storm-untyped.js","storm-untyped-esm":"./bin/storm-untyped.mjs"},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{"./package.json":"./package.json","./index":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./generate":{"import":{"types":"./dist/generate.d.mts","default":"./dist/generate.mjs"},"require":{"types":"./dist/generate.d.ts","default":"./dist/generate.js"},"default":{"types":"./dist/generate.d.ts","default":"./dist/generate.js"}},"./utilities":{"import":{"types":"./dist/utilities.d.mts","default":"./dist/utilities.mjs"},"require":{"types":"./dist/utilities.d.ts","default":"./dist/utilities.js"},"default":{"types":"./dist/utilities.d.ts","default":"./dist/utilities.js"}},"./generators/dts":{"import":{"types":"./dist/generators/dts.d.mts","default":"./dist/generators/dts.mjs"},"require":{"types":"./dist/generators/dts.d.ts","default":"./dist/generators/dts.js"},"default":{"types":"./dist/generators/dts.d.ts","default":"./dist/generators/dts.js"}},"./generators/markdown":{"import":{"types":"./dist/generators/markdown.d.mts","default":"./dist/generators/markdown.mjs"},"require":{"types":"./dist/generators/markdown.d.ts","default":"./dist/generators/markdown.js"},"default":{"types":"./dist/generators/markdown.d.ts","default":"./dist/generators/markdown.js"}},"./generators/json-schema":{"import":{"types":"./dist/generators/json-schema.d.mts","default":"./dist/generators/json-schema.mjs"},"require":{"types":"./dist/generators/json-schema.d.ts","default":"./dist/generators/json-schema.js"},"default":{"types":"./dist/generators/json-schema.d.ts","default":"./dist/generators/json-schema.js"}},"./generators/index":{"import":{"types":"./dist/generators/index.d.mts","default":"./dist/generators/index.mjs"},"require":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"},"default":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"}},"./generators":{"import":{"types":"./dist/generators/index.d.mts","default":"./dist/generators/index.mjs"},"require":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"},"default":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"}}},"types":"./dist/index.d.ts","files":["bin/**/*","dist/**/*"],"keywords":["acidic","cyclone-ui","untyped","monorepo","storm","storm-ops","storm-stack","sullivanpj"],"peerDependencies":{"@nx/devkit":"^20.3.1","@storm-software/build-tools":"workspace:*","@storm-software/config-tools":"workspace:*","untyped":"^1.5.2"},"peerDependenciesMeta":{"@nx/devkit":{"optional":false},"@storm-software/build-tools":{"optional":false},"@storm-software/config-tools":{"optional":false},"untyped":{"optional":false}},"dependencies":{"commander":"^12.1.0","glob":"^10.4.2","knitwork":"^1.2.0","nx":"^20.3.1"},"devDependencies":{"@nx/devkit":"^20.3.1","@storm-software/build-tools":"0.126.0","@storm-software/config":"1.95.0","@storm-software/config-tools":"1.134.0","@types/node":"^22.10.2","tsup":"8.3.5","untyped":"^1.5.2"},"publishConfig":{"access":"public"},"sideEffects":false}
1
+ {"name":"@storm-software/untyped","version":"0.3.0","description":"A package containing `untyped` utilities for building Storm Software libraries and applications","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops.git","directory":"packages/untyped"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"maintainers":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},{"name":"Pat Sullivan","email":"admin@stormsoftware.com","url":"https://patsullivan.org"}],"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"packageManager":"pnpm@9.15.2","engines":{"node":">=22.4.0","pnpm":">=9.15.2"},"bin":{"storm-untyped":"./bin/storm-untyped.js","storm-untyped-cjs":"./bin/storm-untyped.js","storm-untyped-esm":"./bin/storm-untyped.mjs"},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{"./package.json":"./package.json","./index":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./generate":{"import":{"types":"./dist/generate.d.mts","default":"./dist/generate.mjs"},"require":{"types":"./dist/generate.d.ts","default":"./dist/generate.js"},"default":{"types":"./dist/generate.d.ts","default":"./dist/generate.js"}},"./utilities":{"import":{"types":"./dist/utilities.d.mts","default":"./dist/utilities.mjs"},"require":{"types":"./dist/utilities.d.ts","default":"./dist/utilities.js"},"default":{"types":"./dist/utilities.d.ts","default":"./dist/utilities.js"}},"./generators/dts":{"import":{"types":"./dist/generators/dts.d.mts","default":"./dist/generators/dts.mjs"},"require":{"types":"./dist/generators/dts.d.ts","default":"./dist/generators/dts.js"},"default":{"types":"./dist/generators/dts.d.ts","default":"./dist/generators/dts.js"}},"./generators/markdown":{"import":{"types":"./dist/generators/markdown.d.mts","default":"./dist/generators/markdown.mjs"},"require":{"types":"./dist/generators/markdown.d.ts","default":"./dist/generators/markdown.js"},"default":{"types":"./dist/generators/markdown.d.ts","default":"./dist/generators/markdown.js"}},"./generators/json-schema":{"import":{"types":"./dist/generators/json-schema.d.mts","default":"./dist/generators/json-schema.mjs"},"require":{"types":"./dist/generators/json-schema.d.ts","default":"./dist/generators/json-schema.js"},"default":{"types":"./dist/generators/json-schema.d.ts","default":"./dist/generators/json-schema.js"}},"./generators/index":{"import":{"types":"./dist/generators/index.d.mts","default":"./dist/generators/index.mjs"},"require":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"},"default":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"}},"./generators":{"import":{"types":"./dist/generators/index.d.mts","default":"./dist/generators/index.mjs"},"require":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"},"default":{"types":"./dist/generators/index.d.ts","default":"./dist/generators/index.js"}}},"types":"./dist/index.d.ts","files":["bin/**/*","dist/**/*"],"keywords":["acidic","cyclone-ui","untyped","monorepo","storm","storm-ops","storm-stack","sullivanpj"],"peerDependencies":{"@nx/devkit":"^20.3.1","@storm-software/build-tools":"workspace:*","@storm-software/config-tools":"workspace:*","untyped":"^1.5.2"},"peerDependenciesMeta":{"@nx/devkit":{"optional":false},"@storm-software/build-tools":{"optional":false},"@storm-software/config-tools":{"optional":false},"untyped":{"optional":false}},"dependencies":{"commander":"^12.1.0","glob":"^10.4.2","knitwork":"^1.2.0","nx":"^20.3.1"},"devDependencies":{"@nx/devkit":"^20.3.1","@storm-software/build-tools":"0.127.0","@storm-software/config":"1.96.0","@storm-software/config-tools":"1.136.0","@types/node":"^22.10.2","tsup":"8.3.5","untyped":"^1.5.2"},"publishConfig":{"access":"public"},"sideEffects":false}