@storm-software/pulumi-tools 0.13.43 → 0.14.2

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 (64) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-GASM5JOT.js → chunk-2COR4O2A.js} +2 -2
  4. package/dist/{chunk-EU64W3TI.mjs → chunk-3RRBWED7.mjs} +1 -1
  5. package/dist/chunk-4PQ4X4J4.js +1 -0
  6. package/dist/{chunk-KPFHCT4A.mjs → chunk-5TB4HFDP.mjs} +2 -1
  7. package/dist/chunk-7I63VQP3.js +120 -0
  8. package/dist/{chunk-PYYI7CA3.mjs → chunk-A4XAUTRY.mjs} +1 -1
  9. package/dist/{chunk-7G2M77VJ.js → chunk-CKYKA4C5.js} +7 -7
  10. package/dist/{chunk-6UIH6RCK.mjs → chunk-GKAE6MZP.mjs} +1 -1
  11. package/dist/{chunk-3OKHNU6F.js → chunk-GPFQHBDZ.js} +2 -2
  12. package/dist/{chunk-RZX26I3L.mjs → chunk-IL253CB6.mjs} +1 -1
  13. package/dist/{chunk-NPVDHO4H.mjs → chunk-K2ERWMQT.mjs} +1 -1
  14. package/dist/{chunk-VXI4LNUL.js → chunk-L2ZLJKEH.js} +2 -2
  15. package/dist/{chunk-HUKXHFCA.js → chunk-QDPXTR73.js} +2 -1
  16. package/dist/{chunk-ATM7EADM.js → chunk-QYIKBG3O.js} +2 -2
  17. package/dist/{chunk-USQAM3BN.mjs → chunk-RD3K5LCE.mjs} +2 -2
  18. package/dist/{chunk-PIK42X67.mjs → chunk-RNQY5FSU.mjs} +9 -5
  19. package/dist/{chunk-L7FXGR6F.mjs → chunk-RX6GREPG.mjs} +1 -1
  20. package/dist/chunk-S6XCS2TA.mjs +120 -0
  21. package/dist/{chunk-ACCVWIOF.mjs → chunk-UG757LXR.mjs} +1 -1
  22. package/dist/{chunk-3QQTCBVN.js → chunk-X6EJT62T.js} +3 -3
  23. package/dist/chunk-Z35MXE2Z.mjs +0 -0
  24. package/dist/{chunk-EVILNGJA.js → chunk-ZHAA5HRP.js} +2 -2
  25. package/dist/{chunk-I3D4CDB5.js → chunk-ZRM5UBCA.js} +71 -67
  26. package/dist/executors.js +7 -7
  27. package/dist/executors.mjs +8 -8
  28. package/dist/generators.js +4 -4
  29. package/dist/generators.mjs +4 -4
  30. package/dist/index.d.mts +7 -0
  31. package/dist/index.d.ts +7 -0
  32. package/dist/index.js +26 -11
  33. package/dist/index.mjs +25 -10
  34. package/dist/src/base/base-executor.js +3 -3
  35. package/dist/src/base/base-executor.mjs +3 -3
  36. package/dist/src/base/index.js +4 -4
  37. package/dist/src/base/index.mjs +4 -4
  38. package/dist/src/base/providers.d.mts +3 -2
  39. package/dist/src/base/providers.d.ts +3 -2
  40. package/dist/src/base/providers.js +2 -2
  41. package/dist/src/base/providers.mjs +2 -2
  42. package/dist/src/executors/config/executor.js +4 -4
  43. package/dist/src/executors/config/executor.mjs +4 -4
  44. package/dist/src/executors/import/executor.js +4 -4
  45. package/dist/src/executors/import/executor.mjs +4 -4
  46. package/dist/src/executors/preview/executor.js +4 -4
  47. package/dist/src/executors/preview/executor.mjs +4 -4
  48. package/dist/src/executors/refresh/executor.js +4 -4
  49. package/dist/src/executors/refresh/executor.mjs +4 -4
  50. package/dist/src/executors/up/executor.js +4 -4
  51. package/dist/src/executors/up/executor.mjs +4 -4
  52. package/dist/src/generators/init/generator.js +4 -4
  53. package/dist/src/generators/init/generator.mjs +4 -4
  54. package/dist/src/lib/aws/index.d.mts +7 -0
  55. package/dist/src/lib/aws/index.d.ts +7 -0
  56. package/dist/src/lib/aws/index.js +19 -0
  57. package/dist/src/lib/aws/index.mjs +19 -0
  58. package/dist/src/lib/aws/providers.d.mts +60 -0
  59. package/dist/src/lib/aws/providers.d.ts +60 -0
  60. package/dist/src/lib/aws/providers.js +18 -0
  61. package/dist/src/lib/aws/providers.mjs +18 -0
  62. package/dist/tsup.config.js +1 -0
  63. package/dist/tsup.config.mjs +2 -1
  64. package/package.json +44 -9
