@storm-software/terraform-tools 0.62.5 → 0.62.7

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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -1
  3. package/dist/{chunk-FZN35W4X.js → chunk-A6YND2BU.js} +2 -2
  4. package/dist/{chunk-6AKHBMSA.js → chunk-AAJDFJYK.js} +2 -2
  5. package/dist/{chunk-ET3UGY2L.mjs → chunk-C5VKA26O.mjs} +1 -1
  6. package/dist/{chunk-WYONVDTO.mjs → chunk-CKIMQIWP.mjs} +6 -4
  7. package/dist/chunk-EP2PXXBJ.mjs +10 -0
  8. package/dist/{chunk-N3EQIDHT.js → chunk-OBJXBSXN.js} +2 -2
  9. package/dist/{chunk-EOCIL5BE.mjs → chunk-OVEZ53VK.mjs} +1 -1
  10. package/dist/{chunk-L4WE6GUL.mjs → chunk-R2LPQYBA.mjs} +1 -1
  11. package/dist/{chunk-NBKNLXBU.mjs → chunk-TFRWPS5M.mjs} +8 -121
  12. package/dist/{chunk-V2SHLAIZ.mjs → chunk-TXJ44D5O.mjs} +1 -1
  13. package/dist/{chunk-PD7YZBRS.js → chunk-VDAWVSN6.js} +113 -228
  14. package/dist/{chunk-UHFIUDKJ.js → chunk-VDGQVQKE.js} +2 -2
  15. package/dist/{chunk-XZU22PSP.js → chunk-VFJBGAJA.js} +2 -2
  16. package/dist/{chunk-2NXAAPRN.js → chunk-WFAKWGXA.js} +6 -4
  17. package/dist/{chunk-5MZLXAHB.mjs → chunk-Z235AGW2.mjs} +1 -1
  18. package/dist/executors.js +6 -7
  19. package/dist/executors.mjs +7 -7
  20. package/dist/generators.js +3 -4
  21. package/dist/generators.mjs +3 -3
  22. package/dist/index.js +8 -9
  23. package/dist/index.mjs +8 -8
  24. package/dist/src/base/base-terraform-executor.untyped.js +0 -1
  25. package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
  26. package/dist/src/base/index.js +3 -4
  27. package/dist/src/base/index.mjs +3 -3
  28. package/dist/src/base/terraform-executor.js +3 -4
  29. package/dist/src/base/terraform-executor.mjs +3 -3
  30. package/dist/src/executors/apply/executor.js +4 -5
  31. package/dist/src/executors/apply/executor.mjs +4 -4
  32. package/dist/src/executors/destroy/executor.js +4 -5
  33. package/dist/src/executors/destroy/executor.mjs +4 -4
  34. package/dist/src/executors/output/executor.js +4 -5
  35. package/dist/src/executors/output/executor.mjs +4 -4
  36. package/dist/src/executors/plan/executor.js +4 -5
  37. package/dist/src/executors/plan/executor.mjs +4 -4
  38. package/dist/src/generators/init/init.js +3 -4
  39. package/dist/src/generators/init/init.mjs +3 -3
  40. package/dist/tsup.config.js +1 -3
  41. package/dist/tsup.config.mjs +1 -1
  42. package/package.json +5 -5
  43. package/dist/chunk-3RG5ZIWI.js +0 -10
  44. package/dist/chunk-URGPIQOV.mjs +0 -18
@@ -17,10 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunk2NXAAPRNjs = require('./chunk-2NXAAPRN.js');
21
-
22
-
23
- var _chunk3RG5ZIWIjs = require('./chunk-3RG5ZIWI.js');
20
+ var _chunkWFAKWGXAjs = require('./chunk-WFAKWGXA.js');
24
21
 
25
22
  // src/generators/init/init.ts
26
23
  var _devkit = require('@nx/devkit');
@@ -31,7 +28,7 @@ var _devkit = require('@nx/devkit');
31
28
 
32
29
 
33
30
  var _child_process = require('child_process');
