@storm-software/terraform-tools 0.54.60 → 0.54.62

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 (37) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-ZXR7DVE5.mjs → chunk-2RL7NUCA.mjs} +26 -15
  4. package/dist/{chunk-QCJEAT7Z.js → chunk-7KJYA3C3.js} +26 -15
  5. package/dist/{chunk-HKYACVYC.mjs → chunk-7TS7RAV3.mjs} +1 -1
  6. package/dist/{chunk-AK3HNXMO.mjs → chunk-A4M4Q7TM.mjs} +186 -23
  7. package/dist/{chunk-5OAGP7YB.js → chunk-AL4R2SSW.js} +2 -2
  8. package/dist/{chunk-TTE37GGL.js → chunk-GZYCK7ZJ.js} +2 -2
  9. package/dist/{chunk-SZ5R5Z3K.js → chunk-MOC2J7HF.js} +324 -161
  10. package/dist/{chunk-C5HXVP36.mjs → chunk-PYPQY2AE.mjs} +1 -1
  11. package/dist/{chunk-HF6B3RTE.js → chunk-SC7WG7PG.js} +2 -2
  12. package/dist/{chunk-AHNRXACX.mjs → chunk-TIP5HMJK.mjs} +1 -1
  13. package/dist/{chunk-B4CWEDF7.js → chunk-TOLJAFRB.js} +2 -2
  14. package/dist/{chunk-YJUNOUAM.mjs → chunk-U5I2Y23H.mjs} +1 -1
  15. package/dist/{chunk-UC3CKBDF.mjs → chunk-UF2LVXX3.mjs} +1 -1
  16. package/dist/{chunk-ORY6UCS4.js → chunk-UMMSLZTK.js} +3 -3
  17. package/dist/executors.js +6 -6
  18. package/dist/executors.mjs +6 -6
  19. package/dist/generators.js +3 -3
  20. package/dist/generators.mjs +2 -2
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/base/index.js +3 -3
  24. package/dist/src/base/index.mjs +2 -2
  25. package/dist/src/base/terraform-executor.js +3 -3
  26. package/dist/src/base/terraform-executor.mjs +2 -2
  27. package/dist/src/executors/apply/executor.js +4 -4
  28. package/dist/src/executors/apply/executor.mjs +3 -3
  29. package/dist/src/executors/destroy/executor.js +4 -4
  30. package/dist/src/executors/destroy/executor.mjs +3 -3
  31. package/dist/src/executors/output/executor.js +4 -4
  32. package/dist/src/executors/output/executor.mjs +3 -3
  33. package/dist/src/executors/plan/executor.js +4 -4
  34. package/dist/src/executors/plan/executor.mjs +3 -3
  35. package/dist/src/generators/init/init.js +3 -3
  36. package/dist/src/generators/init/init.mjs +2 -2
  37. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; } var _class;
2
2
 
3
3
 
4
4
 
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkQCJEAT7Zjs = require('./chunk-QCJEAT7Z.js');
21
+ var _chunk7KJYA3C3js = require('./chunk-7KJYA3C3.js');
22
22
 
23
23
 
24
24
 
@@ -159,7 +159,7 @@ async function cargoBuildExecutor(options, context2) {
159
159
  return await cargoCommand(...command);
160
160
  }
161
161
  _chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
162
- var executor_default = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
162
+ var executor_default = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
163
163
  skipReadingConfig: false,
164
164
  hooks: {
165
165
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -176,7 +176,7 @@ async function cargoCheckExecutor(options, context2) {
176
176
  return await cargoCommand(...command);
177
177
  }
178
178
  _chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
179
- var executor_default2 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
179
+ var executor_default2 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
180
180
  skipReadingConfig: false,
181
181
  hooks: {
182
182
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -192,7 +192,7 @@ async function cargoClippyExecutor(options, context2) {
192
192
  return await cargoCommand(...command);
193
193
  }
194
194
  _chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
195
- var executor_default3 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
195
+ var executor_default3 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
196
196
  skipReadingConfig: false,
197
197
  hooks: {
198
198
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -214,7 +214,7 @@ async function cargoDocExecutor(options, context2) {
214
214
  return await cargoCommand(...command);
215
215
  }
216
216
  _chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
217
- var executor_default4 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
217
+ var executor_default4 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
218
218
  skipReadingConfig: false,
219
219
  hooks: {
220
220
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -237,7 +237,7 @@ async function cargoFormatExecutor(options, context2) {
237
237
  return await cargoCommand(...command);
238
238
  }
239
239
  _chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
240
- var executor_default5 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
240
+ var executor_default5 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
241
241
  skipReadingConfig: false,
242
242
  hooks: {
243
243
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -318,8 +318,8 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
318
318
  output: "src/"
319
319
  });
320
320
  }
321
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
322
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkQCJEAT7Zjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
321
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
322
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk7KJYA3C3js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
323
323
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
324
324
  projectDir: projectRoot,
325
325
  rootDir: config.workspaceRoot,
@@ -328,12 +328,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
328
328
  });
329
329
  await assetHandler.processAllAssetsOnce();
330
330
  if (includeSrc === true) {
331
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkQCJEAT7Zjs.joinPaths.call(void 0, outputPath, "src")}`, config);
331
+ _chunk7KJYA3C3js.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk7KJYA3C3js.joinPaths.call(void 0, outputPath, "src")}`, config);
332
332
  const files = await _glob.glob.call(void 0, [
333
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
334
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
335
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
336
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
333
+ _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
334
+ _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
335
+ _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
336
+ _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
337
337
  ]);
338
338
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
339
339
 
@@ -356,7 +356,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
356
356
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _5 => _5.node, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.root]) !== projectRoot && _optionalChain([dep, 'access', _8 => _8.node, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.root]) !== workspaceRoot3)) {
357
357
  const projectNode = project.node;
358
358
  if (projectNode.data.root) {
359
- const projectPackageJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
359
+ const projectPackageJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
360
360
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
361
361
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
362
362
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -367,8 +367,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
367
367
  }
368
368
  }
369
369
  if (localPackages.length > 0) {
370
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
371
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
370
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
371
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
372
372
  const projectJson = JSON.parse(projectJsonFile);
373
373
  const projectName2 = projectJson.name;
374
374
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -377,7 +377,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
377
377
  }
378
378
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[projectName2], 'access', _15 => _15.implicitDependencies, 'optionalAccess', _16 => _16.reduce, 'call', _17 => _17((ret, dep) => {
379
379
  if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
380
- const depPackageJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
380
+ const depPackageJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
381
381
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
382
382
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
383
383
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -401,13 +401,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
401
401
  return ret;
402
402
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
403
403
  } else {
404
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
404
+ _chunk7KJYA3C3js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
405
405
  }
406
406
  return packageJson;
407
407
  }, "addPackageDependencies");
