@storm-software/workspace-tools 1.266.3 → 1.266.5

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-BRDK3UGW.mjs → chunk-24FSFLEJ.mjs} +2 -2
  4. package/dist/{chunk-4RI5TAZ5.mjs → chunk-2BI3RJFP.mjs} +175 -12
  5. package/dist/{chunk-OENTXUOU.mjs → chunk-3FIZEIEU.mjs} +1 -1
  6. package/dist/{chunk-P3KSR3SR.mjs → chunk-56NOEAUZ.mjs} +1 -1
  7. package/dist/{chunk-GH7NKN7I.mjs → chunk-5UUINVQE.mjs} +1 -1
  8. package/dist/{chunk-4MQBPVNM.mjs → chunk-6YRWQ3TB.mjs} +1 -1
  9. package/dist/{chunk-BBQYSGHD.js → chunk-7F4BVKX3.js} +2 -2
  10. package/dist/{chunk-7NJYHKD4.js → chunk-AKADBPPT.js} +2 -2
  11. package/dist/{chunk-ZHCAJSHG.js → chunk-BAJ3JRJC.js} +20 -20
  12. package/dist/{chunk-XXFGRTIR.js → chunk-BP5OIRQR.js} +5 -5
  13. package/dist/{chunk-YEIFMXCK.mjs → chunk-CGGBNNFN.mjs} +1 -1
  14. package/dist/{chunk-KJ5COMK2.js → chunk-CSGLVAIK.js} +2 -2
  15. package/dist/{chunk-ZNX5CSRD.js → chunk-CXXOP7P6.js} +2 -2
  16. package/dist/{chunk-SIIOJLU5.mjs → chunk-EXQMY7WD.mjs} +2 -2
  17. package/dist/{chunk-Z5ADLA6I.js → chunk-GX74WTEM.js} +211 -48
  18. package/dist/{chunk-3XSWT4CQ.mjs → chunk-HAUXJ6F2.mjs} +1 -1
  19. package/dist/{chunk-ILRTPPJ4.js → chunk-HVOODRL3.js} +2 -2
  20. package/dist/{chunk-7KECHDTY.mjs → chunk-IOYD4LKE.mjs} +2 -2
  21. package/dist/{chunk-VKKE7EW4.js → chunk-JADXJLCF.js} +4 -4
  22. package/dist/{chunk-KN4FIRQI.js → chunk-JOA2AXGF.js} +15 -15
  23. package/dist/{chunk-QGEPDAWP.mjs → chunk-KE7BLB2Y.mjs} +2 -2
  24. package/dist/{chunk-QMOP57NZ.mjs → chunk-KLY4F7KE.mjs} +1 -1
  25. package/dist/{chunk-WBKZ3KUQ.mjs → chunk-LBWGCRH2.mjs} +1 -1
  26. package/dist/{chunk-ILLL3MMC.mjs → chunk-MHTKV6DY.mjs} +1 -1
  27. package/dist/{chunk-UYN4J6AU.mjs → chunk-N5N2BZHB.mjs} +12 -6
  28. package/dist/{chunk-BHPRU5VN.js → chunk-NY3AXYUD.js} +2 -2
  29. package/dist/{chunk-R2JUE5UD.js → chunk-OCJK2N3G.js} +2 -2
  30. package/dist/{chunk-METCIMBV.js → chunk-OFA5UEOD.js} +5 -5
  31. package/dist/{chunk-EM2LUZWE.js → chunk-POI2YR4E.js} +11 -11
  32. package/dist/{chunk-4ZWQHDDR.js → chunk-PYR5LR3M.js} +2 -2
  33. package/dist/{chunk-G25NYDN4.js → chunk-SN7IJGEE.js} +12 -6
  34. package/dist/{chunk-ALY3T5YO.js → chunk-TCG7CFMK.js} +2 -2
  35. package/dist/{chunk-C325OLQA.mjs → chunk-TEHJDKUJ.mjs} +1 -1
  36. package/dist/{chunk-5TLQHBOJ.mjs → chunk-UQTVXA7T.mjs} +1 -1
  37. package/dist/{chunk-ZXO3ZJZW.js → chunk-XFBY2IVQ.js} +9 -9
  38. package/dist/{chunk-XWHWMA27.mjs → chunk-ZV2PR5R3.mjs} +1 -1
  39. package/dist/executors.js +12 -12
  40. package/dist/executors.mjs +11 -11
  41. package/dist/generators.js +9 -9
  42. package/dist/generators.mjs +8 -8
  43. package/dist/index.js +19 -19
  44. package/dist/index.mjs +18 -18
  45. package/dist/src/base/base-executor.js +3 -3
  46. package/dist/src/base/base-executor.mjs +2 -2
  47. package/dist/src/base/base-generator.js +3 -3
  48. package/dist/src/base/base-generator.mjs +2 -2
  49. package/dist/src/base/index.js +4 -4
  50. package/dist/src/base/index.mjs +3 -3
  51. package/dist/src/executors/cargo-build/executor.js +4 -4
  52. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  53. package/dist/src/executors/cargo-check/executor.js +4 -4
  54. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  55. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  56. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  57. package/dist/src/executors/cargo-doc/executor.js +4 -4
  58. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  59. package/dist/src/executors/cargo-format/executor.js +4 -4
  60. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  61. package/dist/src/executors/clean-package/executor.js +5 -5
  62. package/dist/src/executors/clean-package/executor.mjs +2 -2
  63. package/dist/src/executors/esbuild/executor.js +4 -4
  64. package/dist/src/executors/esbuild/executor.mjs +3 -3
  65. package/dist/src/executors/size-limit/executor.js +4 -4
  66. package/dist/src/executors/size-limit/executor.mjs +3 -3
  67. package/dist/src/executors/typia/executor.js +4 -4
  68. package/dist/src/executors/typia/executor.mjs +3 -3
  69. package/dist/src/executors/unbuild/executor.js +4 -4
  70. package/dist/src/executors/unbuild/executor.mjs +3 -3
  71. package/dist/src/generators/browser-library/generator.js +4 -4
  72. package/dist/src/generators/browser-library/generator.mjs +3 -3
  73. package/dist/src/generators/config-schema/generator.js +4 -4
  74. package/dist/src/generators/config-schema/generator.mjs +3 -3
  75. package/dist/src/generators/neutral-library/generator.js +4 -4
  76. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  77. package/dist/src/generators/node-library/generator.js +4 -4
  78. package/dist/src/generators/node-library/generator.mjs +3 -3
  79. package/dist/src/generators/preset/generator.js +4 -4
  80. package/dist/src/generators/preset/generator.mjs +3 -3
  81. package/dist/src/generators/release-version/generator.js +3 -3
  82. package/dist/src/generators/release-version/generator.mjs +2 -2
  83. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.266.5](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.5) (2025-04-16)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([762e7076f](https://github.com/storm-software/storm-ops/commit/762e7076f))
11
+
12
+ ## [1.266.4](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.4) (2025-04-15)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **monorepo:** Upgrade Nx packages to v20.8.0
17
+ ([4cdf26b2a](https://github.com/storm-software/storm-ops/commit/4cdf26b2a))
18
+
5
19
  ## [1.266.3](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.266.3) (2025-04-15)
6
20
 
7
21
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.266.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.266.5-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 -->
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-XWHWMA27.mjs";
3
+ } from "./chunk-ZV2PR5R3.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-UYN4J6AU.mjs";
6
+ } from "./chunk-N5N2BZHB.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-Y4D6KHJP.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-XWHWMA27.mjs";
3
+ } from "./chunk-ZV2PR5R3.mjs";
4
4
  import {
5
5
  formatLogMessage,
6
6
  getConfig,
@@ -13,7 +13,7 @@ import {
13
13
  writeSuccess,
14
14
  writeTrace,
15
15
  writeWarning
16
- } from "./chunk-UYN4J6AU.mjs";
16
+ } from "./chunk-N5N2BZHB.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-44ZYZKMX.mjs";
@@ -262,12 +262,12 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
262
262
 
263
263
  // ../esbuild/src/build.ts
264
264
  import { watch as createWatcher } from "chokidar";
265
- import defu from "defu";
265
+ import defu2 from "defu";
266
266
  import { debounce, flatten } from "es-toolkit";
267
267
  import { map } from "es-toolkit/compat";
268
268
  import * as esbuild2 from "esbuild";
269
269
  import { globbySync } from "globby";
270
- import { existsSync as existsSync4 } from "node:fs";
270
+ import { existsSync as existsSync5 } from "node:fs";
271
271
  import hf from "node:fs/promises";
272
272
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
273
273
 
@@ -654,7 +654,7 @@ __name(bundleTypeDefinitions, "bundleTypeDefinitions");
654
654
  var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
655
655
  name: "storm:tsc",
656
656
  setup(build4) {
657
- if (options.emitTypes === false) {
657
+ if (options.dts === false) {
658
658
  return;
659
659
  }
660
660
  build4.onStart(async () => {
@@ -706,7 +706,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) =
706
706
  var DEFAULT_BUILD_OPTIONS = {
707
707
  platform: "node",
708
708
  target: "node22",
709
- format: "cjs",
709
+ format: "esm",
710
710
  external: [],
711
711
  logLevel: "error",
712
712
  tsconfig: "tsconfig.json",
@@ -855,6 +855,155 @@ var shebangRenderer = {
855
855
  }
856
856
  };
857
857
 
858
+ // ../esbuild/src/tsc.ts
859
+ import { loadTsConfig } from "bundle-require";
860
+ import defu from "defu";
861
+ import { existsSync as existsSync4, mkdirSync, writeFileSync } from "node:fs";
862
+ import { dirname as dirname2, isAbsolute, join, normalize } from "node:path";
863
+ import ts from "typescript";
864
+ function ensureTempDeclarationDir(workspaceConfig) {
865
+ const root = workspaceConfig.directories.temp || join(workspaceConfig.workspaceRoot, "tmp");
866
+ const dirPath = join(root, ".tsc", "declaration");
867
+ if (existsSync4(dirPath)) {
868
+ return dirPath;
869
+ }
870
+ mkdirSync(dirPath, {
871
+ recursive: true
872
+ });
873
+ const gitIgnorePath = join(root, ".tsc", ".gitignore");
874
+ writeFileSync(gitIgnorePath, "**/*\n");
875
+ return dirPath;
876
+ }
877
+ __name(ensureTempDeclarationDir, "ensureTempDeclarationDir");
878
+ function slash(path6) {
879
+ const isExtendedLengthPath = path6.startsWith("\\\\?\\");
880
+ if (isExtendedLengthPath) {
881
+ return path6;
882
+ }
883
+ return path6.replace(/\\/g, "/");
884
+ }
885
+ __name(slash, "slash");
886
+ function toAbsolutePath(workspaceConfig, p, cwd) {
887
+ if (isAbsolute(p)) {
888
+ return p;
889
+ }
890
+ return slash(normalize(join(cwd || workspaceConfig.workspaceRoot, p)));
891
+ }
892
+ __name(toAbsolutePath, "toAbsolutePath");
893
+ var AliasPool = class AliasPool2 {
894
+ static {
895
+ __name(this, "AliasPool");
896
+ }
897
+ seen = /* @__PURE__ */ new Set();
898
+ assign(name) {
899
+ let suffix = 0;
900
+ let alias = name === "default" ? "default_alias" : name;
901
+ while (this.seen.has(alias)) {
902
+ alias = `${name}_alias_${++suffix}`;
903
+ if (suffix >= 1e3) {
904
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
905
+ }
906
+ }
907
+ this.seen.add(alias);
908
+ return alias;
909
+ }
910
+ };
911
+ function getExports(workspaceConfig, program, fileMapping) {
912
+ const checker = program.getTypeChecker();
913
+ const aliasPool = new AliasPool();
914
+ const assignAlias = aliasPool.assign.bind(aliasPool);
915
+ function extractExports(sourceFileName) {
916
+ const cwd = program.getCurrentDirectory();
917
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
918
+ const sourceFile = program.getSourceFile(sourceFileName);
919
+ if (!sourceFile) {
920
+ return [];
921
+ }
922
+ const destFileName = fileMapping.get(sourceFileName);
923
+ if (!destFileName) {
924
+ return [];
925
+ }
926
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
927
+ if (!moduleSymbol) {
928
+ return [];
929
+ }
930
+ const exports = [];
931
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
932
+ exportSymbols.forEach((symbol) => {
933
+ const name = symbol.getName();
934
+ exports.push({
935
+ kind: "named",
936
+ sourceFileName,
937
+ destFileName,
938
+ name,
939
+ alias: assignAlias(name),
940
+ isTypeOnly: false
941
+ });
942
+ });
943
+ return exports;
944
+ }
945
+ __name(extractExports, "extractExports");
946
+ return program.getRootFileNames().flatMap(extractExports);
947
+ }
948
+ __name(getExports, "getExports");
949
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
950
+ const fileMapping = /* @__PURE__ */ new Map();
951
+ const writeFile2 = /* @__PURE__ */ __name((fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
952
+ const sourceFile = sourceFiles?.[0];
953
+ const sourceFileName = sourceFile?.fileName;
954
+ if (sourceFileName && !fileName.endsWith(".map")) {
955
+ const cwd = program.getCurrentDirectory();
956
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
957
+ }
958
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
959
+ }, "writeFile");
960
+ const emitResult = program.emit(void 0, writeFile2, void 0, emitOnlyDtsFiles, customTransformers);
961
+ const diagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
962
+ const diagnosticMessages = [];
963
+ diagnostics.forEach((diagnostic) => {
964
+ if (diagnostic.file) {
965
+ const { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
966
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
967
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
968
+ } else {
969
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
970
+ diagnosticMessages.push(message);
971
+ }
972
+ });
973
+ const diagnosticMessage = diagnosticMessages.join("\n");
974
+ if (diagnosticMessage) {
975
+ writeError(`Failed to emit declaration files.
976
+
977
+ ${diagnosticMessage}`, workspaceConfig);
978
+ throw new Error("TypeScript compilation failed");
979
+ }
980
+ return fileMapping;
981
+ }
982
+ __name(emitDtsFiles, "emitDtsFiles");
983
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
984
+ const rawTsconfig = loadTsConfig(workspaceConfig.workspaceRoot, tsconfig);
985
+ if (!rawTsconfig) {
986
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
987
+ }
988
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
989
+ const parsedTsconfig = ts.parseJsonConfigFileContent(defu({
990
+ compilerOptions: {
991
+ // Enable declaration emit and disable javascript emit
992
+ noEmit: false,
993
+ declaration: true,
994
+ declarationMap: true,
995
+ declarationDir,
996
+ emitDeclarationOnly: true
997
+ }
998
+ }, tsconfigRaw?.compilerOptions ?? {}, rawTsconfig.data ?? {}), ts.sys, tsconfig ? dirname2(tsconfig) : "./");
999
+ const options = parsedTsconfig.options;
1000
+ const host = ts.createCompilerHost(options);
1001
+ const program = ts.createProgram(parsedTsconfig.fileNames, options, host);
1002
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
1003
+ return getExports(workspaceConfig, program, fileMapping);
1004
+ }
1005
+ __name(emitDts, "emitDts");
1006
+
858
1007
  // ../esbuild/src/utilities/get-entry-points.ts
859
1008
  import { glob as glob3 } from "glob";
860
1009
  var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
@@ -1016,7 +1165,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1016
1165
  exitOnError: true
1017
1166
  });
1018
1167
  const projectJsonPath = joinPaths(workspaceRoot.dir, projectRoot, "project.json");
1019
- if (!existsSync4(projectJsonPath)) {
1168
+ if (!existsSync5(projectJsonPath)) {
1020
1169
  throw new Error("Cannot find project.json configuration");
1021
1170
  }
1022
1171
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -1026,11 +1175,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1026
1175
  if (!projectConfigurations?.projects?.[projectName]) {
1027
1176
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
1028
1177
  }
1029
- const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
1178
+ const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS);
1030
1179
  options.name ??= `${projectName}-${options.format}`;
1031
1180
  options.target ??= DEFAULT_TARGET;
1032
1181
  const packageJsonPath = joinPaths(workspaceRoot.dir, options.projectRoot, "package.json");
1033
- if (!existsSync4(packageJsonPath)) {
1182
+ if (!existsSync5(packageJsonPath)) {
1034
1183
  throw new Error("Cannot find package.json configuration");
1035
1184
  }
1036
1185
  const env = getEnv("esbuild", options);
@@ -1112,11 +1261,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1112
1261
  return result;
1113
1262
  }, "resolveOptions");