34
- var _path = require('path'); var path3 = _interopRequireWildcard(_path);
31
+ var _path = require('path'); var path2 = _interopRequireWildcard(_path);
35
32
  var INVALID_CARGO_ARGS = [
36
33
  "allFeatures",
37
34
  "allTargets",
@@ -147,7 +144,7 @@ async function cargoBuildExecutor(options, context) {
147
144
  const command = buildCargoCommand("build", options, context);
148
145
  return await cargoCommand(...command);
149
146
  }
150
- var executor_default = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
147
+ var executor_default = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
151
148
  "Cargo - Build",
152
149
  cargoBuildExecutor,
153
150
  {
@@ -167,7 +164,7 @@ async function cargoCheckExecutor(options, context) {
167
164
  const command = buildCargoCommand("check", options, context);
168
165
  return await cargoCommand(...command);
169
166
  }
170
- var executor_default2 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
167
+ var executor_default2 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
171
168
  "Cargo - Check",
172
169
  cargoCheckExecutor,
173
170
  {
@@ -186,7 +183,7 @@ async function cargoClippyExecutor(options, context) {
186
183
  const command = buildCargoCommand("clippy", options, context);
187
184
  return await cargoCommand(...command);
188
185
  }
189
- var executor_default3 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
186
+ var executor_default3 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
190
187
  "Cargo - Clippy",
191
188
  cargoClippyExecutor,
192
189
  {
@@ -209,7 +206,7 @@ async function cargoDocExecutor(options, context) {
209
206
  const command = buildCargoCommand("doc", options, context);
210
207
  return await cargoCommand(...command);
211
208
  }
212
- var executor_default4 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
209
+ var executor_default4 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
213
210
  "Cargo - Doc",
214
211
  cargoDocExecutor,
215
212
  {
@@ -235,7 +232,7 @@ async function cargoFormatExecutor(options, context) {
235
232
  const command = buildCargoCommand("fmt", options, context);
236
233
  return await cargoCommand(...command);
237
234
  }
238
- var executor_default5 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
235
+ var executor_default5 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
239
236
  "Cargo - Format",
240
237
  cargoFormatExecutor,
241
238
  {
@@ -257,10 +254,6 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
257
254
  var _https = require('https'); var _https2 = _interopRequireDefault(_https);
258
255
  var LARGE_BUFFER = 1024 * 1e6;
259
256
 
260
- // ../esbuild/src/build.ts
261
- var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
262
- var _globby = require('globby');
263
-
264
257
  // ../build-tools/src/config.ts
265
258
  var DEFAULT_COMPILED_BANNER = `/*****************************************
266
259
  *
@@ -314,9 +307,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
314
307
  output: "src/"
315
308
  });
316
309
  }
317
- _chunk2NXAAPRNjs.writeTrace.call(void 0,
310
+ _chunkWFAKWGXAjs.writeTrace.call(void 0,
318
311
  `\u{1F4DD} Copying the following assets to the output directory:
319
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk2NXAAPRNjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
312
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkWFAKWGXAjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
320
313
  config
321
314
  );
322
315
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -326,20 +319,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
326
319
  assets: pendingAssets
327
320
  });
328
321
  await assetHandler.processAllAssetsOnce();
329
- _chunk2NXAAPRNjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
322
+ _chunkWFAKWGXAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
330
323
  if (includeSrc === true) {
331
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
332
- `\u{1F4DD} Adding banner and writing source files: ${_chunk2NXAAPRNjs.joinPaths.call(void 0,
324
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
325
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkWFAKWGXAjs.joinPaths.call(void 0,
333
326
  outputPath,
334
327
  "src"
335
328
  )}`,
336
329
  config
337
330
  );
338
331
  const files = await _glob.glob.call(void 0, [
339
- _chunk2NXAAPRNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
340
- _chunk2NXAAPRNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
341
- _chunk2NXAAPRNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
342
- _chunk2NXAAPRNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
332
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
333
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
334
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
335
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
343
336
  ]);
344
337
  await Promise.allSettled(
345
338
  files.map(
@@ -394,7 +387,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
394
387
  )) {
395
388
  const projectNode = project.node;
396
389
  if (projectNode.data.root) {
397
- const projectPackageJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0,
390
+ const projectPackageJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0,
398
391
  workspaceRoot3,
399
392
  projectNode.data.root,
400
393
  "package.json"
@@ -412,11 +405,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
412
405
  }
413
406
  }
414
407
  if (localPackages.length > 0) {
415
- _chunk2NXAAPRNjs.writeTrace.call(void 0,
408
+ _chunkWFAKWGXAjs.writeTrace.call(void 0,
416
409
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
417
410
  );
418
411
  const projectJsonFile = await _promises.readFile.call(void 0,
419
- _chunk2NXAAPRNjs.joinPaths.call(void 0, projectRoot, "project.json"),
412
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, projectRoot, "project.json"),
420
413
  "utf8"
421
414
  );
422
415
  const projectJson = JSON.parse(projectJsonFile);
@@ -429,7 +422,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
429
422
  }
430
423
  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) => {
431
424
  if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
432
- const depPackageJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0,
425
+ const depPackageJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0,
433
426
  workspaceRoot3,
434
427
  projectConfigurations.projects[dep].root,
435
428
  "package.json"
@@ -460,14 +453,14 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
460
453
  return ret;
461
454
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
462
455
  } else {
463
- _chunk2NXAAPRNjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
456
+ _chunkWFAKWGXAjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
464
457
  }
465
458
  return packageJson;
466
459
  };
467
460
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
468
- const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk2NXAAPRNjs.findWorkspaceRoot.call(void 0, );
461
+ const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkWFAKWGXAjs.findWorkspaceRoot.call(void 0, );
469
462
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
470
- _chunk2NXAAPRNjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
463
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
471
464
  "utf8"
472
465
  );
473
466
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -478,7 +471,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
478
471
  if (distSrc.startsWith("/")) {
479
472
  distSrc = distSrc.substring(1);
480
473
  }
481
- packageJson.source ??= `${_chunk2NXAAPRNjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
474
+ packageJson.source ??= `${_chunkWFAKWGXAjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
482
475
  }
483
476
  packageJson.files ??= ["dist/**/*"];
484
477
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -503,7 +496,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
503
496
  packageJson.contributors = [packageJson.author];
504
497
  }
505
498
  packageJson.repository ??= workspacePackageJson.repository;