408
408
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
409
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkQCJEAT7Zjs.findWorkspaceRoot.call(void 0, );
410
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
409
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunk7KJYA3C3js.findWorkspaceRoot.call(void 0, );
410
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
411
411
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
412
412
  packageJson.type ??= "module";
413
413
  packageJson.sideEffects ??= false;
@@ -416,7 +416,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
416
416
  if (distSrc.startsWith("/")) {
417
417
  distSrc = distSrc.substring(1);
418
418
  }
419
- packageJson.source ??= `${_chunkQCJEAT7Zjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
419
+ packageJson.source ??= `${_chunk7KJYA3C3js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
420
420
  }
421
421
  packageJson.files ??= [
422
422
  "dist/**/*"
@@ -447,7 +447,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
447
447
  ];
448
448
  }
449
449
  packageJson.repository ??= workspacePackageJson.repository;
450
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkQCJEAT7Zjs.joinPaths.call(void 0, "packages", projectName);
450
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk7KJYA3C3js.joinPaths.call(void 0, "packages", projectName);
451
451
  return packageJson;
452
452
  }, "addWorkspacePackageJsonFields");
453
453
 
@@ -752,7 +752,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
752
752
  setup(build4) {
753
753
  build4.onEnd((result) => {
754
754
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
755
- _chunkQCJEAT7Zjs.writeError.call(void 0, `The following errors occurred during the build:
755
+ _chunk7KJYA3C3js.writeError.call(void 0, `The following errors occurred during the build:
756
756
  ${result.errors.map((error) => error.text).join("\n")}
757
757
 
758
758
  `, resolvedOptions.config);
@@ -787,7 +787,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
787
787
  var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
788
788
  name: "storm:resolve-paths",
789
789
  setup(build4) {
790
- const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
790
+ const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
791
791
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
792
792
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
793
793
  build4.onResolve({
@@ -811,7 +811,7 @@ var _apiextractor = require('@microsoft/api-extractor');
811
811
 
812
812
 
813
813
  function bundleTypeDefinitions(filename, outfile, externals, options) {
814
- const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
814
+ const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, options.projectRoot, "package.json"));
815
815
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
816
816
  p,
817
817
  getTypeDependencyPackageName(p)
@@ -847,13 +847,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
847
847
  },
848
848
  dtsRollup: {
849
849
  enabled: true,
850
- untrimmedFilePath: _chunkQCJEAT7Zjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
850
+ untrimmedFilePath: _chunk7KJYA3C3js.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
851
851
  },
852
852
  tsdocMetadata: {
853
853
  enabled: false
854
854
  }
855
855
  },
856
- packageJsonFullPath: _chunkQCJEAT7Zjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
856
+ packageJsonFullPath: _chunk7KJYA3C3js.joinPaths.call(void 0, options.projectRoot, "package.json"),
857
857
  configObjectFullPath: void 0
858
858
  });
859
859
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -861,7 +861,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
861
861
  localBuild: true
862
862
  });
863
863
  if (extractorResult.succeeded === false) {
864
- _chunkQCJEAT7Zjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
864
+ _chunk7KJYA3C3js.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
865
865
  throw new Error("API Extractor completed with errors");
866
866
  }
867
867
  }
@@ -869,23 +869,23 @@ _chunk3GQAWCBQjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitio
869
869
  var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
870
870
  name: "storm:tsc",
871
871
  setup(build4) {
872
- if (options.emitTypes === false) {
872
+ if (options.dts === false) {
873
873
  return;
874
874
  }
875
875
  build4.onStart(async () => {
876
876
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
877
- await _chunkQCJEAT7Zjs.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
877
+ await _chunk7KJYA3C3js.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
878
878
  }
879
879
  if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && _optionalChain([resolvedOptions, 'access', _44 => _44.entryPoints, 'access', _45 => _45[0], 'optionalAccess', _46 => _46.in]) && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
880
880
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
881
881
  const typeOutDir = resolvedOptions.outdir;
882
882
  const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
883
- const bundlePath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
883
+ const bundlePath = _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
884
884
  let dtsPath;
885
- if (_fs.existsSync.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
886
- dtsPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
887
- } else if (_fs.existsSync.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
888
- dtsPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
885
+ if (_fs.existsSync.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
886
+ dtsPath = _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
887
+ } else if (_fs.existsSync.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
888
+ dtsPath = _chunk7KJYA3C3js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
889
889
  }
890
890
  const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
891
891
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -921,7 +921,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
921
921
  var DEFAULT_BUILD_OPTIONS = {
922
922
  platform: "node",
923
923
  target: "node22",
924
- format: "cjs",
924
+ format: "esm",
925
925
  external: [],
926
926
  logLevel: "error",
927
927
  tsconfig: "tsconfig.json",
@@ -1049,8 +1049,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
1049
1049
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1050
1050
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1051
1051
  });
1052
- _chunkQCJEAT7Zjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1053
- _chunkQCJEAT7Zjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1052
+ _chunk7KJYA3C3js.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1053
+ _chunk7KJYA3C3js.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1054
1054
  if (filteredMissingDeps.length > 0) {
1055
1055
  throw new Error(`Missing dependencies detected - please install them:
1056
1056
  ${JSON.stringify(filteredMissingDeps)}
@@ -1070,10 +1070,159 @@ var shebangRenderer = {
1070
1070
  }
1071
1071
  };
1072
1072
 
1073
+ // ../esbuild/src/tsc.ts
1074
+ var _bundlerequire = require('bundle-require');
1075
+
1076
+
1077
+
1078
+ var _typescript = require('typescript'); var _typescript2 = _interopRequireDefault(_typescript);
1079
+ function ensureTempDeclarationDir(workspaceConfig) {
1080
+ const root = workspaceConfig.directories.temp || _path.join.call(void 0, workspaceConfig.workspaceRoot, "tmp");
1081
+ const dirPath = _path.join.call(void 0, root, ".tsc", "declaration");
1082
+ if (_fs.existsSync.call(void 0, dirPath)) {
1083
+ return dirPath;
1084
+ }
1085
+ _fs.mkdirSync.call(void 0, dirPath, {
1086
+ recursive: true
1087
+ });
1088
+ const gitIgnorePath = _path.join.call(void 0, root, ".tsc", ".gitignore");
1089
+ _fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
1090
+ return dirPath;
1091
+ }
1092
+ _chunk3GQAWCBQjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
1093
+ function slash(path7) {
1094
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
1095
+ if (isExtendedLengthPath) {
1096
+ return path7;
1097
+ }
1098
+ return path7.replace(/\\/g, "/");
1099
+ }
1100
+ _chunk3GQAWCBQjs.__name.call(void 0, slash, "slash");
1101
+ function toAbsolutePath(workspaceConfig, p, cwd) {
1102
+ if (_path.isAbsolute.call(void 0, p)) {
1103
+ return p;
1104
+ }
1105
+ return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
1106
+ }
1107
+ _chunk3GQAWCBQjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
1108
+ var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
1109
+ static {
1110
+ _chunk3GQAWCBQjs.__name.call(void 0, this, "AliasPool");
1111
+ }
1112
+ __init() {this.seen = /* @__PURE__ */ new Set()}
1113
+ assign(name) {
1114
+ let suffix = 0;
1115
+ let alias = name === "default" ? "default_alias" : name;
1116
+ while (this.seen.has(alias)) {
1117
+ alias = `${name}_alias_${++suffix}`;
1118
+ if (suffix >= 1e3) {
1119
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
1120
+ }
1121
+ }
1122
+ this.seen.add(alias);
1123
+ return alias;
1124
+ }
1125
+ }, _class);
1126
+ function getExports(workspaceConfig, program, fileMapping) {
1127
+ const checker = program.getTypeChecker();
1128
+ const aliasPool = new AliasPool();
1129
+ const assignAlias = aliasPool.assign.bind(aliasPool);
1130
+ function extractExports(sourceFileName) {
1131
+ const cwd = program.getCurrentDirectory();
1132
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
1133
+ const sourceFile = program.getSourceFile(sourceFileName);
1134
+ if (!sourceFile) {
1135
+ return [];
1136
+ }
1137
+ const destFileName = fileMapping.get(sourceFileName);
1138
+ if (!destFileName) {
1139
+ return [];
1140
+ }
1141
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
1142
+ if (!moduleSymbol) {
1143
+ return [];
1144
+ }
1145
+ const exports = [];
1146
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
1147
+ exportSymbols.forEach((symbol) => {
1148
+ const name = symbol.getName();
1149
+ exports.push({
1150
+ kind: "named",
1151
+ sourceFileName,
1152
+ destFileName,
1153
+ name,
1154
+ alias: assignAlias(name),
1155
+ isTypeOnly: false
1156
+ });
1157
+ });
1158
+ return exports;
1159
+ }
1160
+ _chunk3GQAWCBQjs.__name.call(void 0, extractExports, "extractExports");
1161
+ return program.getRootFileNames().flatMap(extractExports);
1162
+ }
1163
+ _chunk3GQAWCBQjs.__name.call(void 0, getExports, "getExports");
1164
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
1165
+ const fileMapping = /* @__PURE__ */ new Map();
1166
+ const writeFile3 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
1167
+ const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _49 => _49[0]]);
1168
+ const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _50 => _50.fileName]);
1169
+ if (sourceFileName && !fileName.endsWith(".map")) {
1170
+ const cwd = program.getCurrentDirectory();
1171
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
1172
+ }
1173
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
1174
+ }, "writeFile");
1175
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
1176
+ const diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
1177
+ const diagnosticMessages = [];
1178
+ diagnostics.forEach((diagnostic) => {
1179
+ if (diagnostic.file) {
1180
+ const { line, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
1181
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1182
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
1183
+ } else {
1184
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1185
+ diagnosticMessages.push(message);
1186
+ }
1187
+ });
1188
+ const diagnosticMessage = diagnosticMessages.join("\n");
1189
+ if (diagnosticMessage) {
1190
+ _chunk7KJYA3C3js.writeError.call(void 0, `Failed to emit declaration files.
1191
+
1192
+ ${diagnosticMessage}`, workspaceConfig);
1193
+ throw new Error("TypeScript compilation failed");
1194
+ }
1195
+ return fileMapping;
1196
+ }
1197
+ _chunk3GQAWCBQjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
1198
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
1199
+ const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
1200
+ if (!rawTsconfig) {
1201
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
1202
+ }
1203
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
1204
+ const parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(_defu2.default.call(void 0, {
1205
+ compilerOptions: {
1206
+ // Enable declaration emit and disable javascript emit
1207
+ noEmit: false,
1208
+ declaration: true,
1209
+ declarationMap: true,
1210
+ declarationDir,
1211
+ emitDeclarationOnly: true
1212
+ }
1213
+ }, _nullishCoalesce(_optionalChain([tsconfigRaw, 'optionalAccess', _51 => _51.compilerOptions]), () => ( {})), _nullishCoalesce(rawTsconfig.data, () => ( {}))), _typescript2.default.sys, tsconfig ? _path.dirname.call(void 0, tsconfig) : "./");
1214
+ const options = parsedTsconfig.options;
1215
+ const host = _typescript2.default.createCompilerHost(options);
1216
+ const program = _typescript2.default.createProgram(parsedTsconfig.fileNames, options, host);
1217
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
1218
+ return getExports(workspaceConfig, program, fileMapping);
1219
+ }
1220
+ _chunk3GQAWCBQjs.__name.call(void 0, emitDts, "emitDts");
1221
+
1073
1222
  // ../esbuild/src/utilities/get-entry-points.ts