@@ -650,16 +650,20 @@ var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
650
650
  var chalkDefault = {
651
651
  hex: (_) => (message) => message,
652
652
  bgHex: (_) => ({
653
- whiteBright: (message) => message
653
+ whiteBright: (message) => message,
654
+ white: (message) => message
654
655
  }),
656
+ white: (message) => message,
655
657
  whiteBright: (message) => message,
656
658
  gray: (message) => message,
657
659
  bold: {
658
660
  hex: (_) => (message) => message,
659
661
  bgHex: (_) => ({
660
- whiteBright: (message) => message
662
+ whiteBright: (message) => message,
663
+ white: (message) => message
661
664
  }),
662
- whiteBright: (message) => message
665
+ whiteBright: (message) => message,
666
+ white: (message) => message
663
667
  },
664
668
  dim: {
665
669
  hex: (_) => (message) => message,
@@ -668,7 +672,7 @@ var chalkDefault = {
668
672
  };
669
673
  var getChalk = () => {
670
674
  let _chalk = _chalk3.default;
671
- if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
675
+ if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
672
676
  _chalk = chalkDefault;
673
677
  }
674
678
  return _chalk;
@@ -756,7 +760,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
756
760
 
757
761
  // ../config-tools/src/logger/console.ts
758
762
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
759
- const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
763
+ const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
760
764
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
761
765
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
762
766
  return (_) => {
@@ -872,7 +876,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
872
876
  };
873
877
  var _isFunction = (value) => {
874
878
  try {
875
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
879
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
876
880
  } catch (e) {
877
881
  return false;
878
882
  }
@@ -891,7 +895,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
891
895
  if (result.includes(`{${optionKey}}`)) {
892
896
  result = result.replaceAll(
893
897
  `{${optionKey}}`,
894
- _optionalChain([tokenParams, 'optionalAccess', _30 => _30[optionKey]]) || ""
898
+ _optionalChain([tokenParams, 'optionalAccess', _31 => _31[optionKey]]) || ""
895
899
  );
896
900
  }
897
901
  }
@@ -913,7 +917,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
913
917
  if (result.includes("{workspaceRoot}")) {
914
918
  result = result.replaceAll(
915
919
  "{workspaceRoot}",
916
- _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _31 => _31.config, 'optionalAccess', _32 => _32.workspaceRoot]))), () => ( findWorkspaceRoot()))
920
+ _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _32 => _32.config, 'optionalAccess', _33 => _33.workspaceRoot]))), () => ( findWorkspaceRoot()))
917
921
  );
918
922
  }
919
923
  return result;
@@ -958,7 +962,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
958
962
  cwd: workspacePath,
959
963
  packageJson: true,
960
964
  name: fileName,
961
- envName: _optionalChain([fileName, 'optionalAccess', _33 => _33.toUpperCase, 'call', _34 => _34()]),
965
+ envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
962
966
  jitiOptions: {
963
967
  debug: false,
964
968
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -972,7 +976,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
972
976
  cwd: workspacePath,
973
977
  packageJson: true,
974
978
  name: fileName,
975
- envName: _optionalChain([fileName, 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()]),
979
+ envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
976
980
  jitiOptions: {
977
981
  debug: false,
978
982
  fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
@@ -1006,7 +1010,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1006
1010
  )
1007
1011
  );
