@storm-software/pulumi-tools 0.13.37 → 0.13.38

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 (41) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-2AXVXQLX.js → chunk-2FK3A6DZ.js} +2 -2
  4. package/dist/{chunk-ARMLL4XR.mjs → chunk-36RDF4QX.mjs} +1 -1
  5. package/dist/{chunk-2BJWKRZY.mjs → chunk-4RULOIQS.mjs} +1 -1
  6. package/dist/{chunk-K6F4GVJR.mjs → chunk-57TB2UNY.mjs} +1 -1
  7. package/dist/{chunk-DRRNDUUU.mjs → chunk-FLHQLFSC.mjs} +1 -1
  8. package/dist/{chunk-PF32IZUC.js → chunk-FQSH54FJ.js} +2 -2
  9. package/dist/{chunk-5FF2VTEQ.js → chunk-FRFUXDVS.js} +2 -2
  10. package/dist/{chunk-YLUP4GPB.js → chunk-HA36H3ZM.js} +5 -5
  11. package/dist/{chunk-KFBJ5IQ5.mjs → chunk-IKKFXB34.mjs} +1 -1
  12. package/dist/{chunk-3HZRQFRU.mjs → chunk-IZLTQLJ6.mjs} +1 -1
  13. package/dist/{chunk-GVL45UUV.js → chunk-OKJ4N376.js} +2 -2
  14. package/dist/{chunk-ZSDJN6O2.js → chunk-QAP5CNOM.js} +3 -3
  15. package/dist/{chunk-RXBT4QGR.js → chunk-QSMQDRL7.js} +66 -54
  16. package/dist/{chunk-UATEWFF4.mjs → chunk-W2WFAXRV.mjs} +18 -6
  17. package/dist/{chunk-7WJWSBOM.mjs → chunk-X23YQAOZ.mjs} +1 -1
  18. package/dist/{chunk-WVWQ63DQ.js → chunk-ZA5BJM3G.js} +2 -2
  19. package/dist/executors.js +7 -7
  20. package/dist/executors.mjs +7 -7
  21. package/dist/generators.js +3 -3
  22. package/dist/generators.mjs +2 -2
  23. package/dist/index.js +9 -9
  24. package/dist/index.mjs +8 -8
  25. package/dist/src/base/base-executor.js +3 -3
  26. package/dist/src/base/base-executor.mjs +2 -2
  27. package/dist/src/base/index.js +3 -3
  28. package/dist/src/base/index.mjs +2 -2
  29. package/dist/src/executors/config/executor.js +4 -4
  30. package/dist/src/executors/config/executor.mjs +3 -3
  31. package/dist/src/executors/import/executor.js +4 -4
  32. package/dist/src/executors/import/executor.mjs +3 -3
  33. package/dist/src/executors/preview/executor.js +4 -4
  34. package/dist/src/executors/preview/executor.mjs +3 -3
  35. package/dist/src/executors/refresh/executor.js +4 -4
  36. package/dist/src/executors/refresh/executor.mjs +3 -3
  37. package/dist/src/executors/up/executor.js +4 -4
  38. package/dist/src/executors/up/executor.mjs +3 -3
  39. package/dist/src/generators/init/generator.js +3 -3
  40. package/dist/src/generators/init/generator.mjs +2 -2
  41. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.13.37](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.37) (2025-07-08)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update README markdown files