1074
1223
 
1075
1224
  var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
1076
- const workspaceRoot3 = config.workspaceRoot || _chunkQCJEAT7Zjs.findWorkspaceRoot.call(void 0, );
1225
+ const workspaceRoot3 = config.workspaceRoot || _chunk7KJYA3C3js.findWorkspaceRoot.call(void 0, );
1077
1226
  const entryPoints = [];
1078
1227
  if (entry) {
1079
1228
  if (typeof entry === "string") {
@@ -1104,8 +1253,8 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1104
1253
  }
1105
1254
  if (emitOnAll) {
1106
1255
  entryPoints.push({
1107
- in: _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
1108
- out: _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1256
+ in: _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
1257
+ out: _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1109
1258
  });
1110
1259
  }
1111
1260
  const results = await Promise.all(entryPoints.map(async (entryPoint) => {
@@ -1118,9 +1267,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1118
1267
  ]
1119
1268
  });
1120
1269
  paths.push(...files.reduce((ret, filePath) => {
1121
- const result = _chunkQCJEAT7Zjs.correctPaths.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkQCJEAT7Zjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkQCJEAT7Zjs.correctPaths.call(void 0, projectRoot), ""));
1270
+ const result = _chunk7KJYA3C3js.correctPaths.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk7KJYA3C3js.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk7KJYA3C3js.correctPaths.call(void 0, projectRoot), ""));
1122
1271
  if (result) {
1123
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkQCJEAT7Zjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
1272
+ _chunk7KJYA3C3js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk7KJYA3C3js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
1124
1273
  if (!paths.some((p) => p.in === result)) {
1125
1274
  paths.push({
1126
1275
  in: result,
@@ -1131,7 +1280,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1131
1280
  return ret;
1132
1281
  }, []));
1133
1282
  } else {
1134
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, `Adding ESBuild entry point
1283
+ _chunk7KJYA3C3js.writeDebug.call(void 0, `Adding ESBuild entry point
1135
1284
  - Input: ${entryPoint.in}
1136
1285
  - Output: ${entryPoint.out}`, config);
1137
1286
  if (!paths.some((p) => p.out === entryPoint.out)) {
@@ -1198,7 +1347,7 @@ function pipeSync(fn, ...fns) {
1198
1347
  return (...args) => {
1199
1348
  let result = fn(...args);
1200
1349
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1201
- result = _optionalChain([fns, 'access', _49 => _49[i], 'optionalCall', _50 => _50(result)]);
1350
+ result = _optionalChain([fns, 'access', _52 => _52[i], 'optionalCall', _53 => _53(result)]);
1202
1351
  }
1203
1352
  return result;
1204
1353
  };
@@ -1208,7 +1357,7 @@ function pipeAsync(fn, ...fns) {
1208
1357
  return async (...args) => {
1209
1358
  let result = await fn(...args);
1210
1359
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1211
- result = await _optionalChain([fns, 'access', _51 => _51[i], 'optionalCall', _52 => _52(result)]);
1360
+ result = await _optionalChain([fns, 'access', _54 => _54[i], 'optionalCall', _55 => _55(result)]);
1212
1361
  }
1213
1362
  return result;
1214
1363
  };
@@ -1224,13 +1373,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1224
1373
  if (!workspaceRoot3) {
1225
1374
  throw new Error("Cannot find Nx workspace root");
1226
1375
  }
1227
- const config = await _chunkQCJEAT7Zjs.getConfig.call(void 0, workspaceRoot3.dir);
1228
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1229
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, "Build options resolution");
1376
+ const config = await _chunk7KJYA3C3js.getConfig.call(void 0, workspaceRoot3.dir);
1377
+ _chunk7KJYA3C3js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1378
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, "Build options resolution");
1230
1379
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1231
1380
  exitOnError: true
1232
1381
  });
1233
- const projectJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1382
+ const projectJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1234
1383
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1235
1384
  throw new Error("Cannot find project.json configuration");
1236
1385
  }
@@ -1238,13 +1387,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1238
1387
  const projectJson = JSON.parse(projectJsonFile);
1239
1388
  const projectName = projectJson.name;
1240
1389
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1241
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _53 => _53.projects, 'optionalAccess', _54 => _54[projectName]])) {
1390
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _56 => _56.projects, 'optionalAccess', _57 => _57[projectName]])) {
1242
1391
  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.");
1243
1392
  }
1244
1393
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1245
1394
  options.name ??= `${projectName}-${options.format}`;
1246
1395
  options.target ??= DEFAULT_TARGET;
1247
- const packageJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1396
+ const packageJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1248
1397
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1249
1398
  throw new Error("Cannot find package.json configuration");
1250
1399
  }
@@ -1261,19 +1410,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1261
1410
  "main"
1262
1411
  ],
1263
1412
  ...userOptions,
1264
- tsconfig: _chunkQCJEAT7Zjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1413
+ tsconfig: _chunk7KJYA3C3js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1265
1414
  format: options.format || "cjs",
1266
1415
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
1267
- outdir: userOptions.outputPath || _chunkQCJEAT7Zjs.joinPaths.call(void 0, "dist", projectRoot),
1416
+ outdir: userOptions.outputPath || _chunk7KJYA3C3js.joinPaths.call(void 0, "dist", projectRoot),
1268
1417
  distDir: userOptions.distDir || "dist",
1269
1418
  plugins: [],
1270
1419
  name: userOptions.name || projectName,
1271
1420
  projectConfigurations,
1272
1421
  projectName,
1273
1422
  projectGraph,
1274
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkQCJEAT7Zjs.joinPaths.call(void 0, projectRoot, "src"),
1423
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk7KJYA3C3js.joinPaths.call(void 0, projectRoot, "src"),
1275
1424
  minify: userOptions.minify || !userOptions.debug,
1276
- verbose: userOptions.verbose || _chunkQCJEAT7Zjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1425
+ verbose: userOptions.verbose || _chunk7KJYA3C3js.isVerbose.call(void 0, ) || userOptions.debug === true,
1277
1426
  includeSrc: userOptions.includeSrc === true,
1278
1427
  metafile: userOptions.metafile !== false,
1279
1428
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1308,8 +1457,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1308
1457
  }, {})
1309
1458
  },
1310
1459
  inject: [
1311
- options.format === "cjs" && options.injectShims ? _chunkQCJEAT7Zjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
1312
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkQCJEAT7Zjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
1460
+ options.format === "cjs" && options.injectShims ? _chunk7KJYA3C3js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
1461
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk7KJYA3C3js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
1313
1462
  ].filter(Boolean)
1314
1463
  };
1315
1464
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
@@ -1327,14 +1476,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1327
1476
  return result;
1328
1477
  }, "resolveOptions");
1329
1478
  async function generatePackageJson(context2) {
1330
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1331
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1332
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, "Write package.json file");
1333
- const packageJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1479
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1480
+ _chunk7KJYA3C3js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1481
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, "Write package.json file");
1482
+ const packageJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1334
1483
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1335
1484
  throw new Error("Cannot find package.json configuration");
1336
1485
  }
1337
- const packageJsonFile = await _promises2.default.readFile(_chunkQCJEAT7Zjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1486
+ const packageJsonFile = await _promises2.default.readFile(_chunk7KJYA3C3js.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1338
1487
  let packageJson = JSON.parse(packageJsonFile);
1339
1488
  if (!packageJson) {
1340
1489
  throw new Error("Cannot find package.json configuration file");
@@ -1362,7 +1511,7 @@ async function generatePackageJson(context2) {
1362
1511
  }
1363
1512
  return ret;
1364
1513
  }, packageJson.exports);
1365
- await _devkit.writeJsonFile.call(void 0, _chunkQCJEAT7Zjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1514
+ await _devkit.writeJsonFile.call(void 0, _chunk7KJYA3C3js.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1366
1515
  stopwatch();
1367
1516
  }
1368
1517
  return context2;
@@ -1388,8 +1537,8 @@ async function generateContext(getOptions) {
1388
1537
  }
1389
1538
  _chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
1390
1539
  async function executeEsBuild(context2) {
1391
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1392
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1540
+ _chunk7KJYA3C3js.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1541
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, `${context2.options.name} build`);
1393
1542
  if (process.env.STORM_WATCH) {
1394
1543
  const ctx = await esbuild2.context(context2.options);
1395
1544
  watch(ctx, context2.options);
@@ -1397,11 +1546,12 @@ async function executeEsBuild(context2) {
1397
1546
  const options = {
1398
1547
  ...context2.options
1399
1548
  };
1400
- options.outdir = _chunkQCJEAT7Zjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
1549
+ options.outdir = _chunk7KJYA3C3js.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
1401
1550
  if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
1402
1551
  options.inject === {}) {
1403
1552
  delete options.inject;
1404
1553
  }
1554
+ delete options.dts;
1405
1555
  delete options.env;
1406
1556
  delete options.name;
1407
1557
  delete options.assets;
@@ -1422,8 +1572,8 @@ async function executeEsBuild(context2) {
1422
1572
  delete options.config;
1423
1573
  delete options.injectShims;
1424
1574
  delete options.external;
1425
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1426
- ${_chunkQCJEAT7Zjs.formatLogMessage.call(void 0, {
1575
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1576
+ ${_chunk7KJYA3C3js.formatLogMessage.call(void 0, {
1427
1577
  ...options,
1428
1578
  define: "<Hidden>"
1429
1579
  })}`, context2.options.config);