1008
1012
  for (const result2 of results) {
1009
- if (_optionalChain([result2, 'optionalAccess', _37 => _37.config]) && _optionalChain([result2, 'optionalAccess', _38 => _38.configFile]) && Object.keys(result2.config).length > 0) {
1013
+ if (_optionalChain([result2, 'optionalAccess', _38 => _38.config]) && _optionalChain([result2, 'optionalAccess', _39 => _39.configFile]) && Object.keys(result2.config).length > 0) {
1010
1014
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1011
1015
  writeTrace(
1012
1016
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
@@ -1215,16 +1219,16 @@ var getBaseThemeColorConfigEnv = (prefix) => {
1215
1219
  var setExtensionEnv = (extensionName, extension) => {
1216
1220
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
1217
1221
  if (extension[key]) {
1218
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _39 => _39.replace, 'call', _40 => _40(
1222
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _40 => _40.replace, 'call', _41 => _41(
1219
1223
  /([A-Z])+/g,
1220
- (input) => input ? _optionalChain([input, 'access', _41 => _41[0], 'optionalAccess', _42 => _42.toUpperCase, 'call', _43 => _43()]) + input.slice(1) : ""
1221
- ), 'access', _44 => _44.split, 'call', _45 => _45(/(?=[A-Z])|[.\-\s_]/), 'access', _46 => _46.map, 'call', _47 => _47((x) => x.toLowerCase())]), () => ( []));
1224
+ (input) => input ? _optionalChain([input, 'access', _42 => _42[0], 'optionalAccess', _43 => _43.toUpperCase, 'call', _44 => _44()]) + input.slice(1) : ""
1225
+ ), 'access', _45 => _45.split, 'call', _46 => _46(/(?=[A-Z])|[.\-\s_]/), 'access', _47 => _47.map, 'call', _48 => _48((x) => x.toLowerCase())]), () => ( []));
1222
1226
  let extensionKey;
1223
1227
  if (result.length === 0) {
1224
1228
  return;
1225
1229
  }
1226
1230
  if (result.length === 1) {
1227
- extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _48 => _48[0], 'optionalAccess', _49 => _49.toUpperCase, 'call', _50 => _50()]), () => ( ""));
1231
+ extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.toUpperCase, 'call', _51 => _51()]), () => ( ""));
1228
1232
  } else {
1229
1233
  extensionKey = result.reduce((ret, part) => {
1230
1234
  return `${ret}_${part.toLowerCase()}`;
@@ -1397,7 +1401,7 @@ var setConfigEnv = (config) => {
1397
1401
  process.env.NODE_ENV = config.mode;
1398
1402
  process.env.ENVIRONMENT = config.mode;
1399
1403
  }
1400
- if (_optionalChain([config, 'access', _51 => _51.colors, 'optionalAccess', _52 => _52.base, 'optionalAccess', _53 => _53.light]) || _optionalChain([config, 'access', _54 => _54.colors, 'optionalAccess', _55 => _55.base, 'optionalAccess', _56 => _56.dark])) {
1404
+ if (_optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
1401
1405
  for (const key of Object.keys(config.colors)) {
1402
1406
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1403
1407
  }
@@ -1458,7 +1462,7 @@ var setConfigEnv = (config) => {
1458
1462
  }
1459
1463
  };
1460
1464
  var setThemeColorConfigEnv = (prefix, config) => {
1461
- return _optionalChain([config, 'optionalAccess', _57 => _57.light, 'optionalAccess', _58 => _58.brand]) || _optionalChain([config, 'optionalAccess', _59 => _59.dark, 'optionalAccess', _60 => _60.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1465
+ return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1462
1466
  };
1463
1467
  var setSingleThemeColorConfigEnv = (prefix, config) => {
1464
1468
  if (config.dark) {
@@ -1560,7 +1564,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
1560
1564
  var _static_cache = void 0;
1561
1565
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
1562
1566
  let result;
1563
- if (!_optionalChain([_static_cache, 'optionalAccess', _61 => _61.data]) || !_optionalChain([_static_cache, 'optionalAccess', _62 => _62.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1567
+ if (!_optionalChain([_static_cache, 'optionalAccess', _62 => _62.data]) || !_optionalChain([_static_cache, 'optionalAccess', _63 => _63.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1564
1568
  let _workspaceRoot = workspaceRoot3;
1565
1569
  if (!_workspaceRoot) {
1566
1570
  _workspaceRoot = findWorkspaceRoot();
@@ -1591,7 +1595,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
1591
1595
  result.workspaceRoot ??= _workspaceRoot;
1592
1596
  } catch (error) {
1593
1597
  throw new Error(
1594
- `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _63 => _63.message]) ? `: ${error.message}` : ""}
1598
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _64 => _64.message]) ? `: ${error.message}` : ""}
1595
1599
 
1596
1600
  Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1597
1601
  configInput
@@ -1666,7 +1670,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1666
1670
  let options = _options;
1667
1671
  let config = {};
1668
1672
  try {
1669
- if (!_optionalChain([context, 'access', _64 => _64.projectsConfigurations, 'optionalAccess', _65 => _65.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1673
+ if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1670
1674
  throw new Error(
1671
1675
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1672
1676
  );
@@ -1689,7 +1693,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1689
1693
  );
1690
1694
  config = await getConfig(workspaceRoot3);
1691
1695
  }
1692
- if (_optionalChain([executorOptions, 'optionalAccess', _66 => _66.hooks, 'optionalAccess', _67 => _67.applyDefaultOptions])) {
1696
+ if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
1693
1697
  writeDebug("Running the applyDefaultOptions hook...", config);
1694
1698
  options = await Promise.resolve(
1695
1699
  executorOptions.hooks.applyDefaultOptions(options, config)
@@ -1717,7 +1721,7 @@ ${formatLogMessage(tokenized)}
1717
1721
  `,
1718
1722
  config
1719
1723
  );
1720
- if (_optionalChain([executorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.preProcess])) {
1724
+ if (_optionalChain([executorOptions, 'optionalAccess', _69 => _69.hooks, 'optionalAccess', _70 => _70.preProcess])) {
1721
1725
  writeDebug("Running the preProcess hook...", config);
1722
1726
  await Promise.resolve(
1723
1727
  executorOptions.hooks.preProcess(tokenized, config)
@@ -1725,7 +1729,7 @@ ${formatLogMessage(tokenized)}
1725
1729
  writeDebug("Completed the preProcess hook", config);
1726
1730
  }
1727
1731
  const ret = executorFn(tokenized, context, config);
1728
- if (_isFunction2(_optionalChain([ret, 'optionalAccess', _70 => _70.next]))) {
1732
+ if (_isFunction2(_optionalChain([ret, 'optionalAccess', _71 => _71.next]))) {
1729
1733
  const asyncGen = ret;
1730
1734
  for await (const iter of asyncGen) {
1731
1735
  void iter;
@@ -1734,7 +1738,7 @@ ${formatLogMessage(tokenized)}
1734
1738
  const result = await Promise.resolve(
1735
1739
  ret
1736
1740
  );
1737
- 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")) {
1741
+ if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) && typeof _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.message]) === "string" && _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) && typeof _optionalChain([result, 'optionalAccess', _78 => _78.error, 'optionalAccess', _79 => _79.name]) === "string")) {
1738
1742
  writeTrace(
1739
1743
  `Failure determined by the ${name} executor
1740
1744
  ${formatLogMessage(result)}`,
@@ -1742,10 +1746,10 @@ ${formatLogMessage(result)}`,
1742
1746
  );
1743
1747
  console.error(result);
1744
1748
  throw new Error(`The ${name} executor failed to run`, {
1745
- cause: _optionalChain([result, 'optionalAccess', _79 => _79.error])
1749
+ cause: _optionalChain([result, 'optionalAccess', _80 => _80.error])
1746
1750
  });
1747
1751
  }
1748
- if (_optionalChain([executorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.postProcess])) {
1752
+ if (_optionalChain([executorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
1749
1753
  writeDebug("Running the postProcess hook...", config);
1750
1754
  await Promise.resolve(executorOptions.hooks.postProcess(config));
1751
1755
  writeDebug("Completed the postProcess hook", config);
@@ -1775,7 +1779,7 @@ ${formatLogMessage(result)}`,
1775
1779
  };
1776
1780
  var _isFunction2 = (value) => {
1777
1781
  try {
1778
- 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]));
1782
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _83 => _83.constructor]) && _optionalChain([value, 'optionalAccess', _84 => _84.call]) && _optionalChain([value, 'optionalAccess', _85 => _85.apply]));
1779
1783
  } catch (e) {
1780
1784
  return false;
1781
1785
  }
@@ -1801,7 +1805,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1801
1805
  );
1802
1806
  config = await getConfig(workspaceRoot3);
1803
1807
  }
1804
- if (_optionalChain([generatorOptions, 'optionalAccess', _85 => _85.hooks, 'optionalAccess', _86 => _86.applyDefaultOptions])) {
1808
+ if (_optionalChain([generatorOptions, 'optionalAccess', _86 => _86.hooks, 'optionalAccess', _87 => _87.applyDefaultOptions])) {
1805
1809
  writeDebug("Running the applyDefaultOptions hook...", config);
1806
1810
  options = await Promise.resolve(
1807
1811
  generatorOptions.hooks.applyDefaultOptions(options, config)
@@ -1818,7 +1822,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1818
1822
  { workspaceRoot: tree.root, config },
1819
1823
  applyWorkspaceBaseTokens
1820
1824
  );
1821
- if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.preProcess])) {
1825
+ if (_optionalChain([generatorOptions, 'optionalAccess', _88 => _88.hooks, 'optionalAccess', _89 => _89.preProcess])) {
1822
1826
  writeDebug("Running the preProcess hook...", config);
1823
1827
  await Promise.resolve(
1824
1828
  generatorOptions.hooks.preProcess(tokenized, config)
@@ -1829,15 +1833,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1829
1833
  generatorFn(tree, tokenized, config)
1830
1834
  );
1831
1835
  if (result) {
1832
- 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") {
1836
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _90 => _90.error, 'optionalAccess', _91 => _91.message]) && typeof _optionalChain([result, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.message]) === "string" && _optionalChain([result, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.name]) && typeof _optionalChain([result, 'optionalAccess', _96 => _96.error, 'optionalAccess', _97 => _97.name]) === "string") {
1833
1837
  throw new Error(`The ${name} generator failed to run`, {
1834
- cause: _optionalChain([result, 'optionalAccess', _97 => _97.error])
1838
+ cause: _optionalChain([result, 'optionalAccess', _98 => _98.error])
1835
1839
  });
1836
1840
  } else if (result.success && result.data) {
1837
1841
  return result;
1838
1842
  }
1839
1843
  }
1840
- if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.postProcess])) {
1844
+ if (_optionalChain([generatorOptions, 'optionalAccess', _99 => _99.hooks, 'optionalAccess', _100 => _100.postProcess])) {
1841
1845
  writeDebug("Running the postProcess hook...", config);
1842
1846
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1843
1847
  writeDebug("Completed the postProcess hook", config);
@@ -1952,10 +1956,10 @@ async function cargoCommand(...args) {
1952
1956
  }
1953
1957
  function cargoCommandSync(args = "", options) {
1954
1958
  const normalizedOptions = {
1955
- stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _100 => _100.stdio]), () => ( "inherit")),
1959
+ stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _101 => _101.stdio]), () => ( "inherit")),
1956
1960
  env: {
1957
1961
  ...process.env,
1958
- ..._optionalChain([options, 'optionalAccess', _101 => _101.env])
1962
+ ..._optionalChain([options, 'optionalAccess', _102 => _102.env])
1959
1963
  }
1960
1964
  };