1114
1263
  async function generatePackageJson(context2) {
1115
- if (context2.options.generatePackageJson !== false && existsSync4(joinPaths(context2.options.projectRoot, "package.json"))) {
1264
+ if (context2.options.generatePackageJson !== false && existsSync5(joinPaths(context2.options.projectRoot, "package.json"))) {
1116
1265
  writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
1117
1266
  const stopwatch = getStopwatch("Write package.json file");
1118
1267
  const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
1119
- if (!existsSync4(packageJsonPath)) {
1268
+ if (!existsSync5(packageJsonPath)) {
1120
1269
  throw new Error("Cannot find package.json configuration");
1121
1270
  }
1122
1271
  const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
@@ -1187,6 +1336,7 @@ async function executeEsBuild(context2) {
1187
1336
  options.inject === {}) {
1188
1337
  delete options.inject;
1189
1338
  }
1339
+ delete options.dts;
1190
1340
  delete options.env;
1191
1341
  delete options.name;
1192
1342
  delete options.assets;
@@ -1222,6 +1372,16 @@ ${formatLogMessage({
1222
1372
  return context2;
1223
1373
  }
1224
1374
  __name(executeEsBuild, "executeEsBuild");
1375
+ async function executeTypescript(context2) {
1376
+ if (context2.result?.errors.length === 0 && context2.options.dts) {
1377
+ writeDebug(` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
1378
+ const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
1379
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
1380
+ stopwatch();
1381
+ }
1382
+ return context2;
1383
+ }
1384
+ __name(executeTypescript, "executeTypescript");
1225
1385
  async function copyBuildAssets(context2) {
1226
1386
  if (context2.result?.errors.length === 0) {
1227
1387
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
@@ -1238,6 +1398,9 @@ async function reportResults(context2) {
1238
1398
  writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1239
1399
  }
1240
1400
  writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1401
+ } else if (context2.result?.errors && context2.result?.errors.length > 0) {
1402
+ writeError(` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
1403
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
1241
1404
  }
1242
1405
  }
1243
1406
  __name(reportResults, "reportResults");
@@ -1292,7 +1455,7 @@ async function build3(options) {
1292
1455
  throw new Error("No build options were provided");
1293
1456
  }
1294
1457
  void transduce.async(opts, dependencyCheck);
1295
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1458
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
1296
1459
  writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
1297
1460
  } catch (error) {
1298
1461
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KEPMD5HG.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-XWHWMA27.mjs";
7
+ } from "./chunk-ZV2PR5R3.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-Y4D6KHJP.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KEPMD5HG.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-XWHWMA27.mjs";
7
+ } from "./chunk-ZV2PR5R3.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-Y4D6KHJP.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-3JZIYQVE.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-4MQBPVNM.mjs";
7
+ } from "./chunk-6YRWQ3TB.mjs";
8
8
  import {
9
9
  joinPaths
10
10
  } from "./chunk-XB3SJ7YU.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  writeInfo,
12
12
  writeSuccess,
13
13
  writeTrace
14
- } from "./chunk-UYN4J6AU.mjs";
14
+ } from "./chunk-N5N2BZHB.mjs";
15
15
  import {
16
16
  findWorkspaceRoot
17
17
  } from "./chunk-44ZYZKMX.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
5
5
 
6
6
 
7
- var _chunkKN4FIRQIjs = require('./chunk-KN4FIRQI.js');
7
+ var _chunkJOA2AXGFjs = require('./chunk-JOA2AXGF.js');
8
8
 
9
9
 
10
10
  var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
@@ -73,7 +73,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
73
73
  return null;
74
74
  }
75
75
  _chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
76
- var generator_default = _chunkKN4FIRQIjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
76
+ var generator_default = _chunkJOA2AXGFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
77
77
  hooks: {
78
78
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
79
79
  options.description ??= "A library used by Storm Software to support browser applications";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkZHCAJSHGjs = require('./chunk-ZHCAJSHG.js');
7
+ var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -20,7 +20,7 @@ async function cargoDocExecutor(options, context) {
20
20
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
21
21
  }
22
22
  _chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
23
- var executor_default = _chunkZHCAJSHGjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
23
+ var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
24
24
  skipReadingConfig: false,
25
25
  hooks: {
26
26
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkG25NYDN4js = require('./chunk-G25NYDN4.js');
15
+ var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
16
16
 
17
17
 
18
18
  var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
23
  // src/base/base-executor.ts
24
24
  var _defu = require('defu');
25
25
  var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
26
- const stopwatch = _chunkG25NYDN4js.getStopwatch.call(void 0, name);
26
+ const stopwatch = _chunkSN7IJGEEjs.getStopwatch.call(void 0, name);
27
27
  let options = _options;
28
28
  let config = {};
29
29
  try {
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
35
35
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
36
36
  const projectName = context.projectName;
37
37
  config.workspaceRoot = workspaceRoot;
38
- _chunkG25NYDN4js.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
38
+ _chunkSN7IJGEEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
39
39
  if (!executorOptions.skipReadingConfig) {
40
- _chunkG25NYDN4js.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
40
+ _chunkSN7IJGEEjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
41
41
  - workspaceRoot: ${workspaceRoot}
42
42
  - projectRoot: ${projectRoot}
43
43
  - sourceRoot: ${sourceRoot}
44
44
  - projectName: ${projectName}
45
45
  `, config);
46
- config = await _chunkG25NYDN4js.getConfig.call(void 0, workspaceRoot);
46
+ config = await _chunkSN7IJGEEjs.getConfig.call(void 0, workspaceRoot);
47
47
  }
48
48
  if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
49
- _chunkG25NYDN4js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
49
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
50
50
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
51
- _chunkG25NYDN4js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
51
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
52
52
  }
53
- _chunkG25NYDN4js.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
54
- ${_chunkG25NYDN4js.formatLogMessage.call(void 0, options)}
53
+ _chunkSN7IJGEEjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
54
+ ${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, options)}
55
55
  `, config);
56
56
  const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
57
57
  workspaceRoot,
@@ -60,13 +60,13 @@ ${_chunkG25NYDN4js.formatLogMessage.call(void 0, options)}
60
60
  projectName,
61
61
  config
62
62
  }, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
63
- _chunkG25NYDN4js.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
64
- ${_chunkG25NYDN4js.formatLogMessage.call(void 0, tokenized)}
63
+ _chunkSN7IJGEEjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
64
+ ${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, tokenized)}
65
65
  `, config);
66
66
  if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
67
- _chunkG25NYDN4js.writeDebug.call(void 0, "Running the preProcess hook...", config);
67
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
68
68
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
69
- _chunkG25NYDN4js.writeDebug.call(void 0, "Completed the preProcess hook", config);
69
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
70
70
  }
71
71
  const ret = executorFn(tokenized, context, config);
72
72
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
@@ -76,26 +76,26 @@ ${_chunkG25NYDN4js.formatLogMessage.call(void 0, tokenized)}
76
76
  }
77
77
  const result = await Promise.resolve(ret);
78
78
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
79
- _chunkG25NYDN4js.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
- ${_chunkG25NYDN4js.formatLogMessage.call(void 0, result)}`, config);
79
+ _chunkSN7IJGEEjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
+ ${_chunkSN7IJGEEjs.formatLogMessage.call(void 0, result)}`, config);
81
81
  console.error(result);
82
82
  throw new Error(`The ${name} executor failed to run`, {
83
83
  cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
84
84
  });
85
85
  }
86
86
  if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
87
- _chunkG25NYDN4js.writeDebug.call(void 0, "Running the postProcess hook...", config);
87
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
88
88
  await Promise.resolve(executorOptions.hooks.postProcess(config));
89
- _chunkG25NYDN4js.writeDebug.call(void 0, "Completed the postProcess hook", config);
89
+ _chunkSN7IJGEEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
90
90
  }
91
- _chunkG25NYDN4js.writeSuccess.call(void 0, `Completed running the ${name} task executor!
91
+ _chunkSN7IJGEEjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
92
92
  `, config);
93
93
  return {
94
94
  success: true
95
95
  };
96
96
  } catch (error) {
97
- _chunkG25NYDN4js.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
98
- _chunkG25NYDN4js.writeError.call(void 0, `An exception was thrown in the executor's process
97
+ _chunkSN7IJGEEjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
98
+ _chunkSN7IJGEEjs.writeError.call(void 0, `An exception was thrown in the executor's process
99
99
  - Details: ${error.message}
100
100
  - Stacktrace: ${error.stack}`, config);
101
101
  return {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZHCAJSHGjs = require('./chunk-ZHCAJSHG.js');
3
+ var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
4
4
 
5
5
 
6
- var _chunkG25NYDN4js = require('./chunk-G25NYDN4.js');
6
+ var _chunkSN7IJGEEjs = require('./chunk-SN7IJGEE.js');
7
7
 
8
8
 
9
9
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
13
13
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
14
14
  async function typiaExecutorFn(options, _, config) {
15
15
  if (options.clean !== false) {
16
- _chunkG25NYDN4js.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
16
+ _chunkSN7IJGEEjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
17
17
  _fsextra.removeSync.call(void 0, options.outputPath);
18
18
  }
19
19
  await Promise.all(options.entry.map((entry) => {
20
- _chunkG25NYDN4js.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
20
+ _chunkSN7IJGEEjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
21
21
  return _TypiaProgrammerjs.TypiaProgrammer.build({
22
22
  input: entry,
23
23
  output: options.outputPath,
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
29
29
  };
30
30
  }
31
31
  _chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
32
- var executor_default = _chunkZHCAJSHGjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
32
+ var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
33
33
  skipReadingConfig: false,
34
34
  hooks: {
35
35
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KEPMD5HG.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-XWHWMA27.mjs";
7
+ } from "./chunk-ZV2PR5R3.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-Y4D6KHJP.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkZHCAJSHGjs = require('./chunk-ZHCAJSHG.js');
7
+ var _chunkBAJ3JRJCjs = require('./chunk-BAJ3JRJC.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
18
- var executor_default = _chunkZHCAJSHGjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
18
+ var executor_default = _chunkBAJ3JRJCjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@
4
4
  var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
5
5
 
6
6
 
7
- var _chunkKN4FIRQIjs = require('./chunk-KN4FIRQI.js');
7
+ var _chunkJOA2AXGFjs = require('./chunk-JOA2AXGF.js');
8
8
 
9
9
 
10
10
  var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
45
45
  return null;
46
46
  }
47
47
  _chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
48
- var generator_default = _chunkKN4FIRQIjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
48
+ var generator_default = _chunkJOA2AXGFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
49
49
  hooks: {
50
50
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
51
51
  options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-4MQBPVNM.mjs";
3
+ } from "./chunk-6YRWQ3TB.mjs";
4
4
  import {
5
5
  stormWorkspaceConfigSchema,
6
6
  writeInfo,
7
7
  writeSuccess,
8
8
  writeTrace
9
- } from "./chunk-UYN4J6AU.mjs";
9
+ } from "./chunk-N5N2BZHB.mjs";
10
10
  import {
11
11
  findWorkspaceRoot
12
12
  } from "./chunk-44ZYZKMX.mjs";