10
+ ([a201e9178](https://github.com/storm-software/storm-ops/commit/a201e9178))
11
+
5
12
  ## [0.13.36](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.36) (2025-07-06)
6
13
 
7
14
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.13.36-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.13.37-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
3
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
- var executor_default = _chunkZSDJN6O2js.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkQAP5CNOMjs.withPulumiExecutor.call(void 0,
7
7
  "refresh",
8
8
  (options) => [
9
9
  "--suppress-progress",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-KFBJ5IQ5.mjs";
3
+ } from "./chunk-IKKFXB34.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-KFBJ5IQ5.mjs";
3
+ } from "./chunk-IKKFXB34.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -5,7 +5,7 @@ import {
5
5
  initGenerator,
6
6
  run,
7
7
  withRunGenerator
8
- } from "./chunk-UATEWFF4.mjs";
8
+ } from "./chunk-W2WFAXRV.mjs";
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-KFBJ5IQ5.mjs";
3
+ } from "./chunk-IKKFXB34.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
3
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunkZSDJN6O2js.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkQAP5CNOMjs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
3
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunkZSDJN6O2js.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkQAP5CNOMjs.withPulumiExecutor.call(void 0, "config", (options) => [
7
7
  options.action,
8
8
  options.showSecrets && `--show-secrets`,
9
9
  options.secret && `--secret`,
@@ -5,7 +5,7 @@ var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkRXBT4QGRjs = require('./chunk-RXBT4QGR.js');
8
+ var _chunkQSMQDRL7js = require('./chunk-QSMQDRL7.js');
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
 
@@ -18,7 +18,7 @@ var _devkit = require('@nx/devkit');
18
18
  var _fs = require('fs');
19
19
  var _path = require('path');
20
20
  async function initGeneratorFn(tree, options, config) {
21
- const task = _chunkRXBT4QGRjs.initGenerator.call(void 0, tree, options);
21
+ const task = _chunkQSMQDRL7js.initGenerator.call(void 0, tree, options);
22
22
  _devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
23
23
  root: options.directory || "./deployment",
24
24
  projectType: "application",
@@ -54,14 +54,14 @@ async function initGeneratorFn(tree, options, config) {
54
54
  }
55
55
  return task;
56
56
  }
57
- var generator_default = _chunkRXBT4QGRjs.withRunGenerator.call(void 0,
57
+ var generator_default = _chunkQSMQDRL7js.withRunGenerator.call(void 0,
58
58
  "Initialize Storm Pulumi workspace",
59
59
  initGeneratorFn
60
60
  );
61
61
  function generateNewPulumiProject(tree, options, config) {
62
62
  return () => {
63
63
  const template = _chunkHUKXHFCAjs.getCloudTemplateName.call(void 0, options.provider);
64
- _chunkRXBT4QGRjs.run.call(void 0,
64
+ _chunkQSMQDRL7js.run.call(void 0,
65
65
  config,
66
66
  [
67
67
  `pulumi new ${template}`,
@@ -85,7 +85,7 @@ function loginToPulumi(tree, options, config) {
85
85
  if (options.login.startsWith("file://")) {
86
86
  options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
87
87
  }
88
- _chunkRXBT4QGRjs.run.call(void 0,
88
+ _chunkQSMQDRL7js.run.call(void 0,
89
89
  config,
90
90
  ["pulumi login", options.login].filter(Boolean).join(" "),
91
91
  _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-UATEWFF4.mjs";
4
+ } from "./chunk-W2WFAXRV.mjs";
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  import { join } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-KFBJ5IQ5.mjs";
3
+ } from "./chunk-IKKFXB34.mjs";
4
4
 
5
5
  // src/executors/config/executor.ts
6
6
  var executor_default = withPulumiExecutor("config", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
3
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
4
4
 
5
5
  // src/executors/preview/executor.ts
6
- var executor_default = _chunkZSDJN6O2js.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkQAP5CNOMjs.withPulumiExecutor.call(void 0,
7
7
  "preview",
8
8
  (options) => [
9
9
  options.stack && `--stack=${options.stack}`,
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkRXBT4QGRjs = require('./chunk-RXBT4QGR.js');
4
+ var _chunkQSMQDRL7js = require('./chunk-QSMQDRL7.js');
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  var _path = require('path');
8
8
  var _shelljs = require('shelljs');
9
9
  var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_options, context) => {
10
- return _chunkRXBT4QGRjs.withRunExecutor.call(void 0,
10
+ return _chunkQSMQDRL7js.withRunExecutor.call(void 0,
11
11
  `Pulumi \`${command}\` Command Executor`,
12
12
  async (options, context2, config) => {
13
13
  if (!_shelljs.which.call(void 0, "pulumi")) {
@@ -21,7 +21,7 @@ var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_
21
21
  );
22
22
  }
23
23
  const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
24
- _chunkRXBT4QGRjs.run.call(void 0,
24
+ _chunkQSMQDRL7js.run.call(void 0,
25
25
  config,
26
26
  ["pulumi", command, ...argsMapper(options)].filter(Boolean).join(" "),
27
27
  _path.join.call(void 0, config.workspaceRoot, options.root || sourceRoot),
@@ -1580,12 +1580,24 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
1580
1580
  }
1581
1581
  }
1582
1582
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1583
- result = applyDefaultConfig(
1584
- await stormWorkspaceConfigSchema.parseAsync(
1585
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
1586
- )
1587
- );
1588
- result.workspaceRoot ??= _workspaceRoot;
1583
+ const configInput = _defu2.default.call(void 0, configEnv, configFile, defaultConfig);
1584
+ try {
1585
+ result = applyDefaultConfig(
1586
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1587
+ );
1588
+ result.workspaceRoot ??= _workspaceRoot;
1589
+ } catch (error) {
1590
+ throw new Error(
1591
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _63 => _63.message]) ? `: ${error.message}` : ""}
1592
+
1593
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1594
+ configInput
1595
+ )}`,
1596
+ {
1597
+ cause: error
1598
+ }
1599
+ );
1600
+ }
1589
1601
  } else {
1590
1602
  result = _static_cache.data;
1591
1603
  }
@@ -1651,7 +1663,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1651
1663
  let options = _options;
1652
1664
  let config = {};
1653
1665
  try {
1654
- if (!_optionalChain([context, 'access', _63 => _63.projectsConfigurations, 'optionalAccess', _64 => _64.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1666
+ if (!_optionalChain([context, 'access', _64 => _64.projectsConfigurations, 'optionalAccess', _65 => _65.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1655
1667
  throw new Error(
1656
1668
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1657
1669
  );
@@ -1674,7 +1686,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1674
1686
  );
1675
1687
  config = await getConfig(workspaceRoot3);
1676
1688
  }
1677
- if (_optionalChain([executorOptions, 'optionalAccess', _65 => _65.hooks, 'optionalAccess', _66 => _66.applyDefaultOptions])) {
1689
+ if (_optionalChain([executorOptions, 'optionalAccess', _66 => _66.hooks, 'optionalAccess', _67 => _67.applyDefaultOptions])) {
1678
1690
  writeDebug("Running the applyDefaultOptions hook...", config);
1679
1691
  options = await Promise.resolve(
1680
1692
  executorOptions.hooks.applyDefaultOptions(options, config)
@@ -1702,7 +1714,7 @@ ${formatLogMessage(tokenized)}
1702
1714
  `,
1703
1715
  config
1704
1716
  );
1705
- if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.preProcess])) {
1717
+ if (_optionalChain([executorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.preProcess])) {
1706
1718
  writeDebug("Running the preProcess hook...", config);
1707
1719
  await Promise.resolve(
1708
1720
  executorOptions.hooks.preProcess(tokenized, config)
@@ -1710,7 +1722,7 @@ ${formatLogMessage(tokenized)}
1710
1722
  writeDebug("Completed the preProcess hook", config);
1711
1723
  }
1712
1724
  const ret = executorFn(tokenized, context, config);
1713
- if (_isFunction2(_optionalChain([ret, 'optionalAccess', _69 => _69.next]))) {
1725
+ if (_isFunction2(_optionalChain([ret, 'optionalAccess', _70 => _70.next]))) {
1714
1726
  const asyncGen = ret;
1715
1727
  for await (const iter of asyncGen) {
1716
1728
  void iter;
@@ -1719,7 +1731,7 @@ ${formatLogMessage(tokenized)}
1719
1731
  const result = await Promise.resolve(
1720
1732
  ret
1721
1733
  );
1722
- if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _70 => _70.error, 'optionalAccess', _71 => _71.message]) && typeof _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) === "string" && _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.name]) && typeof _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) === "string")) {
1734
+ if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _71 => _71.error, 'optionalAccess', _72 => _72.message]) && typeof _optionalChain([result, 'optionalAccess', _73 => _73.error, 'optionalAccess', _74 => _74.message]) === "string" && _optionalChain([result, 'optionalAccess', _75 => _75.error, 'optionalAccess', _76 => _76.name]) && typeof _optionalChain([result, 'optionalAccess', _77 => _77.error, 'optionalAccess', _78 => _78.name]) === "string")) {
1723
1735
  writeTrace(
1724
1736
  `Failure determined by the ${name} executor
1725
1737
  ${formatLogMessage(result)}`,
@@ -1727,10 +1739,10 @@ ${formatLogMessage(result)}`,
1727
1739
  );
1728
1740
  console.error(result);
1729
1741
  throw new Error(`The ${name} executor failed to run`, {
1730
- cause: _optionalChain([result, 'optionalAccess', _78 => _78.error])
1742
+ cause: _optionalChain([result, 'optionalAccess', _79 => _79.error])
1731
1743
  });
1732
1744
  }
1733
- if (_optionalChain([executorOptions, 'optionalAccess', _79 => _79.hooks, 'optionalAccess', _80 => _80.postProcess])) {
1745
+ if (_optionalChain([executorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.postProcess])) {
1734
1746
  writeDebug("Running the postProcess hook...", config);
1735
1747
  await Promise.resolve(executorOptions.hooks.postProcess(config));
1736
1748
  writeDebug("Completed the postProcess hook", config);
@@ -1760,7 +1772,7 @@ ${formatLogMessage(result)}`,
1760
1772
  };
1761
1773
  var _isFunction2 = (value) => {
1762
1774
  try {
1763
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _81 => _81.constructor]) && _optionalChain([value, 'optionalAccess', _82 => _82.call]) && _optionalChain([value, 'optionalAccess', _83 => _83.apply]));
1775
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _82 => _82.constructor]) && _optionalChain([value, 'optionalAccess', _83 => _83.call]) && _optionalChain([value, 'optionalAccess', _84 => _84.apply]));
1764
1776
  } catch (e) {
1765
1777
  return false;
1766
1778
  }