1961
1965
  try {
@@ -1988,7 +1992,7 @@ function cargoMetadata() {
1988
1992
  }
1989
1993
  function runProcess(processCmd, ...args) {
1990
1994
  const metadata = cargoMetadata();
1991
- const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _102 => _102.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
1995
+ const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _103 => _103.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
1992
1996
  return new Promise((resolve2) => {
1993
1997
  if (process.env.VERCEL) {
1994
1998
  return resolve2({ success: true });
@@ -2256,7 +2260,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2256
2260
  );
2257
2261
  const localPackages = [];
2258
2262
  for (const project of projectDependencies.dependencies.filter(
2259
- (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
2263
+ (dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _104 => _104.node, 'access', _105 => _105.data, 'optionalAccess', _106 => _106.root]) !== projectRoot && _optionalChain([dep, 'access', _107 => _107.node, 'access', _108 => _108.data, 'optionalAccess', _109 => _109.root]) !== workspaceRoot3
2260
2264
  )) {
2261
2265
  const projectNode = project.node;
2262
2266
  if (projectNode.data.root) {
@@ -2288,13 +2292,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2288
2292
  const projectJson = JSON.parse(projectJsonFile);
2289
2293
  const projectName2 = projectJson.name;
2290
2294
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2291
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _109 => _109.projects, 'optionalAccess', _110 => _110[projectName2]])) {
2295
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _110 => _110.projects, 'optionalAccess', _111 => _111[projectName2]])) {
2292
2296
  throw new Error(
2293
2297
  "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."
2294
2298
  );
2295
2299
  }
2296
- 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) => {
2297
- if (_optionalChain([projectConfigurations, 'access', _116 => _116.projects, 'optionalAccess', _117 => _117[dep]])) {
2300
+ const implicitDependencies = _optionalChain([projectConfigurations, 'access', _112 => _112.projects, 'optionalAccess', _113 => _113[projectName2], 'access', _114 => _114.implicitDependencies, 'optionalAccess', _115 => _115.reduce, 'call', _116 => _116((ret, dep) => {
2301
+ if (_optionalChain([projectConfigurations, 'access', _117 => _117.projects, 'optionalAccess', _118 => _118[dep]])) {
2298
2302
  const depPackageJsonPath = joinPaths(
2299
2303
  workspaceRoot3,
2300
2304
  projectConfigurations.projects[dep].root,
@@ -2314,13 +2318,13 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
2314
2318
  return ret;
2315
2319
  }, [])]);
2316
2320
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
2317
- 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) {
2321
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _119 => _119.includes, 'call', _120 => _120(localPackage.name)]) && _optionalChain([packageJson, 'access', _121 => _121.devDependencies, 'optionalAccess', _122 => _122[localPackage.name]]) === void 0) {
2318
2322
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
2319
2323
  }
2320
2324
  return ret;
2321
2325
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
2322
2326
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
2323
- 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) {
2327
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _123 => _123.includes, 'call', _124 => _124(localPackage.name)]) && _optionalChain([packageJson, 'access', _125 => _125.dependencies, 'optionalAccess', _126 => _126[localPackage.name]]) === void 0) {
2324
2328
  ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
2325
2329
  }