@@ -1437,10 +1587,20 @@ ${_chunkQCJEAT7Zjs.formatLogMessage.call(void 0, {
1437
1587
  return context2;
1438
1588
  }
1439
1589
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1590
+ async function executeTypescript(context2) {
1591
+ if (_optionalChain([context2, 'access', _58 => _58.result, 'optionalAccess', _59 => _59.errors, 'access', _60 => _60.length]) === 0 && context2.options.dts) {
1592
+ _chunk7KJYA3C3js.writeDebug.call(void 0, ` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
1593
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1594
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
1595
+ stopwatch();
1596
+ }
1597
+ return context2;
1598
+ }
1599
+ _chunk3GQAWCBQjs.__name.call(void 0, executeTypescript, "executeTypescript");
1440
1600
  async function copyBuildAssets(context2) {
1441
- if (_optionalChain([context2, 'access', _55 => _55.result, 'optionalAccess', _56 => _56.errors, 'access', _57 => _57.length]) === 0) {
1442
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1443
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1601
+ if (_optionalChain([context2, 'access', _61 => _61.result, 'optionalAccess', _62 => _62.errors, 'access', _63 => _63.length]) === 0) {
1602
+ _chunk7KJYA3C3js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1603
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1444
1604
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1445
1605
  stopwatch();
1446
1606
  }
@@ -1448,11 +1608,14 @@ async function copyBuildAssets(context2) {
1448
1608
  }
1449
1609
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1450
1610
  async function reportResults(context2) {
1451
- if (_optionalChain([context2, 'access', _58 => _58.result, 'optionalAccess', _59 => _59.errors, 'access', _60 => _60.length]) === 0) {
1611
+ if (_optionalChain([context2, 'access', _64 => _64.result, 'optionalAccess', _65 => _65.errors, 'access', _66 => _66.length]) === 0) {
1452
1612
  if (context2.result.warnings.length > 0) {
1453
- _chunkQCJEAT7Zjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1613
+ _chunk7KJYA3C3js.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1454
1614
  }
1455
- _chunkQCJEAT7Zjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1615
+ _chunk7KJYA3C3js.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1616
+ } else if (_optionalChain([context2, 'access', _67 => _67.result, 'optionalAccess', _68 => _68.errors]) && _optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) > 0) {
1617
+ _chunk7KJYA3C3js.writeError.call(void 0, ` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
1618
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
1456
1619
  }
1457
1620
  }
1458
1621
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
@@ -1488,8 +1651,8 @@ async function dependencyCheck(options) {
1488
1651
  _chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1489
1652
  async function cleanOutputPath(context2) {
1490
1653
  if (context2.options.clean !== false && context2.options.outdir) {
1491
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1492
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1654
+ _chunk7KJYA3C3js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1655
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1493
1656
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1494
1657
  stopwatch();
1495
1658
  }
@@ -1497,8 +1660,8 @@ async function cleanOutputPath(context2) {
1497
1660
  }
1498
1661
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1499
1662
  async function build3(options) {
1500
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1501
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, "ESBuild pipeline");
1663
+ _chunk7KJYA3C3js.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1664
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, "ESBuild pipeline");
1502
1665
  try {
1503
1666
  const opts = Array.isArray(options) ? options : [
1504
1667
  options
@@ -1507,10 +1670,10 @@ async function build3(options) {
1507
1670
  throw new Error("No build options were provided");
1508
1671
  }
1509
1672
  void transduce.async(opts, dependencyCheck);
1510
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1511
- _chunkQCJEAT7Zjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1673
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
1674
+ _chunk7KJYA3C3js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1512
1675
  } catch (error) {
1513
- _chunkQCJEAT7Zjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1676
+ _chunk7KJYA3C3js.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1514
1677
  throw error;
1515
1678
  } finally {
1516
1679
  stopwatch();
@@ -1538,9 +1701,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1538
1701
  return context2.rebuild();
1539
1702
  });
1540
1703
  if (rebuildResult instanceof Error) {
1541
- _chunkQCJEAT7Zjs.writeError.call(void 0, rebuildResult.message);
1704
+ _chunk7KJYA3C3js.writeError.call(void 0, rebuildResult.message);
1542
1705
  }
1543
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1706
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1544
1707
  }, 10);
1545
1708
  changeWatcher.on("change", fastRebuild);
1546
1709
  return void 0;
@@ -1548,15 +1711,15 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1548
1711
 
1549
1712
  // ../workspace-tools/src/executors/esbuild/executor.ts
1550
1713
  async function esbuildExecutorFn(options, context2, config) {
1551
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1552
- if (!_optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'optionalAccess', _62 => _62.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _63 => _63.projectsConfigurations, 'access', _64 => _64.projects, 'access', _65 => _65[context2.projectName], 'optionalAccess', _66 => _66.root])) {
1714
+ _chunk7KJYA3C3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1715
+ if (!_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.root])) {
1553
1716
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1554
1717
  }