@@ -1786,7 +1798,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1786
1798
  );
1787
1799
  config = await getConfig(workspaceRoot3);
1788
1800
  }
1789
- if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.applyDefaultOptions])) {
1801
+ if (_optionalChain([generatorOptions, 'optionalAccess', _85 => _85.hooks, 'optionalAccess', _86 => _86.applyDefaultOptions])) {
1790
1802
  writeDebug("Running the applyDefaultOptions hook...", config);
1791
1803
  options = await Promise.resolve(
1792
1804
  generatorOptions.hooks.applyDefaultOptions(options, config)
@@ -1803,7 +1815,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1803
1815
  { workspaceRoot: tree.root, config },
1804
1816
  applyWorkspaceBaseTokens
1805
1817
  );
1806
- if (_optionalChain([generatorOptions, 'optionalAccess', _86 => _86.hooks, 'optionalAccess', _87 => _87.preProcess])) {
1818
+ if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.preProcess])) {
1807
1819
  writeDebug("Running the preProcess hook...", config);
1808
1820
  await Promise.resolve(
1809
1821
  generatorOptions.hooks.preProcess(tokenized, config)
@@ -1814,15 +1826,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1814
1826
  generatorFn(tree, tokenized, config)
1815
1827
  );
1816
1828
  if (result) {
1817
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _88 => _88.error, 'optionalAccess', _89 => _89.message]) && typeof _optionalChain([result, 'optionalAccess', _90 => _90.error, 'optionalAccess', _91 => _91.message]) === "string" && _optionalChain([result, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.name]) && typeof _optionalChain([result, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.name]) === "string") {
1829
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _89 => _89.error, 'optionalAccess', _90 => _90.message]) && typeof _optionalChain([result, 'optionalAccess', _91 => _91.error, 'optionalAccess', _92 => _92.message]) === "string" && _optionalChain([result, 'optionalAccess', _93 => _93.error, 'optionalAccess', _94 => _94.name]) && typeof _optionalChain([result, 'optionalAccess', _95 => _95.error, 'optionalAccess', _96 => _96.name]) === "string") {
1818
1830
  throw new Error(`The ${name} generator failed to run`, {
1819
- cause: _optionalChain([result, 'optionalAccess', _96 => _96.error])
1831
+ cause: _optionalChain([result, 'optionalAccess', _97 => _97.error])
1820
1832
  });
1821
1833
  } else if (result.success && result.data) {
1822
1834
  return result;
1823
1835
  }
1824
1836
  }
1825
- if (_optionalChain([generatorOptions, 'optionalAccess', _97 => _97.hooks, 'optionalAccess', _98 => _98.postProcess])) {
1837
+ if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.postProcess])) {
1826
1838
  writeDebug("Running the postProcess hook...", config);
1827
1839
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1828
1840
  writeDebug("Completed the postProcess hook", config);
@@ -1937,10 +1949,10 @@ async function cargoCommand(...args) {
1937
1949
  }
1938
1950
  function cargoCommandSync(args = "", options) {
1939
1951
  const normalizedOptions = {
1940
- stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _99 => _99.stdio]), () => ( "inherit")),
1952
+ stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _100 => _100.stdio]), () => ( "inherit")),
1941
1953
  env: {
1942
1954
  ...process.env,
1943
- ..._optionalChain([options, 'optionalAccess', _100 => _100.env])
1955
+ ..._optionalChain([options, 'optionalAccess', _101 => _101.env])
1944
1956
  }
1945
1957
  };
1946
1958
  try {
@@ -1973,7 +1985,7 @@ function cargoMetadata() {
1973
1985
  }
1974
1986
  function runProcess(processCmd, ...args) {
1975
1987
  const metadata = cargoMetadata();
1976
- const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _101 => _101.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
1988
+ const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _102 => _102.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
1977
1989
  return new Promise((resolve2) => {
1978
1990
  if (process.env.VERCEL) {
1979
1991
  return resolve2({ success: true });
@@ -2241,7 +2253,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2241
2253
  );
2242
2254
  const localPackages = [];
2243
2255
  for (const project of projectDependencies.dependencies.filter(
2244
- (dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _102 => _102.node, 'access', _103 => _103.data, 'optionalAccess', _104 => _104.root]) !== projectRoot && _optionalChain([dep, 'access', _105 => _105.node, 'access', _106 => _106.data, 'optionalAccess', _107 => _107.root]) !== workspaceRoot3
2256
+ (dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _103 => _103.node, 'access', _104 => _104.data, 'optionalAccess', _105 => _105.root]) !== projectRoot && _optionalChain([dep, 'access', _106 => _106.node, 'access', _107 => _107.data, 'optionalAccess', _108 => _108.root]) !== workspaceRoot3
2245
2257
  )) {
2246
2258
  const projectNode = project.node;
2247
2259
  if (projectNode.data.root) {
@@ -2273,13 +2285,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2273
2285
  const projectJson = JSON.parse(projectJsonFile);
2274
2286
  const projectName2 = projectJson.name;
2275
2287
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2276
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _108 => _108.projects, 'optionalAccess', _109 => _109[projectName2]])) {
2288
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _109 => _109.projects, 'optionalAccess', _110 => _110[projectName2]])) {
2277
2289
  throw new Error(
2278
2290
  "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."
2279
2291
  );
2280
2292
  }