2326
2330
  return ret;
@@ -2402,7 +2406,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
2402
2406
 
2403
2407
  // ../esbuild/src/assets.ts
2404
2408
  async function copyBuildAssets(context) {
2405
- 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])) {
2409
+ if (!_optionalChain([context, 'access', _127 => _127.result, 'optionalAccess', _128 => _128.errors, 'access', _129 => _129.length]) && _optionalChain([context, 'access', _130 => _130.options, 'access', _131 => _131.assets, 'optionalAccess', _132 => _132.length])) {
2406
2410
  writeDebug(
2407
2411
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
2408
2412
  context.workspaceConfig
@@ -2508,7 +2512,7 @@ async function resolveContext(userOptions) {
2508
2512
  const projectJson = JSON.parse(projectJsonFile);
2509
2513
  const projectName = projectJson.name || userOptions.name;
2510
2514
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2511
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _132 => _132.projects, 'optionalAccess', _133 => _133[projectName]])) {
2515
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _133 => _133.projects, 'optionalAccess', _134 => _134[projectName]])) {
2512
2516
  throw new Error(
2513
2517
  "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."
2514
2518
  );
@@ -2803,7 +2807,7 @@ async function executeTsup(context) {
2803
2807
 
2804
2808
  // ../esbuild/src/build.ts
2805
2809
  async function reportResults(context) {
2806
- if (_optionalChain([context, 'access', _134 => _134.result, 'optionalAccess', _135 => _135.errors, 'access', _136 => _136.length]) === 0) {
2810
+ if (_optionalChain([context, 'access', _135 => _135.result, 'optionalAccess', _136 => _136.errors, 'access', _137 => _137.length]) === 0) {
2807
2811
  if (context.result.warnings.length > 0) {
2808
2812
  writeWarning(
2809
2813
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
@@ -2814,7 +2818,7 @@ async function reportResults(context) {
2814
2818
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
2815
2819
  context.workspaceConfig
2816
2820
  );
2817
- } 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) {
2821
+ } else if (_optionalChain([context, 'access', _138 => _138.result, 'optionalAccess', _139 => _139.errors]) && _optionalChain([context, 'access', _140 => _140.result, 'optionalAccess', _141 => _141.errors, 'access', _142 => _142.length]) > 0) {
2818
2822
  writeError(
2819
2823
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
2820
2824
  context.workspaceConfig
@@ -2893,16 +2897,16 @@ async function build2(options) {
2893
2897
  // ../workspace-tools/src/executors/esbuild/executor.ts
2894
2898
  async function esbuildExecutorFn(options, context, config) {
2895
2899
  writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
2896
- 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])) {
2900
+ if (!_optionalChain([context, 'access', _143 => _143.projectsConfigurations, 'optionalAccess', _144 => _144.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _145 => _145.projectsConfigurations, 'access', _146 => _146.projects, 'access', _147 => _147[context.projectName], 'optionalAccess', _148 => _148.root])) {
2897
2901
  throw new Error(
2898
2902
  "The Build process failed because the context is not valid. Please run this command from a workspace."
2899
2903
  );
2900
2904
  }
2901
2905
  await build2({
2902
2906
  ...options,
2903
- projectRoot: _optionalChain([context, 'access', _148 => _148.projectsConfigurations, 'access', _149 => _149.projects, 'optionalAccess', _150 => _150[context.projectName], 'access', _151 => _151.root]),
2907
+ projectRoot: _optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'optionalAccess', _151 => _151[context.projectName], 'access', _152 => _152.root]),
2904
2908
  name: context.projectName,
2905
- sourceRoot: _optionalChain([context, 'access', _152 => _152.projectsConfigurations, 'access', _153 => _153.projects, 'optionalAccess', _154 => _154[context.projectName], 'optionalAccess', _155 => _155.sourceRoot]),
2909
+ sourceRoot: _optionalChain([context, 'access', _153 => _153.projectsConfigurations, 'access', _154 => _154.projects, 'optionalAccess', _155 => _155[context.projectName], 'optionalAccess', _156 => _156.sourceRoot]),
2906
2910
  format: options.format,
2907
2911
  platform: options.format
2908
2912
  });
@@ -3022,15 +3026,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
3022
3026
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
3023
3027
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
3024
3028
  async function sizeLimitExecutorFn(options, context, config) {
3025
- if (!_optionalChain([context, 'optionalAccess', _156 => _156.projectName]) || !_optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'optionalAccess', _158 => _158.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
3029
+ if (!_optionalChain([context, 'optionalAccess', _157 => _157.projectName]) || !_optionalChain([context, 'access', _158 => _158.projectsConfigurations, 'optionalAccess', _159 => _159.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
3026
3030
  throw new Error(
3027
3031
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
3028
3032
  );
3029
3033
  }
3030
3034
  writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
3031
3035
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
3032
- 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,
3033
- _nullishCoalesce(_optionalChain([context, 'access', _163 => _163.projectsConfigurations, 'access', _164 => _164.projects, 'access', _165 => _165[context.projectName], 'optionalAccess', _166 => _166.root]), () => ( "./")),
3036
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _160 => _160.projectsConfigurations, 'access', _161 => _161.projects, 'access', _162 => _162[context.projectName], 'optionalAccess', _163 => _163.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
3037
+ _nullishCoalesce(_optionalChain([context, 'access', _164 => _164.projectsConfigurations, 'access', _165 => _165.projects, 'access', _166 => _166[context.projectName], 'optionalAccess', _167 => _167.root]), () => ( "./")),
3034
3038
  "src"
3035
3039
  )))
3036
3040
  }).then((result) => {
@@ -3100,7 +3104,7 @@ var executor_default8 = withRunExecutor(
3100
3104
  var _jiti = require('jiti');
3101
3105
  async function unbuildExecutorFn(options, context, config) {
3102
3106
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
3103
- if (!_optionalChain([context, 'access', _167 => _167.projectsConfigurations, 'optionalAccess', _168 => _168.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
3107
+ if (!_optionalChain([context, 'access', _168 => _168.projectsConfigurations, 'optionalAccess', _169 => _169.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
3104
3108
  throw new Error(
3105
3109
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
3106
3110
  );
@@ -3299,15 +3303,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3299
3303
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
3300
3304
  let repository = {
3301
3305
  type: "github",
3302
- 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`
3306
+ url: _optionalChain([config, 'optionalAccess', _170 => _170.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _171 => _171.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _172 => _172.organization]) : _optionalChain([config, 'optionalAccess', _173 => _173.organization, 'optionalAccess', _174 => _174.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _175 => _175.namespace]) || _optionalChain([config, 'optionalAccess', _176 => _176.name]) || "repository"}.git`
3303
3307
  };
3304
3308
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
3305
3309
  if (tree.exists("package.json")) {
3306
3310
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3307
- if (_optionalChain([packageJson, 'optionalAccess', _176 => _176.repository])) {
3311
+ if (_optionalChain([packageJson, 'optionalAccess', _177 => _177.repository])) {
3308
3312
  repository = packageJson.repository;
3309
3313
  }
3310
- if (_optionalChain([packageJson, 'optionalAccess', _177 => _177.description])) {
3314
+ if (_optionalChain([packageJson, 'optionalAccess', _178 => _178.description])) {
3311
3315
  description = packageJson.description;
3312
3316
  }
3313
3317
  }
@@ -3362,9 +3366,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3362
3366
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
3363
3367
  ...json,
3364
3368
  pnpm: {
3365
- ..._optionalChain([json, 'optionalAccess', _178 => _178.pnpm]),
3369
+ ..._optionalChain([json, 'optionalAccess', _179 => _179.pnpm]),
3366
3370
  overrides: {
3367
- ..._optionalChain([json, 'optionalAccess', _179 => _179.pnpm, 'optionalAccess', _180 => _180.overrides]),
3371
+ ..._optionalChain([json, 'optionalAccess', _180 => _180.pnpm, 'optionalAccess', _181 => _181.overrides]),
3368
3372
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3369
3373
  }
3370
3374
  }
@@ -3382,10 +3386,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3382
3386
  ]);
3383
3387
  if (tree.exists("package.json")) {
3384
3388
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3385
- if (_optionalChain([packageJson, 'optionalAccess', _181 => _181.repository])) {
3389
+ if (_optionalChain([packageJson, 'optionalAccess', _182 => _182.repository])) {
3386
3390
  repository = packageJson.repository;
3387
3391
  }
3388
- if (_optionalChain([packageJson, 'optionalAccess', _182 => _182.description])) {
3392
+ if (_optionalChain([packageJson, 'optionalAccess', _183 => _183.description])) {
3389
3393
  description = packageJson.description;
3390
3394
  }
3391
3395
  }
@@ -3422,22 +3426,22 @@ function getOutputPath(options) {
3422
3426
  function createProjectTsConfigJson(tree, options) {
3423
3427
  const tsconfig = {
3424
3428
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
3425
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions]), () => ( {})),
3429
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions]), () => ( {})),
3426
3430
  compilerOptions: {
3427
3431
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
3428
3432
  outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
3429
3433
  noEmit: true,
3430
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions, 'optionalAccess', _185 => _185.compilerOptions]), () => ( {}))
3434
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.compilerOptions]), () => ( {}))
3431
3435
  },
3432
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _186 => _186.tsconfigOptions, 'optionalAccess', _187 => _187.files]), () => ( []))],
3436
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _187 => _187.tsconfigOptions, 'optionalAccess', _188 => _188.files]), () => ( []))],
3433
3437
  include: [
3434
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _188 => _188.tsconfigOptions, 'optionalAccess', _189 => _189.include]), () => ( [])),
3438
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _189 => _189.tsconfigOptions, 'optionalAccess', _190 => _190.include]), () => ( [])),
3435
3439
  "src/**/*.ts",