1555
1718
  await build3({
1556
1719
  ...options,
1557
- projectRoot: _optionalChain([context2, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'optionalAccess', _69 => _69[context2.projectName], 'access', _70 => _70.root]),
1720
+ projectRoot: _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'optionalAccess', _80 => _80[context2.projectName], 'access', _81 => _81.root]),
1558
1721
  projectName: context2.projectName,
1559
- sourceRoot: _optionalChain([context2, 'access', _71 => _71.projectsConfigurations, 'access', _72 => _72.projects, 'optionalAccess', _73 => _73[context2.projectName], 'optionalAccess', _74 => _74.sourceRoot]),
1722
+ sourceRoot: _optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'optionalAccess', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.sourceRoot]),
1560
1723
  format: options.format,
1561
1724
  platform: options.format
1562
1725
  });
@@ -1565,7 +1728,7 @@ async function esbuildExecutorFn(options, context2, config) {
1565
1728
  };
1566
1729
  }
1567
1730
  _chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
1568
- var executor_default6 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1731
+ var executor_default6 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1569
1732
  skipReadingConfig: false,
1570
1733
  hooks: {
1571
1734
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -1599,25 +1762,25 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1599
1762
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1600
1763
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1601
1764
  async function sizeLimitExecutorFn(options, context2, config) {
1602
- if (!_optionalChain([context2, 'optionalAccess', _75 => _75.projectName]) || !_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1765
+ if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1603
1766
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1604
1767
  }
1605
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1768
+ _chunk7KJYA3C3js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1606
1769
  _sizelimit2.default.call(void 0, [
1607
1770
  _file2.default,
1608
1771
  _esbuild3.default,
1609
1772
  _esbuildwhy2.default
1610
1773
  ], {
1611
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'access', _80 => _80[context2.projectName], 'optionalAccess', _81 => _81.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.root]), () => ( "./")), "src")))
1774
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'access', _95 => _95[context2.projectName], 'optionalAccess', _96 => _96.root]), () => ( "./")), "src")))
1612
1775
  }).then((result) => {
1613
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1776
+ _chunk7KJYA3C3js.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1614
1777
  });