2281
- const implicitDependencies = _optionalChain([projectConfigurations, 'access', _110 => _110.projects, 'optionalAccess', _111 => _111[projectName2], 'access', _112 => _112.implicitDependencies, 'optionalAccess', _113 => _113.reduce, 'call', _114 => _114((ret, dep) => {
2282
- if (_optionalChain([projectConfigurations, 'access', _115 => _115.projects, 'optionalAccess', _116 => _116[dep]])) {
2293
+ const implicitDependencies = _optionalChain([projectConfigurations, 'access', _111 => _111.projects, 'optionalAccess', _112 => _112[projectName2], 'access', _113 => _113.implicitDependencies, 'optionalAccess', _114 => _114.reduce, 'call', _115 => _115((ret, dep) => {
2294
+ if (_optionalChain([projectConfigurations, 'access', _116 => _116.projects, 'optionalAccess', _117 => _117[dep]])) {
2283
2295
  const depPackageJsonPath = joinPaths(
2284
2296
  workspaceRoot3,
2285
2297
  projectConfigurations.projects[dep].root,
@@ -2299,13 +2311,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2299
2311
  return ret;
2300
2312
  }, [])]);
2301
2313
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
2302
- if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _117 => _117.includes, 'call', _118 => _118(localPackage.name)]) && _optionalChain([packageJson, 'access', _119 => _119.devDependencies, 'optionalAccess', _120 => _120[localPackage.name]]) === void 0) {
2314
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _118 => _118.includes, 'call', _119 => _119(localPackage.name)]) && _optionalChain([packageJson, 'access', _120 => _120.devDependencies, 'optionalAccess', _121 => _121[localPackage.name]]) === void 0) {
2303
2315
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
2304
2316
  }
2305
2317
  return ret;
2306
2318
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
2307
2319
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
2308
- if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _121 => _121.includes, 'call', _122 => _122(localPackage.name)]) && _optionalChain([packageJson, 'access', _123 => _123.dependencies, 'optionalAccess', _124 => _124[localPackage.name]]) === void 0) {
2320
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _122 => _122.includes, 'call', _123 => _123(localPackage.name)]) && _optionalChain([packageJson, 'access', _124 => _124.dependencies, 'optionalAccess', _125 => _125[localPackage.name]]) === void 0) {
2309
2321
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
2310
2322
  }
2311
2323
  return ret;
@@ -2387,7 +2399,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
2387
2399
 
2388
2400
  // ../esbuild/src/assets.ts