506
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk2NXAAPRNjs.joinPaths.call(void 0, "packages", projectName);
499
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkWFAKWGXAjs.joinPaths.call(void 0, "packages", projectName);
507
500
  return packageJson;
508
501
  };
509
502
 
@@ -537,11 +530,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
537
530
  // ../esbuild/src/assets.ts
538
531
  async function copyBuildAssets(context) {
539
532
  if (!_optionalChain([context, 'access', _28 => _28.result, 'optionalAccess', _29 => _29.errors, 'access', _30 => _30.length]) && _optionalChain([context, 'access', _31 => _31.options, 'access', _32 => _32.assets, 'optionalAccess', _33 => _33.length])) {
540
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
533
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
541
534
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
542
535
  context.workspaceConfig
543
536
  );
544
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
537
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
545
538
  await copyAssets(
546
539
  context.workspaceConfig,
547
540
  _nullishCoalesce(context.options.assets, () => ( [])),
@@ -622,15 +615,15 @@ async function resolveContext(userOptions) {
622
615
  if (!workspaceRoot3) {
623
616
  throw new Error("Cannot find Nx workspace root");
624
617
  }
625
- const workspaceConfig = await _chunk2NXAAPRNjs.getWorkspaceConfig.call(void 0, true, {
618
+ const workspaceConfig = await _chunkWFAKWGXAjs.getWorkspaceConfig.call(void 0, true, {
626
619
  workspaceRoot: workspaceRoot3.dir
627
620
  });
628
- _chunk2NXAAPRNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
629
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, "Build options resolution");
621
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
622
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, "Build options resolution");
630
623
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
631
624
  exitOnError: true
632
625
  });
633
- const projectJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0,
626
+ const projectJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0,
634
627
  workspaceRoot3.dir,
635
628
  projectRoot,
636
629
  "project.json"
@@ -649,7 +642,7 @@ async function resolveContext(userOptions) {
649
642
  }
650
643
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
651
644
  options.name ??= projectName;
652
- const packageJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0,
645
+ const packageJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0,
653
646
  workspaceRoot3.dir,
654
647
  options.projectRoot,
655
648
  "package.json"
@@ -661,7 +654,7 @@ async function resolveContext(userOptions) {
661
654
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
662
655
  const resolvedOptions = {
663
656
  ...options,
664
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk2NXAAPRNjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
657
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkWFAKWGXAjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
665
658
  metafile: userOptions.mode === "development",
666
659
  clean: false,
667
660
  env,
@@ -686,8 +679,8 @@ async function resolveContext(userOptions) {
686
679
  projectConfigurations,
687
680
  projectName,
688
681
  projectGraph,
689
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk2NXAAPRNjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
690
- outputPath: resolvedOptions.outputPath || _chunk2NXAAPRNjs.joinPaths.call(void 0,
682
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkWFAKWGXAjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
683
+ outputPath: resolvedOptions.outputPath || _chunkWFAKWGXAjs.joinPaths.call(void 0,
691
684
  workspaceConfig.workspaceRoot,
692
685
  "dist",
693
686
  resolvedOptions.projectRoot
@@ -696,10 +689,10 @@ async function resolveContext(userOptions) {
696
689
  };
697
690
  context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
698
691
  if (context.options.verbose) {
699
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
692
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
700
693
  ` \u2699\uFE0F Build options resolved:
701
694
 
702
- ${_chunk2NXAAPRNjs.formatLogMessage.call(void 0, context.options)}`,
695
+ ${_chunkWFAKWGXAjs.formatLogMessage.call(void 0, context.options)}`,
703
696
  workspaceConfig
704
697
  );
705
698
  }
@@ -711,10 +704,10 @@ ${_chunk2NXAAPRNjs.formatLogMessage.call(void 0, context.options)}`,
711
704
 
712
705
 
713
706
  async function generatePackageJson(context) {
714
- if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk2NXAAPRNjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
715
- _chunk2NXAAPRNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
716
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, "Write package.json file");
717
- const packageJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0,
707
+ if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkWFAKWGXAjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
708
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
709
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, "Write package.json file");
710
+ const packageJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0,
718
711
  context.options.projectRoot,
719
712
  "project.json"
720
713
  );
@@ -722,7 +715,7 @@ async function generatePackageJson(context) {
722
715
  throw new Error("Cannot find package.json configuration");
723
716
  }
724
717
  const packageJsonFile = await _promises2.default.readFile(
725
- _chunk2NXAAPRNjs.joinPaths.call(void 0,
718
+ _chunkWFAKWGXAjs.joinPaths.call(void 0,
726
719
  context.workspaceConfig.workspaceRoot,
727
720
  context.options.projectRoot,
728
721
  "package.json"
@@ -828,7 +821,7 @@ async function generatePackageJson(context) {
828
821
  }
829
822
  }
830
823
  await _devkit.writeJsonFile.call(void 0,
831
- _chunk2NXAAPRNjs.joinPaths.call(void 0, context.outputPath, "package.json"),
824
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, context.outputPath, "package.json"),
832
825
  packageJson
833
826
  );
834
827
  stopwatch();
@@ -836,99 +829,17 @@ async function generatePackageJson(context) {
836
829
  return context;
837
830
  }
838
831
 
839
- // ../esbuild/src/plugins/deps-check.ts
840
-
841
-
842
- var unusedIgnore = [
843
- // these are our dev dependencies
844
- /@types\/.*?/,
845
- /@typescript-eslint.*?/,
846
- /eslint.*?/,
847
- "esbuild",
848
- "husky",
849
- "is-ci",
850
- "lint-staged",
851
- "prettier",
852
- "typescript",
853
- "ts-node",
854
- "ts-jest",
855
- "@swc/core",
856
- "@swc/jest",
857
- "jest",
858
- // these are missing 3rd party deps
859
- "spdx-exceptions",
860
- "spdx-license-ids",
861
- // type-only, so it is not detected
862
- "ts-toolbelt",
863
- // these are indirectly used by build
864
- "buffer"
865
- ];
866
- var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
867
- var depsCheckPlugin = (bundle) => ({
868
- name: "storm:deps-check",
869
- setup(build3) {
870
- const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
871
- const pkgContents = _chunk3RG5ZIWIjs.__require.call(void 0, pkgJsonPath);
872
- const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
873
- const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
874
- const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
875
- const dependencies = [
876
- ...regDependencies,
877
- ...bundle ? devDependencies : []
878
- ];
879
- const collectedDependencies = /* @__PURE__ */ new Set();
880
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
881
- build3.onResolve({ filter: onlyPackages }, (args) => {
882
- if (args.importer.includes(process.cwd())) {
883
- if (args.path[0] === "@") {
884
- const [org, pkg] = args.path.split("/");
885
- collectedDependencies.add(`${org}/${pkg}`);
886
- } else {
887
- const [pkg] = args.path.split("/");
888
- collectedDependencies.add(pkg);
889
- }
890
- }
891
- return { external: true };
892
- });
893
- build3.onEnd(() => {
894
- const unusedDependencies = [...dependencies].filter((dep) => {
895
- return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
896
- });
897
- const missingDependencies = [...collectedDependencies].filter((dep) => {
898
- return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
899
- });
900
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
901
- return !unusedIgnore.some((pattern) => dep.match(pattern));
902
- });
903
- const filteredMissingDeps = missingDependencies.filter((dep) => {
904
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
905
- });
906
- _chunk2NXAAPRNjs.writeWarning.call(void 0,
907
- `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
908
- );
909
- _chunk2NXAAPRNjs.writeError.call(void 0,
910
- `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
911
- );
912
- if (filteredMissingDeps.length > 0) {
913
- throw new Error(`Missing dependencies detected - please install them:
914
- ${JSON.stringify(filteredMissingDeps)}
915
- `);
916
- }
917
- });
918
- }
919
- });
920
-
921
832
  // ../esbuild/src/tsup.ts
922
833
  var _tsup = require('tsup');
923
834
  async function executeTsup(context) {
924
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
835
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
925
836
  ` \u{1F680} Running ${context.options.name} build`,
926
837
  context.workspaceConfig
927
838
  );
928
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, `${context.options.name} build`);
839
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, `${context.options.name} build`);
929
840
  await _tsup.build.call(void 0, {
930
841
  ...context.options,
931
- outDir: context.options.distDir ? _chunk2NXAAPRNjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
842
+ outDir: context.options.distDir ? _chunkWFAKWGXAjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
932
843
  workspaceConfig: context.workspaceConfig
933
844
  });
934
845
  stopwatch();
@@ -939,17 +850,17 @@ async function executeTsup(context) {
939
850
  async function reportResults(context) {
940
851
  if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors, 'access', _38 => _38.length]) === 0) {
941
852
  if (context.result.warnings.length > 0) {
942
- _chunk2NXAAPRNjs.writeWarning.call(void 0,
853
+ _chunkWFAKWGXAjs.writeWarning.call(void 0,
943
854
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
944
855
  context.workspaceConfig
945
856
  );
946
857
  }
947
- _chunk2NXAAPRNjs.writeSuccess.call(void 0,
858
+ _chunkWFAKWGXAjs.writeSuccess.call(void 0,
948
859
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
949
860
  context.workspaceConfig
950
861
  );
951
862
  } else if (_optionalChain([context, 'access', _39 => _39.result, 'optionalAccess', _40 => _40.errors]) && _optionalChain([context, 'access', _41 => _41.result, 'optionalAccess', _42 => _42.errors, 'access', _43 => _43.length]) > 0) {
952
- _chunk2NXAAPRNjs.writeError.call(void 0,
863
+ _chunkWFAKWGXAjs.writeError.call(void 0,
953
864
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
954
865
  context.workspaceConfig
955
866
  );
@@ -958,47 +869,21 @@ async function reportResults(context) {
958
869
  );
959
870
  }
960
871
  }
961
- async function dependencyCheck(options) {
962
- if (process.env.DEV === "true") {
963
- return void 0;
964
- }
965
- if (process.env.CI && !process.env.BUILDKITE) {
966
- return void 0;
967
- }
968
- const buildPromise = esbuild.build({
969
- entryPoints: _globby.globbySync.call(void 0, "**/*.{j,t}s", {
970
- // We don't check dependencies in ecosystem tests because tests are isolated from the build.
971
- ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
972
- gitignore: true
973
- }),
974
- logLevel: "silent",
975
- // there will be errors
976
- bundle: true,
977
- // we bundle to get everything
978
- write: false,
979
- // no need to write for analysis
980
- outdir: "out",
981
- plugins: [depsCheckPlugin(options.bundle)]
982
- });
983
- await buildPromise.catch(() => {
984
- });
985
- return void 0;
986
- }
987
872
  async function cleanOutputPath(context) {
988
873
  if (context.clean !== false && context.outputPath) {
989
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
874
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
990
875
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
991
876
  context.workspaceConfig
992
877
  );
993
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
878
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
994
879
  await cleanDirectories(context.outputPath);
995
880
  stopwatch();
996
881
  }
997
882
  return context;
998
883
  }
999
- async function build2(options) {
1000
- _chunk2NXAAPRNjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1001
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, "ESBuild pipeline");
884
+ async function build(options) {
885
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
886
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, "ESBuild pipeline");
1002
887
  try {
1003
888
  const opts = Array.isArray(options) ? options : [options];
1004
889
  if (opts.length === 0) {
@@ -1007,15 +892,15 @@ async function build2(options) {
1007
892
  const context = await resolveContext(options);
1008
893
  await cleanOutputPath(context);
1009
894
  await Promise.all([
1010
- dependencyCheck(context.options),
895
+ // dependencyCheck(context.options),
1011
896
  generatePackageJson(context),
1012
897
  copyBuildAssets(context),
1013
898
  executeTsup(context)
1014
899
  ]);
1015
900
  await reportResults(context);
1016
- _chunk2NXAAPRNjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
901
+ _chunkWFAKWGXAjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1017
902
  } catch (error) {
1018
- _chunk2NXAAPRNjs.writeFatal.call(void 0,
903
+ _chunkWFAKWGXAjs.writeFatal.call(void 0,
1019
904
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
1020
905
  );
1021
906
  throw error;
@@ -1026,13 +911,13 @@ async function build2(options) {
1026
911
 
1027
912
  // ../workspace-tools/src/executors/esbuild/executor.ts
1028
913
  async function esbuildExecutorFn(options, context, config) {
1029
- _chunk2NXAAPRNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
914
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1030
915
  if (!_optionalChain([context, 'access', _44 => _44.projectsConfigurations, 'optionalAccess', _45 => _45.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _46 => _46.projectsConfigurations, 'access', _47 => _47.projects, 'access', _48 => _48[context.projectName], 'optionalAccess', _49 => _49.root])) {
1031
916
  throw new Error(
1032
917
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1033
918
  );
1034
919
  }
1035
- await build2({
920
+ await build({
1036
921
  ...options,
1037
922
  projectRoot: _optionalChain([context, 'access', _50 => _50.projectsConfigurations, 'access', _51 => _51.projects, 'optionalAccess', _52 => _52[context.projectName], 'access', _53 => _53.root]),
1038
923
  name: context.projectName,
@@ -1044,7 +929,7 @@ async function esbuildExecutorFn(options, context, config) {
1044
929
  success: true
1045
930
  };
1046
931
  }
1047
- var executor_default6 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
932
+ var executor_default6 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
1048
933
  "Storm ESBuild build",
1049
934
  esbuildExecutorFn,
1050
935
  {
@@ -1151,7 +1036,7 @@ var LARGE_BUFFER2 = 1024 * 1e6;
1151
1036
 
1152
1037
  // ../workspace-tools/src/executors/size-limit/executor.ts
1153
1038
 
1154
- var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
1039
+ var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
1155
1040
  var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
1156
1041
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1157
1042
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
@@ -1161,14 +1046,14 @@ async function sizeLimitExecutorFn(options, context, config) {
1161
1046
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1162
1047
  );
1163
1048
  }
1164
- _chunk2NXAAPRNjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1165
- _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
1049
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1050
+ _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
1166
1051
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context.projectName], 'optionalAccess', _64 => _64.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
1167
1052
  _nullishCoalesce(_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'access', _67 => _67[context.projectName], 'optionalAccess', _68 => _68.root]), () => ( "./")),
1168
1053
  "src"
1169
1054
  )))
1170
1055
  }).then((result) => {
1171
- _chunk2NXAAPRNjs.writeInfo.call(void 0,
1056
+ _chunkWFAKWGXAjs.writeInfo.call(void 0,
1172
1057
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1173
1058
  config
1174
1059
  );
@@ -1177,7 +1062,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1177
1062
  success: true
1178
1063
  };
1179
1064
  }
1180
- var executor_default7 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
1065
+ var executor_default7 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
1181
1066
  "Size-Limit Performance Test Executor",
1182
1067
  sizeLimitExecutorFn,
1183
1068
  {
@@ -1195,12 +1080,12 @@ var _fsextra = require('fs-extra');
1195
1080
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
1196
1081
  async function typiaExecutorFn(options, _, config) {
1197
1082
  if (options.clean !== false) {
1198
- _chunk2NXAAPRNjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1083
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1199
1084
  _fsextra.removeSync.call(void 0, options.outputPath);
1200
1085
  }
1201
1086
  await Promise.all(
1202
1087
  options.entry.map((entry) => {
1203
- _chunk2NXAAPRNjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1088
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1204
1089
  return _TypiaProgrammerjs.TypiaProgrammer.build({
1205
1090
  input: entry,
1206
1091
  output: options.outputPath,
@@ -1212,7 +1097,7 @@ async function typiaExecutorFn(options, _, config) {
1212
1097
  success: true
1213
1098
  };
1214
1099
  }
1215
- var executor_default8 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
1100
+ var executor_default8 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
1216
1101
  "Typia runtime validation generator",
1217
1102
  typiaExecutorFn,
1218
1103
  {
@@ -1233,7 +1118,7 @@ var executor_default8 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
1233
1118
 
1234
1119
  var _jiti = require('jiti');
1235
1120
  async function unbuildExecutorFn(options, context, config) {
1236
- _chunk2NXAAPRNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1121
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1237
1122
  if (!_optionalChain([context, 'access', _69 => _69.projectsConfigurations, 'optionalAccess', _70 => _70.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1238
1123
  throw new Error(
1239
1124
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -1250,7 +1135,7 @@ async function unbuildExecutorFn(options, context, config) {
1250
1135
  );
1251
1136
  }
1252
1137
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1253
- fsCache: config.skipCache ? false : _chunk2NXAAPRNjs.joinPaths.call(void 0,
1138
+ fsCache: config.skipCache ? false : _chunkWFAKWGXAjs.joinPaths.call(void 0,
1254
1139
  config.workspaceRoot,
1255
1140
  config.directories.cache || "node_modules/.cache/storm",
1256
1141
  "jiti"
@@ -1272,7 +1157,7 @@ async function unbuildExecutorFn(options, context, config) {
1272
1157
  {
1273
1158
  stubOptions: {
1274
1159
  jiti: {
1275
- fsCache: config.skipCache ? false : _chunk2NXAAPRNjs.joinPaths.call(void 0,
1160
+ fsCache: config.skipCache ? false : _chunkWFAKWGXAjs.joinPaths.call(void 0,
1276
1161
  config.workspaceRoot,
1277
1162
  config.directories.cache || "node_modules/.cache/storm",
1278
1163
  "jiti"
@@ -1301,7 +1186,7 @@ async function unbuildExecutorFn(options, context, config) {
1301
1186
  success: true
1302
1187
  };
1303
1188
  }
1304
- var executor_default9 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
1189
+ var executor_default9 = _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
1305
1190
  "TypeScript Unbuild build",
1306
1191
  unbuildExecutorFn,
1307
1192
  {
@@ -1332,45 +1217,45 @@ var executor_default9 = _chunk2NXAAPRNjs.withRunExecutor.call(void 0,
1332
1217
  var withRunGenerator = (name, generatorFn, generatorOptions = {
1333
1218
  skipReadingConfig: false
1334
1219
  }) => async (tree, _options) => {
1335
- const stopwatch = _chunk2NXAAPRNjs.getStopwatch.call(void 0, name);
1220
+ const stopwatch = _chunkWFAKWGXAjs.getStopwatch.call(void 0, name);
1336
1221
  let options = _options;
1337
1222
  let config;
1338
1223
  try {
1339
- _chunk2NXAAPRNjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1224
+ _chunkWFAKWGXAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1340
1225
 
1341
1226
  `, config);
1342
- const workspaceRoot3 = _chunk2NXAAPRNjs.findWorkspaceRoot.call(void 0, );
1227
+ const workspaceRoot3 = _chunkWFAKWGXAjs.findWorkspaceRoot.call(void 0, );
1343
1228
  if (!generatorOptions.skipReadingConfig) {
1344
- _chunk2NXAAPRNjs.writeDebug.call(void 0,
1229
+ _chunkWFAKWGXAjs.writeDebug.call(void 0,
1345
1230
  `Loading the Storm Config from environment variables and storm.config.js file...
1346
1231
  - workspaceRoot: ${workspaceRoot3}`,
1347
1232
  config
1348
1233
  );
1349
- config = await _chunk2NXAAPRNjs.getConfig.call(void 0, workspaceRoot3);
1234
+ config = await _chunkWFAKWGXAjs.getConfig.call(void 0, workspaceRoot3);
1350
1235
  }
1351
1236
  if (_optionalChain([generatorOptions, 'optionalAccess', _71 => _71.hooks, 'optionalAccess', _72 => _72.applyDefaultOptions])) {
1352
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1237
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1353
1238
  options = await Promise.resolve(
1354
1239
  generatorOptions.hooks.applyDefaultOptions(options, config)
1355
1240
  );
1356
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1241
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1357
1242
  }
1358
- _chunk2NXAAPRNjs.writeTrace.call(void 0,
1243
+ _chunkWFAKWGXAjs.writeTrace.call(void 0,
1359
1244
  `Generator schema options \u2699\uFE0F
1360
1245
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
1361
1246
  config
1362
1247
  );
1363
- const tokenized = await _chunk2NXAAPRNjs.applyWorkspaceTokens.call(void 0,
1248
+ const tokenized = await _chunkWFAKWGXAjs.applyWorkspaceTokens.call(void 0,
1364
1249
  options,
1365
1250
  { workspaceRoot: tree.root, config },
1366
- _chunk2NXAAPRNjs.applyWorkspaceBaseTokens
1251
+ _chunkWFAKWGXAjs.applyWorkspaceBaseTokens
1367
1252
  );
1368
1253
  if (_optionalChain([generatorOptions, 'optionalAccess', _73 => _73.hooks, 'optionalAccess', _74 => _74.preProcess])) {
1369
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1254
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1370
1255
  await Promise.resolve(
1371
1256
  generatorOptions.hooks.preProcess(tokenized, config)
1372
1257
  );
1373
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1258
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1374
1259
  }
1375
1260
  const result = await Promise.resolve(
1376
1261
  generatorFn(tree, tokenized, config)
@@ -1385,21 +1270,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1385
1270
  }
1386
1271
  }
1387
1272
  if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.postProcess])) {
1388
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1273
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1389
1274
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1390
- _chunk2NXAAPRNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1275
+ _chunkWFAKWGXAjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1391
1276
  }
1392
1277
  return () => {
1393
- _chunk2NXAAPRNjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1278
+ _chunkWFAKWGXAjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1394
1279
  `, config);
1395
1280
  };
1396
1281
  } catch (error) {
1397
1282
  return () => {
1398
- _chunk2NXAAPRNjs.writeFatal.call(void 0,
1283
+ _chunkWFAKWGXAjs.writeFatal.call(void 0,
1399
1284
  "A fatal error occurred while running the generator - the process was forced to terminate",
1400
1285
  config
1401
1286
  );
1402
- _chunk2NXAAPRNjs.writeError.call(void 0,
1287
+ _chunkWFAKWGXAjs.writeError.call(void 0,
1403
1288
  `An exception was thrown in the generator's process
1404
1289
  - Details: ${error.message}
1405
1290
  - Stacktrace: ${error.stack}`,
@@ -1465,16 +1350,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1465
1350
  const projectConfig = {
1466
1351
  root: normalized.directory,
1467
1352
  projectType: "library",
1468
- sourceRoot: _chunk2NXAAPRNjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1353
+ sourceRoot: _chunkWFAKWGXAjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1469
1354
  targets: {
1470
1355
  build: {
1471
1356
  executor: options.buildExecutor,
1472
1357
  outputs: ["{options.outputPath}"],
1473
1358
  options: {
1474
- entry: [_chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1359
+ entry: [_chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1475
1360
  outputPath: getOutputPath(normalized),
1476
- tsconfig: _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1477
- project: _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1361
+ tsconfig: _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1362
+ project: _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1478
1363
  defaultConfiguration: "production",
1479
1364
  platform: "neutral",
1480
1365
  assets: [
@@ -1531,7 +1416,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1531
1416
  if (!normalized.importPath) {
1532
1417
  normalized.importPath = normalized.name;
1533
1418
  }
1534
- const packageJsonPath = _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1419
+ const packageJsonPath = _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1535
1420
  if (tree.exists(packageJsonPath)) {
1536
1421
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
1537
1422
  if (!normalized.importPath) {
@@ -1588,14 +1473,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1588
1473
  }));
1589
1474
  }
1590
1475
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
1591
- _chunk2NXAAPRNjs.joinPaths.call(void 0,
1476
+ _chunkWFAKWGXAjs.joinPaths.call(void 0,
1592
1477
  normalized.projectRoot,
1593
1478
  "./src",
1594
1479
  `index.${normalized.js ? "js" : "ts"}`
1595
1480
  )
1596
1481
  ]);
1597
- _js.addTsConfigPath.call(void 0, tree, _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1598
- _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1482
+ _js.addTsConfigPath.call(void 0, tree, _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1483
+ _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1599
1484
  ]);
1600
1485
  if (tree.exists("package.json")) {
1601
1486
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -1606,7 +1491,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1606
1491
  description = packageJson.description;
1607
1492
  }
1608
1493
  }
1609
- const tsconfigPath = _chunk2NXAAPRNjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1494
+ const tsconfigPath = _chunkWFAKWGXAjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1610
1495
  if (tree.exists(tsconfigPath)) {
1611
1496
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
1612
1497
  json.composite ??= true;
@@ -1634,7 +1519,7 @@ function getOutputPath(options) {
1634
1519
  } else {
1635
1520
  parts.push(options.projectRoot);
1636
1521
  }
1637
- return _chunk2NXAAPRNjs.joinPaths.call(void 0, ...parts);
1522
+ return _chunkWFAKWGXAjs.joinPaths.call(void 0, ...parts);
1638
1523
  }
1639
1524
  function createProjectTsConfigJson(tree, options) {
1640
1525
  const tsconfig = {
@@ -1642,7 +1527,7 @@ function createProjectTsConfigJson(tree, options) {
1642
1527
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _100 => _100.tsconfigOptions]), () => ( {})),
1643
1528
  compilerOptions: {
1644
1529
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
1645
- outDir: _chunk2NXAAPRNjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1530
+ outDir: _chunkWFAKWGXAjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1646
1531
  noEmit: true,
1647
1532
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _101 => _101.tsconfigOptions, 'optionalAccess', _102 => _102.compilerOptions]), () => ( {}))
1648
1533
  },
@@ -1660,7 +1545,7 @@ function createProjectTsConfigJson(tree, options) {
1660
1545
  "src/**/*.test.ts"
1661
1546
  ]
1662
1547
  };
1663
- _devkit.writeJson.call(void 0, tree, _chunk2NXAAPRNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1548
+ _devkit.writeJson.call(void 0, tree, _chunkWFAKWGXAjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1664
1549
  }
1665
1550
  async function normalizeOptions(tree, options, config) {
1666
1551
  let importPath = options.importPath;
@@ -1725,7 +1610,7 @@ async function normalizeOptions(tree, options, config) {
1725
1610
 
1726
1611
  // ../workspace-tools/src/generators/browser-library/generator.ts
1727
1612
  async function browserLibraryGeneratorFn(tree, schema, config) {
1728
- const filesDir = _chunk2NXAAPRNjs.joinPaths.call(void 0,
1613
+ const filesDir = _chunkWFAKWGXAjs.joinPaths.call(void 0,
1729
1614
  __dirname,
1730
1615
  "src",
1731
1616
  "generators",
@@ -1808,38 +1693,38 @@ var generator_default = withRunGenerator(
1808
1693
 
1809
1694
  var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
1810
1695
  async function configSchemaGeneratorFn(tree, options, config) {
1811
- _chunk2NXAAPRNjs.writeInfo.call(void 0,
1696
+ _chunkWFAKWGXAjs.writeInfo.call(void 0,
1812
1697
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
1813
1698
  config
1814
1699
  );
1815
- _chunk2NXAAPRNjs.writeTrace.call(void 0,
1700
+ _chunkWFAKWGXAjs.writeTrace.call(void 0,
1816
1701
  `Determining the Storm Workspace Configuration JSON Schema...`,
1817
1702
  config
1818
1703
  );
1819
- const jsonSchema = z.toJSONSchema(_chunk2NXAAPRNjs.workspaceConfigSchema, {
1704
+ const jsonSchema = z.toJSONSchema(_chunkWFAKWGXAjs.workspaceConfigSchema, {
1820
1705
  target: "draft-7",
1821
- metadata: _chunk2NXAAPRNjs.schemaRegistry
1706
+ metadata: _chunkWFAKWGXAjs.schemaRegistry
1822
1707
  });
1823
1708
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
1824
1709
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
1825
1710
  jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
1826
- _chunk2NXAAPRNjs.writeTrace.call(void 0, jsonSchema, config);
1711
+ _chunkWFAKWGXAjs.writeTrace.call(void 0, jsonSchema, config);
1827
1712
  if (!options.outputFile) {
1828
1713
  throw new Error(
1829
1714
  "The `outputFile` option is required. Please specify the output file path."
1830
1715
  );
1831
1716
  }
1832
1717
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1833
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _111 => _111.workspaceRoot]), () => ( _chunk2NXAAPRNjs.findWorkspaceRoot.call(void 0, ))),
1718
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _111 => _111.workspaceRoot]), () => ( _chunkWFAKWGXAjs.findWorkspaceRoot.call(void 0, ))),
1834
1719
  options.outputFile.startsWith("./") ? "" : "./"
1835
1720
  );
1836
- _chunk2NXAAPRNjs.writeTrace.call(void 0,
1721
+ _chunkWFAKWGXAjs.writeTrace.call(void 0,
1837
1722
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
1838
1723
  config
1839
1724
  );
1840
1725
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
1841
1726
  await _devkit.formatFiles.call(void 0, tree);
1842
- _chunk2NXAAPRNjs.writeSuccess.call(void 0,
1727
+ _chunkWFAKWGXAjs.writeSuccess.call(void 0,
1843
1728
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
1844
1729
  config
1845
1730
  );
@@ -1895,7 +1780,7 @@ async function initGenerator(tree, schema) {
1895
1780
 
1896
1781
 
1897
1782
  async function neutralLibraryGeneratorFn(tree, schema, config) {
1898
- const filesDir = _chunk2NXAAPRNjs.joinPaths.call(void 0,
1783
+ const filesDir = _chunkWFAKWGXAjs.joinPaths.call(void 0,
1899
1784
  __dirname,
1900
1785
  "src",
1901
1786
  "generators",
@@ -1954,7 +1839,7 @@ var generator_default3 = withRunGenerator(
1954
1839
 
1955
1840
 
1956
1841
  async function nodeLibraryGeneratorFn(tree, schema, config) {
1957
- const filesDir = _chunk2NXAAPRNjs.joinPaths.call(void 0,
1842
+ const filesDir = _chunkWFAKWGXAjs.joinPaths.call(void 0,
1958
1843
  __dirname,
1959
1844
  "src",
1960
1845
  "generators",
@@ -2164,7 +2049,7 @@ async function presetGeneratorFn(tree, options) {
2164
2049
  };
2165
2050
  return json;
2166
2051
  });
2167
- _devkit.generateFiles.call(void 0, tree, path3.join(__dirname, "files"), projectRoot, {
2052
+ _devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
2168
2053
  ...options,
2169
2054
  pnpmVersion,
2170
2055
  nodeVersion