3436
3440
  "src/**/*.js",
3437
3441
  "bin/**/*"
3438
3442
  ],
3439
3443
  exclude: [
3440
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _190 => _190.tsconfigOptions, 'optionalAccess', _191 => _191.exclude]), () => ( [])),
3444
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _191 => _191.tsconfigOptions, 'optionalAccess', _192 => _192.exclude]), () => ( [])),
3441
3445
  "jest.config.ts",
3442
3446
  "src/**/*.spec.ts",
3443
3447
  "src/**/*.test.ts"
@@ -3447,8 +3451,8 @@ function createProjectTsConfigJson(tree, options) {
3447
3451
  }
3448
3452
  async function normalizeOptions(tree, options, config) {
3449
3453
  let importPath = options.importPath;
3450
- if (!importPath && _optionalChain([config, 'optionalAccess', _192 => _192.namespace])) {
3451
- importPath = `@${_optionalChain([config, 'optionalAccess', _193 => _193.namespace])}/${options.name}`;
3454
+ if (!importPath && _optionalChain([config, 'optionalAccess', _193 => _193.namespace])) {
3455
+ importPath = `@${_optionalChain([config, 'optionalAccess', _194 => _194.namespace])}/${options.name}`;
3452
3456
  }
3453
3457
  if (options.publishable) {
3454
3458
  if (!importPath) {
@@ -3612,7 +3616,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
3612
3616
  );
3613
3617
  }
3614
3618
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
3615
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _194 => _194.workspaceRoot]), () => ( findWorkspaceRoot())),
3619
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _195 => _195.workspaceRoot]), () => ( findWorkspaceRoot())),
3616
3620
  options.outputFile.startsWith("./") ? "" : "./"