2389
2401
  async function copyBuildAssets(context) {
2390
- if (!_optionalChain([context, 'access', _125 => _125.result, 'optionalAccess', _126 => _126.errors, 'access', _127 => _127.length]) && _optionalChain([context, 'access', _128 => _128.options, 'access', _129 => _129.assets, 'optionalAccess', _130 => _130.length])) {
2402
+ if (!_optionalChain([context, 'access', _126 => _126.result, 'optionalAccess', _127 => _127.errors, 'access', _128 => _128.length]) && _optionalChain([context, 'access', _129 => _129.options, 'access', _130 => _130.assets, 'optionalAccess', _131 => _131.length])) {
2391
2403
  writeDebug(
2392
2404
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
2393
2405
  context.workspaceConfig
@@ -2493,7 +2505,7 @@ async function resolveContext(userOptions) {
2493
2505
  const projectJson = JSON.parse(projectJsonFile);
2494
2506
  const projectName = projectJson.name || userOptions.name;
2495
2507
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2496
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _131 => _131.projects, 'optionalAccess', _132 => _132[projectName]])) {
2508
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _132 => _132.projects, 'optionalAccess', _133 => _133[projectName]])) {
2497
2509
  throw new Error(
2498
2510
  "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."
2499
2511
  );
@@ -2788,7 +2800,7 @@ async function executeTsup(context) {
2788
2800
 
2789
2801
  // ../esbuild/src/build.ts
2790
2802
  async function reportResults(context) {
2791
- if (_optionalChain([context, 'access', _133 => _133.result, 'optionalAccess', _134 => _134.errors, 'access', _135 => _135.length]) === 0) {
2803
+ if (_optionalChain([context, 'access', _134 => _134.result, 'optionalAccess', _135 => _135.errors, 'access', _136 => _136.length]) === 0) {
2792
2804
  if (context.result.warnings.length > 0) {
2793
2805
  writeWarning(
2794
2806
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
@@ -2799,7 +2811,7 @@ async function reportResults(context) {
2799
2811
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
2800
2812
  context.workspaceConfig
2801
2813
  );
2802
- } else if (_optionalChain([context, 'access', _136 => _136.result, 'optionalAccess', _137 => _137.errors]) && _optionalChain([context, 'access', _138 => _138.result, 'optionalAccess', _139 => _139.errors, 'access', _140 => _140.length]) > 0) {
2814
+ } else if (_optionalChain([context, 'access', _137 => _137.result, 'optionalAccess', _138 => _138.errors]) && _optionalChain([context, 'access', _139 => _139.result, 'optionalAccess', _140 => _140.errors, 'access', _141 => _141.length]) > 0) {
2803
2815
  writeError(
2804
2816
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
2805
2817
  context.workspaceConfig
@@ -2878,16 +2890,16 @@ async function build2(options) {
2878
2890
  // ../workspace-tools/src/executors/esbuild/executor.ts
2879
2891
  async function esbuildExecutorFn(options, context, config) {
2880
2892
  writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
2881
- if (!_optionalChain([context, 'access', _141 => _141.projectsConfigurations, 'optionalAccess', _142 => _142.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _143 => _143.projectsConfigurations, 'access', _144 => _144.projects, 'access', _145 => _145[context.projectName], 'optionalAccess', _146 => _146.root])) {
2893
+ if (!_optionalChain([context, 'access', _142 => _142.projectsConfigurations, 'optionalAccess', _143 => _143.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _144 => _144.projectsConfigurations, 'access', _145 => _145.projects, 'access', _146 => _146[context.projectName], 'optionalAccess', _147 => _147.root])) {
2882
2894
  throw new Error(
2883
2895
  "The Build process failed because the context is not valid. Please run this command from a workspace."
2884
2896
  );
2885
2897
  }
2886
2898
  await build2({
2887
2899
  ...options,
2888
- projectRoot: _optionalChain([context, 'access', _147 => _147.projectsConfigurations, 'access', _148 => _148.projects, 'optionalAccess', _149 => _149[context.projectName], 'access', _150 => _150.root]),
2900
+ projectRoot: _optionalChain([context, 'access', _148 => _148.projectsConfigurations, 'access', _149 => _149.projects, 'optionalAccess', _150 => _150[context.projectName], 'access', _151 => _151.root]),
2889
2901
  name: context.projectName,
2890
- sourceRoot: _optionalChain([context, 'access', _151 => _151.projectsConfigurations, 'access', _152 => _152.projects, 'optionalAccess', _153 => _153[context.projectName], 'optionalAccess', _154 => _154.sourceRoot]),
2902
+ sourceRoot: _optionalChain([context, 'access', _152 => _152.projectsConfigurations, 'access', _153 => _153.projects, 'optionalAccess', _154 => _154[context.projectName], 'optionalAccess', _155 => _155.sourceRoot]),
2891
2903
  format: options.format,
2892
2904
  platform: options.format
2893
2905
  });
@@ -3007,15 +3019,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
3007
3019
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
3008
3020
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
3009
3021
  async function sizeLimitExecutorFn(options, context, config) {
3010
- if (!_optionalChain([context, 'optionalAccess', _155 => _155.projectName]) || !_optionalChain([context, 'access', _156 => _156.projectsConfigurations, 'optionalAccess', _157 => _157.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
3022
+ if (!_optionalChain([context, 'optionalAccess', _156 => _156.projectName]) || !_optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'optionalAccess', _158 => _158.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
3011
3023
  throw new Error(
3012
3024
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
3013
3025
  );
3014
3026
  }
3015
3027
  writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
3016
3028
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
3017
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _158 => _158.projectsConfigurations, 'access', _159 => _159.projects, 'access', _160 => _160[context.projectName], 'optionalAccess', _161 => _161.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
3018
- _nullishCoalesce(_optionalChain([context, 'access', _162 => _162.projectsConfigurations, 'access', _163 => _163.projects, 'access', _164 => _164[context.projectName], 'optionalAccess', _165 => _165.root]), () => ( "./")),
3029
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _159 => _159.projectsConfigurations, 'access', _160 => _160.projects, 'access', _161 => _161[context.projectName], 'optionalAccess', _162 => _162.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
3030
+ _nullishCoalesce(_optionalChain([context, 'access', _163 => _163.projectsConfigurations, 'access', _164 => _164.projects, 'access', _165 => _165[context.projectName], 'optionalAccess', _166 => _166.root]), () => ( "./")),
3019
3031
  "src"
3020
3032
  )))
3021
3033
  }).then((result) => {
@@ -3085,7 +3097,7 @@ var executor_default8 = withRunExecutor(
3085
3097
  var _jiti = require('jiti');
3086
3098
  async function unbuildExecutorFn(options, context, config) {
3087
3099
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
3088
- if (!_optionalChain([context, 'access', _166 => _166.projectsConfigurations, 'optionalAccess', _167 => _167.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
3100
+ if (!_optionalChain([context, 'access', _167 => _167.projectsConfigurations, 'optionalAccess', _168 => _168.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
3089
3101
  throw new Error(
3090
3102
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
3091
3103
  );
@@ -3284,15 +3296,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3284
3296
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
3285
3297
  let repository = {
3286
3298
  type: "github",
3287
- url: _optionalChain([config, 'optionalAccess', _168 => _168.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _169 => _169.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _170 => _170.organization]) : _optionalChain([config, 'optionalAccess', _171 => _171.organization, 'optionalAccess', _172 => _172.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _173 => _173.namespace]) || _optionalChain([config, 'optionalAccess', _174 => _174.name]) || "repository"}.git`
3299
+ url: _optionalChain([config, 'optionalAccess', _169 => _169.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _170 => _170.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _171 => _171.organization]) : _optionalChain([config, 'optionalAccess', _172 => _172.organization, 'optionalAccess', _173 => _173.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _174 => _174.namespace]) || _optionalChain([config, 'optionalAccess', _175 => _175.name]) || "repository"}.git`
3288
3300
  };
3289
3301
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
3290
3302
  if (tree.exists("package.json")) {
3291
3303
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3292
- if (_optionalChain([packageJson, 'optionalAccess', _175 => _175.repository])) {
3304
+ if (_optionalChain([packageJson, 'optionalAccess', _176 => _176.repository])) {
3293
3305
  repository = packageJson.repository;
3294
3306
  }
3295
- if (_optionalChain([packageJson, 'optionalAccess', _176 => _176.description])) {
3307
+ if (_optionalChain([packageJson, 'optionalAccess', _177 => _177.description])) {
3296
3308
  description = packageJson.description;
3297
3309
  }
3298
3310
  }
@@ -3347,9 +3359,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3347
3359
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
3348
3360
  ...json,
3349
3361
  pnpm: {
3350
- ..._optionalChain([json, 'optionalAccess', _177 => _177.pnpm]),
3362
+ ..._optionalChain([json, 'optionalAccess', _178 => _178.pnpm]),
3351
3363
  overrides: {
3352
- ..._optionalChain([json, 'optionalAccess', _178 => _178.pnpm, 'optionalAccess', _179 => _179.overrides]),
3364
+ ..._optionalChain([json, 'optionalAccess', _179 => _179.pnpm, 'optionalAccess', _180 => _180.overrides]),
3353
3365
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3354
3366
  }
3355
3367
  }
@@ -3367,10 +3379,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3367
3379
  ]);
3368
3380
  if (tree.exists("package.json")) {
3369
3381
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3370
- if (_optionalChain([packageJson, 'optionalAccess', _180 => _180.repository])) {
3382
+ if (_optionalChain([packageJson, 'optionalAccess', _181 => _181.repository])) {
3371
3383
  repository = packageJson.repository;
3372
3384
  }
3373
- if (_optionalChain([packageJson, 'optionalAccess', _181 => _181.description])) {
3385
+ if (_optionalChain([packageJson, 'optionalAccess', _182 => _182.description])) {
3374
3386
  description = packageJson.description;
3375
3387
  }
3376
3388
  }
@@ -3407,22 +3419,22 @@ function getOutputPath(options) {
3407
3419
  function createProjectTsConfigJson(tree, options) {
3408
3420
  const tsconfig = {
3409
3421
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
3410
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _182 => _182.tsconfigOptions]), () => ( {})),
3422
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions]), () => ( {})),
3411
3423
  compilerOptions: {
3412
3424
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
3413
3425
  outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
3414
3426
  noEmit: true,
3415
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions, 'optionalAccess', _184 => _184.compilerOptions]), () => ( {}))
3427
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions, 'optionalAccess', _185 => _185.compilerOptions]), () => ( {}))
3416
3428
  },
3417
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.files]), () => ( []))],
3429
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _186 => _186.tsconfigOptions, 'optionalAccess', _187 => _187.files]), () => ( []))],
3418
3430
  include: [
3419
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _187 => _187.tsconfigOptions, 'optionalAccess', _188 => _188.include]), () => ( [])),
3431
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _188 => _188.tsconfigOptions, 'optionalAccess', _189 => _189.include]), () => ( [])),
3420
3432
  "src/**/*.ts",