1615
1778
  return {
1616
1779
  success: true
1617
1780
  };
1618
1781
  }
1619
1782
  _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
1620
- var executor_default7 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
1783
+ var executor_default7 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
1621
1784
  skipReadingConfig: false,
1622
1785
  hooks: {
1623
1786
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -1631,11 +1794,11 @@ var _fsextra = require('fs-extra');
1631
1794
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
1632
1795
  async function typiaExecutorFn(options, _, config) {
1633
1796
  if (options.clean !== false) {
1634
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1797
+ _chunk7KJYA3C3js.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1635
1798
  _fsextra.removeSync.call(void 0, options.outputPath);
1636
1799
  }
1637
1800
  await Promise.all(options.entry.map((entry) => {
1638
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1801
+ _chunk7KJYA3C3js.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1639
1802
  return _TypiaProgrammerjs.TypiaProgrammer.build({
1640
1803
  input: entry,
1641
1804
  output: options.outputPath,
@@ -1647,7 +1810,7 @@ async function typiaExecutorFn(options, _, config) {
1647
1810
  };
1648
1811
  }
1649
1812
  _chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
1650
- var executor_default8 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
1813
+ var executor_default8 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
1651
1814
  skipReadingConfig: false,
1652
1815
  hooks: {
1653
1816
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -1666,8 +1829,8 @@ var executor_default8 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "Typia run
1666
1829
 
1667
1830
  var _jiti = require('jiti');
1668
1831
  async function unbuildExecutorFn(options, context2, config) {
1669
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1670
- if (!_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1832
+ _chunk7KJYA3C3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1833
+ if (!_optionalChain([context2, 'access', _97 => _97.projectsConfigurations, 'optionalAccess', _98 => _98.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1671
1834
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1672
1835
  }
1673
1836
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1677,7 +1840,7 @@ async function unbuildExecutorFn(options, context2, config) {
1677
1840
  throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
1678
1841
  }
1679
1842
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1680
- fsCache: config.skipCache ? false : _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
1843
+ fsCache: config.skipCache ? false : _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
1681
1844
  interopDefault: true
1682
1845
  });
1683
1846
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -1690,7 +1853,7 @@ async function unbuildExecutorFn(options, context2, config) {
1690
1853
  }, {
1691
1854
  stubOptions: {
1692
1855
  jiti: {
1693
- fsCache: config.skipCache ? false : _chunkQCJEAT7Zjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
1856
+ fsCache: config.skipCache ? false : _chunk7KJYA3C3js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
1694
1857
  }
1695
1858
  },
1696
1859
  rollup: {
@@ -1714,7 +1877,7 @@ async function unbuildExecutorFn(options, context2, config) {
1714
1877
  };
1715
1878
  }
1716
1879
  _chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
1717
- var executor_default9 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
1880
+ var executor_default9 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
1718
1881
  skipReadingConfig: false,
1719
1882
  hooks: {
1720
1883
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -1738,58 +1901,58 @@ var executor_default9 = _chunkQCJEAT7Zjs.withRunExecutor.call(void 0, "TypeScrip
1738
1901
  var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
1739
1902
  skipReadingConfig: false
1740
1903
  }) => async (tree, _options) => {
1741
- const stopwatch = _chunkQCJEAT7Zjs.getStopwatch.call(void 0, name);
1904
+ const stopwatch = _chunk7KJYA3C3js.getStopwatch.call(void 0, name);
1742
1905
  let options = _options;
1743
1906
  let config;
1744
1907
  try {
1745
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1908
+ _chunk7KJYA3C3js.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1746
1909
 
1747
1910
  `, config);
1748
- const workspaceRoot3 = _chunkQCJEAT7Zjs.findWorkspaceRoot.call(void 0, );
1911
+ const workspaceRoot3 = _chunk7KJYA3C3js.findWorkspaceRoot.call(void 0, );
1749
1912
  if (!generatorOptions.skipReadingConfig) {
1750
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
1913
+ _chunk7KJYA3C3js.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
1751
1914
  - workspaceRoot: ${workspaceRoot3}`, config);
1752
- config = await _chunkQCJEAT7Zjs.getConfig.call(void 0, workspaceRoot3);
1915
+ config = await _chunk7KJYA3C3js.getConfig.call(void 0, workspaceRoot3);
1753
1916
  }
1754
- if (_optionalChain([generatorOptions, 'optionalAccess', _88 => _88.hooks, 'optionalAccess', _89 => _89.applyDefaultOptions])) {
1755
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1917
+ if (_optionalChain([generatorOptions, 'optionalAccess', _99 => _99.hooks, 'optionalAccess', _100 => _100.applyDefaultOptions])) {
1918
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1756
1919
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1757
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1920
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1758
1921
  }
1759
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
1922
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
1760
1923
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
1761
- const tokenized = await _chunkQCJEAT7Zjs.applyWorkspaceTokens.call(void 0, options, {
1924
+ const tokenized = await _chunk7KJYA3C3js.applyWorkspaceTokens.call(void 0, options, {
1762
1925
  workspaceRoot: tree.root,
1763
1926
  config
1764
- }, _chunkQCJEAT7Zjs.applyWorkspaceBaseTokens);
1765
- if (_optionalChain([generatorOptions, 'optionalAccess', _90 => _90.hooks, 'optionalAccess', _91 => _91.preProcess])) {
1766
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1927
+ }, _chunk7KJYA3C3js.applyWorkspaceBaseTokens);
1928
+ if (_optionalChain([generatorOptions, 'optionalAccess', _101 => _101.hooks, 'optionalAccess', _102 => _102.preProcess])) {
1929
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Running the preProcess hook...", config);
1767
1930
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1768
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1931
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Completed the preProcess hook", config);
1769
1932
  }
1770
1933
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1771
1934
  if (result) {
1772
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.message]) && typeof _optionalChain([result, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.message]) === "string" && _optionalChain([result, 'optionalAccess', _96 => _96.error, 'optionalAccess', _97 => _97.name]) && typeof _optionalChain([result, 'optionalAccess', _98 => _98.error, 'optionalAccess', _99 => _99.name]) === "string") {
1935
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _103 => _103.error, 'optionalAccess', _104 => _104.message]) && typeof _optionalChain([result, 'optionalAccess', _105 => _105.error, 'optionalAccess', _106 => _106.message]) === "string" && _optionalChain([result, 'optionalAccess', _107 => _107.error, 'optionalAccess', _108 => _108.name]) && typeof _optionalChain([result, 'optionalAccess', _109 => _109.error, 'optionalAccess', _110 => _110.name]) === "string") {
1773
1936
  throw new Error(`The ${name} generator failed to run`, {
1774
- cause: _optionalChain([result, 'optionalAccess', _100 => _100.error])
1937
+ cause: _optionalChain([result, 'optionalAccess', _111 => _111.error])
1775
1938
  });
1776
1939
  } else if (result.success && result.data) {
1777
1940
  return result;
1778
1941
  }
1779
1942
  }
1780
- if (_optionalChain([generatorOptions, 'optionalAccess', _101 => _101.hooks, 'optionalAccess', _102 => _102.postProcess])) {
1781
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1943
+ if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.postProcess])) {
1944
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Running the postProcess hook...", config);
1782
1945
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1783
- _chunkQCJEAT7Zjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1946
+ _chunk7KJYA3C3js.writeDebug.call(void 0, "Completed the postProcess hook", config);
1784
1947
  }
1785
1948
  return () => {
1786
- _chunkQCJEAT7Zjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1949
+ _chunk7KJYA3C3js.writeSuccess.call(void 0, `Completed running the ${name} generator!
1787
1950
  `, config);
1788
1951
  };
1789
1952
  } catch (error) {
1790
1953
  return () => {
1791
- _chunkQCJEAT7Zjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
1792
- _chunkQCJEAT7Zjs.writeError.call(void 0, `An exception was thrown in the generator's process
1954
+ _chunk7KJYA3C3js.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
1955
+ _chunk7KJYA3C3js.writeError.call(void 0, `An exception was thrown in the generator's process
1793
1956
  - Details: ${error.message}
1794
1957
  - Stacktrace: ${error.stack}`, config);
1795
1958
  };
@@ -1891,7 +2054,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1891
2054
  const projectConfig = {
1892
2055
  root: normalized.directory,
1893
2056
  projectType: "library",
1894
- sourceRoot: _chunkQCJEAT7Zjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2057
+ sourceRoot: _chunk7KJYA3C3js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1895
2058
  targets: {
1896
2059
  build: {
1897
2060
  executor: options.buildExecutor,
@@ -1900,11 +2063,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1900
2063
  ],
1901
2064
  options: {
1902
2065
  entry: [
1903
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2066
+ _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
1904
2067
  ],
1905
2068
  outputPath: getOutputPath(normalized),
1906
- tsconfig: _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1907
- project: _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2069
+ tsconfig: _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2070
+ project: _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1908
2071
  defaultConfiguration: "production",
1909
2072
  platform: "neutral",
1910
2073
  assets: [
@@ -1943,22 +2106,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1943
2106
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1944
2107
  let repository = {
1945
2108
  type: "github",
1946
- url: _optionalChain([config, 'optionalAccess', _103 => _103.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _104 => _104.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _105 => _105.namespace]) || _optionalChain([config, 'optionalAccess', _106 => _106.name]) || "repository"}.git`
2109
+ url: _optionalChain([config, 'optionalAccess', _114 => _114.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _115 => _115.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _116 => _116.namespace]) || _optionalChain([config, 'optionalAccess', _117 => _117.name]) || "repository"}.git`
1947
2110
  };
1948
2111
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1949
2112
  if (tree.exists("package.json")) {
1950
2113
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1951
- if (_optionalChain([packageJson, 'optionalAccess', _107 => _107.repository])) {
2114
+ if (_optionalChain([packageJson, 'optionalAccess', _118 => _118.repository])) {
1952
2115
  repository = packageJson.repository;
1953
2116
  }
1954
- if (_optionalChain([packageJson, 'optionalAccess', _108 => _108.description])) {
2117
+ if (_optionalChain([packageJson, 'optionalAccess', _119 => _119.description])) {
1955
2118
  description = packageJson.description;
1956
2119
  }
1957
2120
  }
1958
2121
  if (!normalized.importPath) {
1959
2122
  normalized.importPath = normalized.name;
1960
2123
  }
1961
- const packageJsonPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2124
+ const packageJsonPath = _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1962
2125
  if (tree.exists(packageJsonPath)) {
1963
2126
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
1964
2127
  if (!normalized.importPath) {
@@ -2006,30 +2169,30 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2006
2169
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2007
2170
  ...json,
2008
2171
  pnpm: {
2009
- ..._optionalChain([json, 'optionalAccess', _109 => _109.pnpm]),
2172
+ ..._optionalChain([json, 'optionalAccess', _120 => _120.pnpm]),
2010
2173
  overrides: {
2011
- ..._optionalChain([json, 'optionalAccess', _110 => _110.pnpm, 'optionalAccess', _111 => _111.overrides]),
2174
+ ..._optionalChain([json, 'optionalAccess', _121 => _121.pnpm, 'optionalAccess', _122 => _122.overrides]),
2012
2175
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2013
2176
  }
2014
2177
  }
2015
2178
  }));
2016
2179
  }
2017
2180
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2018
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2181
+ _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2019
2182
  ]);
2020
- _js.addTsConfigPath.call(void 0, tree, _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2021
- _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2183
+ _js.addTsConfigPath.call(void 0, tree, _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.importPath, "/*"), [
2184
+ _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2022
2185
  ]);
2023
2186
  if (tree.exists("package.json")) {
2024
2187
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2025
- if (_optionalChain([packageJson, 'optionalAccess', _112 => _112.repository])) {
2188
+ if (_optionalChain([packageJson, 'optionalAccess', _123 => _123.repository])) {
2026
2189
  repository = packageJson.repository;
2027
2190
  }
2028
- if (_optionalChain([packageJson, 'optionalAccess', _113 => _113.description])) {
2191
+ if (_optionalChain([packageJson, 'optionalAccess', _124 => _124.description])) {
2029
2192
  description = packageJson.description;
2030
2193
  }
2031
2194
  }
2032
- const tsconfigPath = _chunkQCJEAT7Zjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2195
+ const tsconfigPath = _chunk7KJYA3C3js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2033
2196
  if (tree.exists(tsconfigPath)) {
2034
2197
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2035
2198
  json.composite ??= true;
@@ -2067,42 +2230,42 @@ function getOutputPath(options) {
2067
2230
  } else {
2068
2231
  parts.push(options.projectRoot);
2069
2232
  }
2070
- return _chunkQCJEAT7Zjs.joinPaths.call(void 0, ...parts);
2233
+ return _chunk7KJYA3C3js.joinPaths.call(void 0, ...parts);
2071
2234
  }
2072
2235
  _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
2073
2236
  function createProjectTsConfigJson(tree, options) {
2074
2237
  const tsconfig = {
2075
2238
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2076
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _114 => _114.tsconfigOptions]), () => ( {})),
2239
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
2077
2240
  compilerOptions: {
2078
2241
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2079
- outDir: _chunkQCJEAT7Zjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2242
+ outDir: _chunk7KJYA3C3js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2080
2243
  noEmit: true,
2081
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _115 => _115.tsconfigOptions, 'optionalAccess', _116 => _116.compilerOptions]), () => ( {}))
2244
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
2082
2245
  },
2083
2246
  files: [
2084
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions, 'optionalAccess', _118 => _118.files]), () => ( []))
2247
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _128 => _128.tsconfigOptions, 'optionalAccess', _129 => _129.files]), () => ( []))
2085
2248
  ],
2086
2249
  include: [
2087
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _119 => _119.tsconfigOptions, 'optionalAccess', _120 => _120.include]), () => ( [])),
2250
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _130 => _130.tsconfigOptions, 'optionalAccess', _131 => _131.include]), () => ( [])),
2088
2251
  "src/**/*.ts",
2089
2252
  "src/**/*.js",
2090
2253
  "bin/**/*"
2091
2254
  ],
2092
2255
  exclude: [
2093
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _121 => _121.tsconfigOptions, 'optionalAccess', _122 => _122.exclude]), () => ( [])),
2256
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _132 => _132.tsconfigOptions, 'optionalAccess', _133 => _133.exclude]), () => ( [])),
2094
2257
  "jest.config.ts",
2095
2258
  "src/**/*.spec.ts",
2096
2259
  "src/**/*.test.ts"
2097
2260
  ]
2098
2261
  };
2099
- _devkit.writeJson.call(void 0, tree, _chunkQCJEAT7Zjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2262
+ _devkit.writeJson.call(void 0, tree, _chunk7KJYA3C3js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2100
2263
  }
2101
2264
  _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2102
2265
  async function normalizeOptions(tree, options, config) {
2103
2266
  let importPath = options.importPath;
2104
- if (!importPath && _optionalChain([config, 'optionalAccess', _123 => _123.namespace])) {
2105
- importPath = `@${_optionalChain([config, 'optionalAccess', _124 => _124.namespace])}/${options.name}`;
2267
+ if (!importPath && _optionalChain([config, 'optionalAccess', _134 => _134.namespace])) {
2268
+ importPath = `@${_optionalChain([config, 'optionalAccess', _135 => _135.namespace])}/${options.name}`;
2106
2269
  }
2107
2270
  if (options.publishable) {
2108
2271
  if (!importPath) {
@@ -2156,7 +2319,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2156
2319
 
2157
2320
  // ../workspace-tools/src/generators/browser-library/generator.ts
2158
2321
  async function browserLibraryGeneratorFn(tree, schema, config) {
2159
- const filesDir = _chunkQCJEAT7Zjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2322
+ const filesDir = _chunk7KJYA3C3js.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2160
2323
  const tsLibraryGeneratorOptions = {
2161
2324
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2162
2325
  platform: "browser",
@@ -2228,19 +2391,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2228
2391
 
2229
2392
  var _zodtojsonschema = require('zod-to-json-schema');
2230
2393
  async function configSchemaGeneratorFn(tree, options, config) {
2231
- _chunkQCJEAT7Zjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2232
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2233
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkQCJEAT7Zjs.stormWorkspaceConfigSchema, {
2394
+ _chunk7KJYA3C3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2395
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2396
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunk7KJYA3C3js.stormWorkspaceConfigSchema, {
2234
2397
  name: "StormWorkspaceConfiguration"
2235
2398
  });
2236
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, jsonSchema, config);
2237
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _125 => _125.workspaceRoot]), () => ( _chunkQCJEAT7Zjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _126 => _126.outputFile, 'optionalAccess', _127 => _127.startsWith, 'call', _128 => _128("./")]) ? "" : "./");
2238
- _chunkQCJEAT7Zjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2399
+ _chunk7KJYA3C3js.writeTrace.call(void 0, jsonSchema, config);
2400
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunk7KJYA3C3js.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _137 => _137.outputFile, 'optionalAccess', _138 => _138.startsWith, 'call', _139 => _139("./")]) ? "" : "./");
2401
+ _chunk7KJYA3C3js.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2239
2402
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2240
2403
  spaces: 2
2241
2404
  });
2242
2405
  await _devkit.formatFiles.call(void 0, tree);
2243
- _chunkQCJEAT7Zjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2406
+ _chunk7KJYA3C3js.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2244
2407
  return {
2245
2408
  success: true
2246
2409
  };
@@ -2279,7 +2442,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, initGenerator, "initGenerator");
2279
2442
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2280
2443
 
2281
2444
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2282
- const filesDir = _chunkQCJEAT7Zjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2445
+ const filesDir = _chunk7KJYA3C3js.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2283
2446
  const tsLibraryGeneratorOptions = {
2284
2447
  ...schema,
2285
2448
  platform: "neutral",
@@ -2322,7 +2485,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2322
2485
  // ../workspace-tools/src/generators/node-library/generator.ts
2323
2486
 
2324
2487
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2325
- const filesDir = _chunkQCJEAT7Zjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2488
+ const filesDir = _chunk7KJYA3C3js.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2326
2489
  const tsLibraryGeneratorOptions = {
2327
2490
  platform: "node",
2328
2491
  devDependencies: {