3617
3621
  );
3618
3622
  writeTrace(
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-ATM7EADM.js');
3
- require('./chunk-3OKHNU6F.js');
4
- require('./chunk-GASM5JOT.js');
5
- require('./chunk-EVILNGJA.js');
6
- require('./chunk-VXI4LNUL.js');
7
- require('./chunk-3QQTCBVN.js');
8
- require('./chunk-I3D4CDB5.js');
2
+ require('./chunk-QYIKBG3O.js');
3
+ require('./chunk-GPFQHBDZ.js');
4
+ require('./chunk-2COR4O2A.js');
5
+ require('./chunk-ZHAA5HRP.js');
6
+ require('./chunk-L2ZLJKEH.js');
7
+ require('./chunk-X6EJT62T.js');
8
+ require('./chunk-ZRM5UBCA.js');
9
9
  require('./chunk-3RG5ZIWI.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-PYYI7CA3.mjs";
3
- import "./chunk-6UIH6RCK.mjs";
4
- import "./chunk-EU64W3TI.mjs";
5
- import "./chunk-NPVDHO4H.mjs";
6
- import "./chunk-L7FXGR6F.mjs";
7
- import "./chunk-RZX26I3L.mjs";
8
- import "./chunk-PIK42X67.mjs";
9
- import "./chunk-ACCVWIOF.mjs";
2
+ import "./chunk-A4XAUTRY.mjs";
3
+ import "./chunk-GKAE6MZP.mjs";
4
+ import "./chunk-3RRBWED7.mjs";
5
+ import "./chunk-K2ERWMQT.mjs";
6
+ import "./chunk-RX6GREPG.mjs";
7
+ import "./chunk-IL253CB6.mjs";
8
+ import "./chunk-RNQY5FSU.mjs";
9
+ import "./chunk-UG757LXR.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 _chunk7G2M77VJjs = require('./chunk-7G2M77VJ.js');
5
- require('./chunk-HUKXHFCA.js');
6
- require('./chunk-I3D4CDB5.js');
4
+ var _chunkCKYKA4C5js = require('./chunk-CKYKA4C5.js');
5
+ require('./chunk-QDPXTR73.js');
6
+ require('./chunk-ZRM5UBCA.js');
7
7
  require('./chunk-3RG5ZIWI.js');
8
8
 
9
9
 
10
- exports.initGeneratorFn = _chunk7G2M77VJjs.initGeneratorFn;
10
+ exports.initGeneratorFn = _chunkCKYKA4C5js.initGeneratorFn;
@@ -1,10 +1,10 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-USQAM3BN.mjs";
5
- import "./chunk-KPFHCT4A.mjs";
6
- import "./chunk-PIK42X67.mjs";
7
- import "./chunk-ACCVWIOF.mjs";
4
+ } from "./chunk-RD3K5LCE.mjs";
5
+ import "./chunk-5TB4HFDP.mjs";
6
+ import "./chunk-RNQY5FSU.mjs";
7
+ import "./chunk-UG757LXR.mjs";
8
8
  export {
9
9
  initGeneratorFn
10
10
  };
package/dist/index.d.mts CHANGED
@@ -6,9 +6,16 @@ export { U as UpExecutorSchema } from './schema.d-BCkJFwHO.mjs';
6
6
  export { I as InitGeneratorSchema, i as initGeneratorFn } from './generators-CdJ1t-Yr.mjs';
7
7
  export { NormalizedPulumiExecutorOptions, PulumiCommandOptions, PulumiExecutorSchema, withPulumiExecutor } from './src/base/base-executor.mjs';
8
8
  export { Provider, getCloudTemplateName } from './src/base/providers.mjs';
9
+ export { CustomResourceOptions, ec2Instance, getAWSTemplateName, getProviderOpts, securityGroup, subnet, vpc } from './src/lib/aws/providers.mjs';
9
10
  import '@storm-software/workspace-tools';
10
11
  import '@nx/devkit';
11
12
  import '@storm-software/config';
12
13
  import '@storm-software/workspace-tools/base/base-generator.schema.d';
13
14
  import '@storm-software/config-tools';
14
15
  import '@storm-software/workspace-tools/base/base-executor.schema.d';
16
+ import '@pulumi/aws/ec2/instance';
17
+ import '@pulumi/aws/ec2/securityGroup';
18
+ import '@pulumi/aws/ec2/defaultSubnet';
19
+ import '@pulumi/aws/ec2/defaultVpc';
20
+ import '@pulumi/aws';
21
+ import '@pulumi/pulumi';