3421
3433
  "src/**/*.js",
3422
3434
  "bin/**/*"
3423
3435
  ],
3424
3436
  exclude: [
3425
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _189 => _189.tsconfigOptions, 'optionalAccess', _190 => _190.exclude]), () => ( [])),
3437
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _190 => _190.tsconfigOptions, 'optionalAccess', _191 => _191.exclude]), () => ( [])),
3426
3438
  "jest.config.ts",
3427
3439
  "src/**/*.spec.ts",
3428
3440
  "src/**/*.test.ts"
@@ -3432,8 +3444,8 @@ function createProjectTsConfigJson(tree, options) {
3432
3444
  }
3433
3445
  async function normalizeOptions(tree, options, config) {
3434
3446
  let importPath = options.importPath;
3435
- if (!importPath && _optionalChain([config, 'optionalAccess', _191 => _191.namespace])) {
3436
- importPath = `@${_optionalChain([config, 'optionalAccess', _192 => _192.namespace])}/${options.name}`;
3447
+ if (!importPath && _optionalChain([config, 'optionalAccess', _192 => _192.namespace])) {
3448
+ importPath = `@${_optionalChain([config, 'optionalAccess', _193 => _193.namespace])}/${options.name}`;
3437
3449
  }
3438
3450
  if (options.publishable) {
3439
3451
  if (!importPath) {
@@ -3597,7 +3609,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
3597
3609
  );
3598
3610
  }
3599
3611
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
3600
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _193 => _193.workspaceRoot]), () => ( findWorkspaceRoot())),
3612
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _194 => _194.workspaceRoot]), () => ( findWorkspaceRoot())),
3601
3613
  options.outputFile.startsWith("./") ? "" : "./"
3602
3614
  );
3603
3615
  writeTrace(
@@ -1581,12 +1581,24 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
1581
1581
  }
1582
1582
  }
1583
1583
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1584
- result = applyDefaultConfig(
1585
- await stormWorkspaceConfigSchema.parseAsync(
1586
- defu2(configEnv, configFile, defaultConfig)
1587
- )
1588
- );
1589
- result.workspaceRoot ??= _workspaceRoot;
1584
+ const configInput = defu2(configEnv, configFile, defaultConfig);
1585
+ try {
1586
+ result = applyDefaultConfig(
1587
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1588
+ );
1589
+ result.workspaceRoot ??= _workspaceRoot;
1590
+ } catch (error) {
1591
+ throw new Error(
1592
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1593
+
1594
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1595
+ configInput
1596
+ )}`,
1597
+ {
1598
+ cause: error
1599
+ }
1600
+ );
1601
+ }
1590
1602
  } else {
1591
1603
  result = _static_cache.data;
1592
1604
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-KFBJ5IQ5.mjs";
3
+ } from "./chunk-IKKFXB34.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
3
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
4
4
 
5
5
  // src/executors/up/executor.ts
6
- var executor_default = _chunkZSDJN6O2js.withPulumiExecutor.call(void 0, "up", (options) => [
6
+ var executor_default = _chunkQAP5CNOMjs.withPulumiExecutor.call(void 0, "up", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-PF32IZUC.js');
3
- require('./chunk-GVL45UUV.js');
4
- require('./chunk-2AXVXQLX.js');
5
- require('./chunk-WVWQ63DQ.js');
6
- require('./chunk-5FF2VTEQ.js');
7
- require('./chunk-ZSDJN6O2.js');
8
- require('./chunk-RXBT4QGR.js');
2
+ require('./chunk-FQSH54FJ.js');
3
+ require('./chunk-OKJ4N376.js');
4
+ require('./chunk-2FK3A6DZ.js');
5
+ require('./chunk-ZA5BJM3G.js');
6
+ require('./chunk-FRFUXDVS.js');
7
+ require('./chunk-QAP5CNOM.js');
8
+ require('./chunk-QSMQDRL7.js');
9
9
  require('./chunk-3RG5ZIWI.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-7WJWSBOM.mjs";
3
- import "./chunk-ARMLL4XR.mjs";
4
- import "./chunk-2BJWKRZY.mjs";
5
- import "./chunk-DRRNDUUU.mjs";
6
- import "./chunk-3HZRQFRU.mjs";
7
- import "./chunk-KFBJ5IQ5.mjs";
8
- import "./chunk-UATEWFF4.mjs";
2
+ import "./chunk-X23YQAOZ.mjs";
3
+ import "./chunk-36RDF4QX.mjs";
4
+ import "./chunk-4RULOIQS.mjs";
5
+ import "./chunk-FLHQLFSC.mjs";
6
+ import "./chunk-IZLTQLJ6.mjs";
7
+ import "./chunk-IKKFXB34.mjs";
8
+ import "./chunk-W2WFAXRV.mjs";
9
9
  import "./chunk-ACCVWIOF.mjs";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunkYLUP4GPBjs = require('./chunk-YLUP4GPB.js');
4
+ var _chunkHA36H3ZMjs = require('./chunk-HA36H3ZM.js');
5
5
  require('./chunk-HUKXHFCA.js');
6
- require('./chunk-RXBT4QGR.js');
6
+ require('./chunk-QSMQDRL7.js');
7
7
  require('./chunk-3RG5ZIWI.js');
8
8
 
9
9
 
10
- exports.initGeneratorFn = _chunkYLUP4GPBjs.initGeneratorFn;
10
+ exports.initGeneratorFn = _chunkHA36H3ZMjs.initGeneratorFn;
@@ -1,9 +1,9 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-K6F4GVJR.mjs";
4
+ } from "./chunk-57TB2UNY.mjs";
5
5
  import "./chunk-KPFHCT4A.mjs";
6
- import "./chunk-UATEWFF4.mjs";
6
+ import "./chunk-W2WFAXRV.mjs";
7
7
  import "./chunk-ACCVWIOF.mjs";
8
8
  export {
9
9
  initGeneratorFn
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO62WWX4.js');
2
- require('./chunk-PF32IZUC.js');
3
- require('./chunk-GVL45UUV.js');
4
- require('./chunk-2AXVXQLX.js');
5
- require('./chunk-WVWQ63DQ.js');
2
+ require('./chunk-FQSH54FJ.js');
3
+ require('./chunk-OKJ4N376.js');
4
+ require('./chunk-2FK3A6DZ.js');
5
+ require('./chunk-ZA5BJM3G.js');
6
6
  require('./chunk-N2YKXZ5R.js');
7
7
 
8
8
 
9
- var _chunkYLUP4GPBjs = require('./chunk-YLUP4GPB.js');
9
+ var _chunkHA36H3ZMjs = require('./chunk-HA36H3ZM.js');
10
10
  require('./chunk-GUQOEBFW.js');
11
11
 
12
12
 
13
13
 
14
14
  var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
15
- require('./chunk-5FF2VTEQ.js');
15
+ require('./chunk-FRFUXDVS.js');
16
16
 
17
17
 
18
- var _chunkZSDJN6O2js = require('./chunk-ZSDJN6O2.js');
19
- require('./chunk-RXBT4QGR.js');
18
+ var _chunkQAP5CNOMjs = require('./chunk-QAP5CNOM.js');
19
+ require('./chunk-QSMQDRL7.js');
20
20
  require('./chunk-3RG5ZIWI.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
- exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.initGeneratorFn = _chunkYLUP4GPBjs.initGeneratorFn; exports.withPulumiExecutor = _chunkZSDJN6O2js.withPulumiExecutor;
26
+ exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.initGeneratorFn = _chunkHA36H3ZMjs.initGeneratorFn; exports.withPulumiExecutor = _chunkQAP5CNOMjs.withPulumiExecutor;
package/dist/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-7WJWSBOM.mjs";
3
- import "./chunk-ARMLL4XR.mjs";
4
- import "./chunk-2BJWKRZY.mjs";
5
- import "./chunk-DRRNDUUU.mjs";
2
+ import "./chunk-X23YQAOZ.mjs";
3
+ import "./chunk-36RDF4QX.mjs";
4
+ import "./chunk-4RULOIQS.mjs";
5
+ import "./chunk-FLHQLFSC.mjs";
6
6
  import "./chunk-23KFTIT2.mjs";
7
7
  import {
8
8
  initGeneratorFn
9
- } from "./chunk-K6F4GVJR.mjs";
9
+ } from "./chunk-57TB2UNY.mjs";
10
10
  import "./chunk-CA7S5MOH.mjs";
11
11
  import {
12
12
  Provider,
13
13
  getCloudTemplateName
14
14
  } from "./chunk-KPFHCT4A.mjs";
15
- import "./chunk-3HZRQFRU.mjs";
15
+ import "./chunk-IZLTQLJ6.mjs";
16
16
  import {
17
17
  withPulumiExecutor
18
- } from "./chunk-KFBJ5IQ5.mjs";
19
- import "./chunk-UATEWFF4.mjs";
18
+ } from "./chunk-IKKFXB34.mjs";
19
+ import "./chunk-W2WFAXRV.mjs";
20
20
  import "./chunk-ACCVWIOF.mjs";
21
21
  export {
22
22
  Provider,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZSDJN6O2js = require('../../chunk-ZSDJN6O2.js');
4
- require('../../chunk-RXBT4QGR.js');
3
+ var _chunkQAP5CNOMjs = require('../../chunk-QAP5CNOM.js');
4
+ require('../../chunk-QSMQDRL7.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.withPulumiExecutor = _chunkZSDJN6O2js.withPulumiExecutor;
8
+ exports.withPulumiExecutor = _chunkQAP5CNOMjs.withPulumiExecutor;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "../../chunk-KFBJ5IQ5.mjs";
4
- import "../../chunk-UATEWFF4.mjs";
3
+ } from "../../chunk-IKKFXB34.mjs";
4
+ import "../../chunk-W2WFAXRV.mjs";
5
5
  import "../../chunk-ACCVWIOF.mjs";
6
6
  export {
7
7
  withPulumiExecutor
@@ -5,11 +5,11 @@
5
5
  var _chunkHUKXHFCAjs = require('../../chunk-HUKXHFCA.js');
6
6
 
7
7
 
8
- var _chunkZSDJN6O2js = require('../../chunk-ZSDJN6O2.js');
9
- require('../../chunk-RXBT4QGR.js');
8
+ var _chunkQAP5CNOMjs = require('../../chunk-QAP5CNOM.js');
9
+ require('../../chunk-QSMQDRL7.js');
10
10
  require('../../chunk-3RG5ZIWI.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
- exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.withPulumiExecutor = _chunkZSDJN6O2js.withPulumiExecutor;
15
+ exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.withPulumiExecutor = _chunkQAP5CNOMjs.withPulumiExecutor;
@@ -5,8 +5,8 @@ import {
5
5
  } from "../../chunk-KPFHCT4A.mjs";
6
6
  import {
7
7
  withPulumiExecutor
8
- } from "../../chunk-KFBJ5IQ5.mjs";
9
- import "../../chunk-UATEWFF4.mjs";
8
+ } from "../../chunk-IKKFXB34.mjs";
9
+ import "../../chunk-W2WFAXRV.mjs";
10
10
  import "../../chunk-ACCVWIOF.mjs";
11
11
  export {
12
12
  Provider,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5FF2VTEQjs = require('../../../chunk-5FF2VTEQ.js');
4
- require('../../../chunk-ZSDJN6O2.js');
5
- require('../../../chunk-RXBT4QGR.js');
3
+ var _chunkFRFUXDVSjs = require('../../../chunk-FRFUXDVS.js');
4
+ require('../../../chunk-QAP5CNOM.js');
5
+ require('../../../chunk-QSMQDRL7.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.default = _chunk5FF2VTEQjs.executor_default;
9
+ exports.default = _chunkFRFUXDVSjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-3HZRQFRU.mjs";
4
- import "../../../chunk-KFBJ5IQ5.mjs";
5
- import "../../../chunk-UATEWFF4.mjs";
3
+ } from "../../../chunk-IZLTQLJ6.mjs";
4
+ import "../../../chunk-IKKFXB34.mjs";
5
+ import "../../../chunk-W2WFAXRV.mjs";
6
6
  import "../../../chunk-ACCVWIOF.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPF32IZUCjs = require('../../../chunk-PF32IZUC.js');
4
- require('../../../chunk-ZSDJN6O2.js');
5
- require('../../../chunk-RXBT4QGR.js');
3
+ var _chunkFQSH54FJjs = require('../../../chunk-FQSH54FJ.js');
4
+ require('../../../chunk-QAP5CNOM.js');
5
+ require('../../../chunk-QSMQDRL7.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.default = _chunkPF32IZUCjs.executor_default;
9
+ exports.default = _chunkFQSH54FJjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-7WJWSBOM.mjs";
4
- import "../../../chunk-KFBJ5IQ5.mjs";
5
- import "../../../chunk-UATEWFF4.mjs";
3
+ } from "../../../chunk-X23YQAOZ.mjs";
4
+ import "../../../chunk-IKKFXB34.mjs";
5
+ import "../../../chunk-W2WFAXRV.mjs";
6
6
  import "../../../chunk-ACCVWIOF.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGVL45UUVjs = require('../../../chunk-GVL45UUV.js');
4
- require('../../../chunk-ZSDJN6O2.js');
5
- require('../../../chunk-RXBT4QGR.js');
3
+ var _chunkOKJ4N376js = require('../../../chunk-OKJ4N376.js');
4
+ require('../../../chunk-QAP5CNOM.js');
5
+ require('../../../chunk-QSMQDRL7.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.default = _chunkGVL45UUVjs.executor_default;
9
+ exports.default = _chunkOKJ4N376js.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-ARMLL4XR.mjs";
4
- import "../../../chunk-KFBJ5IQ5.mjs";
5
- import "../../../chunk-UATEWFF4.mjs";
3
+ } from "../../../chunk-36RDF4QX.mjs";
4
+ import "../../../chunk-IKKFXB34.mjs";
5
+ import "../../../chunk-W2WFAXRV.mjs";
6
6
  import "../../../chunk-ACCVWIOF.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2AXVXQLXjs = require('../../../chunk-2AXVXQLX.js');
4
- require('../../../chunk-ZSDJN6O2.js');
5
- require('../../../chunk-RXBT4QGR.js');
3
+ var _chunk2FK3A6DZjs = require('../../../chunk-2FK3A6DZ.js');
4
+ require('../../../chunk-QAP5CNOM.js');
5
+ require('../../../chunk-QSMQDRL7.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.default = _chunk2AXVXQLXjs.executor_default;
9
+ exports.default = _chunk2FK3A6DZjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-2BJWKRZY.mjs";
4
- import "../../../chunk-KFBJ5IQ5.mjs";
5
- import "../../../chunk-UATEWFF4.mjs";
3
+ } from "../../../chunk-4RULOIQS.mjs";
4
+ import "../../../chunk-IKKFXB34.mjs";
5
+ import "../../../chunk-W2WFAXRV.mjs";
6
6
  import "../../../chunk-ACCVWIOF.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkWVWQ63DQjs = require('../../../chunk-WVWQ63DQ.js');
4
- require('../../../chunk-ZSDJN6O2.js');
5
- require('../../../chunk-RXBT4QGR.js');
3
+ var _chunkZA5BJM3Gjs = require('../../../chunk-ZA5BJM3G.js');
4
+ require('../../../chunk-QAP5CNOM.js');
5
+ require('../../../chunk-QSMQDRL7.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.default = _chunkWVWQ63DQjs.executor_default;
9
+ exports.default = _chunkZA5BJM3Gjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-DRRNDUUU.mjs";
4
- import "../../../chunk-KFBJ5IQ5.mjs";
5
- import "../../../chunk-UATEWFF4.mjs";
3
+ } from "../../../chunk-FLHQLFSC.mjs";
4
+ import "../../../chunk-IKKFXB34.mjs";
5
+ import "../../../chunk-W2WFAXRV.mjs";
6
6
  import "../../../chunk-ACCVWIOF.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYLUP4GPBjs = require('../../../chunk-YLUP4GPB.js');
4
+ var _chunkHA36H3ZMjs = require('../../../chunk-HA36H3ZM.js');
5
5
  require('../../../chunk-HUKXHFCA.js');
6
- require('../../../chunk-RXBT4QGR.js');
6
+ require('../../../chunk-QSMQDRL7.js');
7
7
  require('../../../chunk-3RG5ZIWI.js');
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkYLUP4GPBjs.generator_default; exports.initGeneratorFn = _chunkYLUP4GPBjs.initGeneratorFn;
11
+ exports.default = _chunkHA36H3ZMjs.generator_default; exports.initGeneratorFn = _chunkHA36H3ZMjs.initGeneratorFn;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-K6F4GVJR.mjs";
4
+ } from "../../../chunk-57TB2UNY.mjs";
5
5
  import "../../../chunk-KPFHCT4A.mjs";
6
- import "../../../chunk-UATEWFF4.mjs";
6
+ import "../../../chunk-W2WFAXRV.mjs";
7
7
  import "../../../chunk-ACCVWIOF.mjs";
8
8
  export {
9
9
  generator_default as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pulumi-tools",
3
- "version": "0.13.37",
3
+ "version": "0.13.38",
4
4
  "type": "commonjs",
5
5
  "description": "Tools for managing Pulumi infrastructure within a Nx workspace.",
6
6
  "repository": {
@@ -136,5 +136,5 @@
136
136
  "publishConfig": { "access": "public" },
137
137
  "executors": "./executors.json",
138
138
  "generators": "./generators.json",
139
- "gitHead": "dbe7708d23dd5fd8289baed4045d6580b4067496"
139
+ "gitHead": "edec74f2b1c6174fae001ac240bb291296c84fab"
140
140
  }