@storm-software/pulumi-tools 0.7.55 → 0.7.57

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 (67) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-3OZWQ5QE.mjs → chunk-4NF2PRG4.mjs} +1 -1
  4. package/dist/{chunk-TVI5BFN7.mjs → chunk-6KIZNAAU.mjs} +1 -1
  5. package/dist/{chunk-I4V7RFTZ.mjs → chunk-6KVTPT65.mjs} +1 -1
  6. package/dist/{chunk-E5YDCCYW.mjs → chunk-DXITZGRH.mjs} +1 -1
  7. package/dist/{chunk-DK54HN4K.mjs → chunk-EESN3HPG.mjs} +1 -1
  8. package/dist/{chunk-2UH4RRNW.js → chunk-EFMZVZ6K.js} +2 -2
  9. package/dist/{chunk-5IVEJ34A.mjs → chunk-FDU3AJWV.mjs} +1 -1
  10. package/dist/{chunk-HJVG56K3.mjs → chunk-GPMABELW.mjs} +211 -37
  11. package/dist/{chunk-5C2GNELZ.js → chunk-SW4GRZ6N.js} +5 -5
  12. package/dist/{chunk-U4TQH734.js → chunk-T3ADQ7YJ.js} +2 -2
  13. package/dist/{chunk-YCVKG6JS.js → chunk-TBXWIKJK.js} +2 -2
  14. package/dist/{chunk-X3NRJ4N7.js → chunk-VDV3O757.js} +219 -45
  15. package/dist/{chunk-HFYFHIZK.mjs → chunk-VP25FFGH.mjs} +1 -1
  16. package/dist/{chunk-763TSWDB.js → chunk-WINGLI7X.js} +3 -3
  17. package/dist/{chunk-PJF55MGD.js → chunk-WLYLSCF7.js} +2 -2
  18. package/dist/{chunk-2GIUPJHS.js → chunk-WUDUZC6D.js} +2 -2
  19. package/dist/executors.d.mts +1 -1
  20. package/dist/executors.d.ts +1 -1
  21. package/dist/executors.js +7 -7
  22. package/dist/executors.mjs +7 -7
  23. package/dist/{generators-C1_XT3qk.d.mts → generators-8hNcjX5A.d.mts} +1 -1
  24. package/dist/{generators-CIhk3saj.d.ts → generators-BziLQ-SK.d.ts} +1 -1
  25. package/dist/generators.d.mts +2 -2
  26. package/dist/generators.d.ts +2 -2
  27. package/dist/generators.js +3 -3
  28. package/dist/generators.mjs +2 -2
  29. package/dist/index.d.mts +2 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +9 -9
  32. package/dist/index.mjs +8 -8
  33. package/dist/src/base/base-executor.d.mts +1 -1
  34. package/dist/src/base/base-executor.d.ts +1 -1
  35. package/dist/src/base/base-executor.js +3 -3
  36. package/dist/src/base/base-executor.mjs +2 -2
  37. package/dist/src/base/index.d.mts +1 -1
  38. package/dist/src/base/index.d.ts +1 -1
  39. package/dist/src/base/index.js +3 -3
  40. package/dist/src/base/index.mjs +2 -2
  41. package/dist/src/executors/config/executor.d.mts +1 -1
  42. package/dist/src/executors/config/executor.d.ts +1 -1
  43. package/dist/src/executors/config/executor.js +4 -4
  44. package/dist/src/executors/config/executor.mjs +3 -3
  45. package/dist/src/executors/import/executor.d.mts +1 -1
  46. package/dist/src/executors/import/executor.d.ts +1 -1
  47. package/dist/src/executors/import/executor.js +4 -4
  48. package/dist/src/executors/import/executor.mjs +3 -3
  49. package/dist/src/executors/preview/executor.d.mts +1 -1
  50. package/dist/src/executors/preview/executor.d.ts +1 -1
  51. package/dist/src/executors/preview/executor.js +4 -4
  52. package/dist/src/executors/preview/executor.mjs +3 -3
  53. package/dist/src/executors/refresh/executor.d.mts +1 -1
  54. package/dist/src/executors/refresh/executor.d.ts +1 -1
  55. package/dist/src/executors/refresh/executor.js +4 -4
  56. package/dist/src/executors/refresh/executor.mjs +3 -3
  57. package/dist/src/executors/up/executor.d.mts +1 -1
  58. package/dist/src/executors/up/executor.d.ts +1 -1
  59. package/dist/src/executors/up/executor.js +4 -4
  60. package/dist/src/executors/up/executor.mjs +3 -3
  61. package/dist/src/generators/init/generator.d.mts +2 -2
  62. package/dist/src/generators/init/generator.d.ts +2 -2
  63. package/dist/src/generators/init/generator.js +3 -3
  64. package/dist/src/generators/init/generator.mjs +2 -2
  65. package/dist/{types-D7IMa2M3.d.mts → types-D-xLCTdY.d.mts} +2 -2
  66. package/dist/{types-D7IMa2M3.d.ts → types-D-xLCTdY.d.ts} +2 -2
  67. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
3
 
4
4
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -210,7 +210,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
210
210
  "staging",
211
211
  "production"
212
212
  ]).default("production").describe("The current runtime environment mode for the package"),
213
- workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
213
+ workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
214
214
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
215
215
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
216
216
  directories: WorkspaceDirectoryConfigSchema,
@@ -873,7 +873,7 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
873
873
  }
874
874
  }
875
875
  }
876
- if (!config) {
876
+ if (!config || Object.keys(config).length === 0) {
877
877
  return void 0;
878
878
  }
879
879
  config.configFile = configFile;
@@ -934,12 +934,12 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
934
934
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
935
935
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
936
936
  directories: {
937
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
938
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
939
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
940
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
941
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
942
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
937
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
938
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
939
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
940
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
941
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
942
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
943
943
  },
944
944
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
945
945
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -1159,21 +1159,27 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1159
1159
  if (config.directories) {
1160
1160
  if (!config.skipCache && config.directories.cache) {
1161
1161
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
1162
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1162
1163
  }
1163
1164
  if (config.directories.data) {
1164
1165
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1166
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1165
1167
  }
1166
1168
  if (config.directories.config) {
1167
1169
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
1170
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1168
1171
  }
1169
1172
  if (config.directories.temp) {
1170
1173
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1174
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1171
1175
  }
1172
1176
  if (config.directories.log) {
1173
1177
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1178
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1174
1179
  }
1175
1180
  if (config.directories.build) {
1176
1181
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
1182
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1177
1183
  }
1178
1184
  }
1179
1185
  if (config.skipCache !== void 0) {
@@ -1341,7 +1347,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1341
1347
  // ../config-tools/src/create-storm-config.ts
1342
1348
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1343
1349
  var _static_cache = void 0;
1344
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
1350
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
1345
1351
  let result;
1346
1352
  if (!_optionalChain([_static_cache, 'optionalAccess', _57 => _57.data]) || !_optionalChain([_static_cache, 'optionalAccess', _58 => _58.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1347
1353
  let _workspaceRoot = workspaceRoot3;
@@ -1349,13 +1355,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1349
1355
  _workspaceRoot = findWorkspaceRoot();
1350
1356
  }
1351
1357
  const configEnv = getConfigEnv();
1352
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1353
1358
  const configFile = await getConfigFile(_workspaceRoot);
1354
- if (!configFile && !skipLogs) {
1355
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1356
- logLevel: "all"
1357
- });
1359
+ if (!configFile) {
1360
+ if (!skipLogs) {
1361
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
1362
+ logLevel: "all"
1363
+ });
1364
+ }
1365
+ if (useDefault === false) {
1366
+ return void 0;
1367
+ }
1358
1368
  }
1369
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1359
1370
  result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
1360
1371
  result.workspaceRoot ??= _workspaceRoot;
1361
1372
  } else {
@@ -1388,7 +1399,7 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
1388
1399
  return extension;
1389
1400
  }, "createConfigExtension");
1390
1401
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot3, skipLogs = false) => {
1391
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs);
1402
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs, true);
1392
1403
  setConfigEnv(config);
1393
1404
  if (!skipLogs && !config.skipConfigLogging) {
1394
1405
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -2422,7 +2433,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitio
2422
2433
  var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
2423
2434
  name: "storm:tsc",
2424
2435
  setup(build4) {
2425
- if (options.emitTypes === false) {
2436
+ if (options.dts === false) {
2426
2437
  return;
2427
2438
  }
2428
2439
  build4.onStart(async () => {
@@ -2474,7 +2485,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
2474
2485
  var DEFAULT_BUILD_OPTIONS = {
2475
2486
  platform: "node",
2476
2487
  target: "node22",
2477
- format: "cjs",
2488
+ format: "esm",
2478
2489
  external: [],
2479
2490
  logLevel: "error",
2480
2491
  tsconfig: "tsconfig.json",
@@ -2623,6 +2634,155 @@ var shebangRenderer = {
2623
2634
  }
2624
2635
  };
2625
2636
 
2637
+ // ../esbuild/src/tsc.ts
2638
+ var _bundlerequire = require('bundle-require');
2639
+
2640
+
2641
+
2642
+ var _typescript = require('typescript'); var _typescript2 = _interopRequireDefault(_typescript);
2643
+ function ensureTempDeclarationDir(workspaceConfig) {
2644
+ const root = workspaceConfig.directories.temp || _path.join.call(void 0, workspaceConfig.workspaceRoot, "tmp");
2645
+ const dirPath = _path.join.call(void 0, root, ".tsc", "declaration");
2646
+ if (_fs.existsSync.call(void 0, dirPath)) {
2647
+ return dirPath;
2648
+ }
2649
+ _fs.mkdirSync.call(void 0, dirPath, {
2650
+ recursive: true
2651
+ });
2652
+ const gitIgnorePath = _path.join.call(void 0, root, ".tsc", ".gitignore");
2653
+ _fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
2654
+ return dirPath;
2655
+ }
2656
+ _chunk3GQAWCBQjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
2657
+ function slash(path7) {
2658
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
2659
+ if (isExtendedLengthPath) {
2660
+ return path7;
2661
+ }
2662
+ return path7.replace(/\\/g, "/");
2663
+ }
2664
+ _chunk3GQAWCBQjs.__name.call(void 0, slash, "slash");
2665
+ function toAbsolutePath(workspaceConfig, p, cwd) {
2666
+ if (_path.isAbsolute.call(void 0, p)) {
2667
+ return p;
2668
+ }
2669
+ return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
2670
+ }
2671
+ _chunk3GQAWCBQjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
2672
+ var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
2673
+ static {
2674
+ _chunk3GQAWCBQjs.__name.call(void 0, this, "AliasPool");
2675
+ }
2676
+ __init() {this.seen = /* @__PURE__ */ new Set()}
2677
+ assign(name) {
2678
+ let suffix = 0;
2679
+ let alias = name === "default" ? "default_alias" : name;
2680
+ while (this.seen.has(alias)) {
2681
+ alias = `${name}_alias_${++suffix}`;
2682
+ if (suffix >= 1e3) {
2683
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
2684
+ }
2685
+ }
2686
+ this.seen.add(alias);
2687
+ return alias;
2688
+ }
2689
+ }, _class);
2690
+ function getExports(workspaceConfig, program, fileMapping) {
2691
+ const checker = program.getTypeChecker();
2692
+ const aliasPool = new AliasPool();
2693
+ const assignAlias = aliasPool.assign.bind(aliasPool);
2694
+ function extractExports(sourceFileName) {
2695
+ const cwd = program.getCurrentDirectory();
2696
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
2697
+ const sourceFile = program.getSourceFile(sourceFileName);
2698
+ if (!sourceFile) {
2699
+ return [];
2700
+ }
2701
+ const destFileName = fileMapping.get(sourceFileName);
2702
+ if (!destFileName) {
2703
+ return [];
2704
+ }
2705
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
2706
+ if (!moduleSymbol) {
2707
+ return [];
2708
+ }
2709
+ const exports = [];
2710
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
2711
+ exportSymbols.forEach((symbol) => {
2712
+ const name = symbol.getName();
2713
+ exports.push({
2714
+ kind: "named",
2715
+ sourceFileName,
2716
+ destFileName,
2717
+ name,
2718
+ alias: assignAlias(name),
2719
+ isTypeOnly: false
2720
+ });
2721
+ });
2722
+ return exports;
2723
+ }
2724
+ _chunk3GQAWCBQjs.__name.call(void 0, extractExports, "extractExports");
2725
+ return program.getRootFileNames().flatMap(extractExports);
2726
+ }
2727
+ _chunk3GQAWCBQjs.__name.call(void 0, getExports, "getExports");
2728
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
2729
+ const fileMapping = /* @__PURE__ */ new Map();
2730
+ const writeFile3 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
2731
+ const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _142 => _142[0]]);
2732
+ const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _143 => _143.fileName]);
2733
+ if (sourceFileName && !fileName.endsWith(".map")) {
2734
+ const cwd = program.getCurrentDirectory();
2735
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
2736
+ }
2737
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
2738
+ }, "writeFile");
2739
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
2740
+ const diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
2741
+ const diagnosticMessages = [];
2742
+ diagnostics.forEach((diagnostic) => {
2743
+ if (diagnostic.file) {
2744
+ const { line, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
2745
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2746
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
2747
+ } else {
2748
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2749
+ diagnosticMessages.push(message);
2750
+ }
2751
+ });
2752
+ const diagnosticMessage = diagnosticMessages.join("\n");
2753
+ if (diagnosticMessage) {
2754
+ writeError(`Failed to emit declaration files.
2755
+
2756
+ ${diagnosticMessage}`, workspaceConfig);
2757
+ throw new Error("TypeScript compilation failed");
2758
+ }
2759
+ return fileMapping;
2760
+ }
2761
+ _chunk3GQAWCBQjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
2762
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
2763
+ const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
2764
+ if (!rawTsconfig) {
2765
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
2766
+ }
2767
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
2768
+ const parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(_defu2.default.call(void 0, {
2769
+ compilerOptions: {
2770
+ // Enable declaration emit and disable javascript emit
2771
+ noEmit: false,
2772
+ declaration: true,
2773
+ declarationMap: true,
2774
+ declarationDir,
2775
+ emitDeclarationOnly: true
2776
+ }
2777
+ }, _nullishCoalesce(_optionalChain([tsconfigRaw, 'optionalAccess', _144 => _144.compilerOptions]), () => ( {})), _nullishCoalesce(rawTsconfig.data, () => ( {}))), _typescript2.default.sys, tsconfig ? _path.dirname.call(void 0, tsconfig) : "./");
2778
+ const options = parsedTsconfig.options;
2779
+ const host = _typescript2.default.createCompilerHost(options);
2780
+ const program = _typescript2.default.createProgram(parsedTsconfig.fileNames, options, host);
2781
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
2782
+ return getExports(workspaceConfig, program, fileMapping);
2783
+ }
2784
+ _chunk3GQAWCBQjs.__name.call(void 0, emitDts, "emitDts");
2785
+
2626
2786
  // ../esbuild/src/utilities/get-entry-points.ts
2627
2787
 
2628
2788
  var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
@@ -2751,7 +2911,7 @@ function pipeSync(fn, ...fns) {
2751
2911
  return (...args) => {
2752
2912
  let result = fn(...args);
2753
2913
  for (let i = 0; result !== skip && i < fns.length; ++i) {
2754
- result = _optionalChain([fns, 'access', _142 => _142[i], 'optionalCall', _143 => _143(result)]);
2914
+ result = _optionalChain([fns, 'access', _145 => _145[i], 'optionalCall', _146 => _146(result)]);
2755
2915
  }
2756
2916
  return result;
2757
2917
  };
@@ -2761,7 +2921,7 @@ function pipeAsync(fn, ...fns) {
2761
2921
  return async (...args) => {
2762
2922
  let result = await fn(...args);
2763
2923
  for (let i = 0; result !== skip && i < fns.length; ++i) {
2764
- result = await _optionalChain([fns, 'access', _144 => _144[i], 'optionalCall', _145 => _145(result)]);
2924
+ result = await _optionalChain([fns, 'access', _147 => _147[i], 'optionalCall', _148 => _148(result)]);
2765
2925
  }
2766
2926
  return result;
2767
2927
  };
@@ -2791,7 +2951,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
2791
2951
  const projectJson = JSON.parse(projectJsonFile);
2792
2952
  const projectName = projectJson.name;
2793
2953
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
2794
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _146 => _146.projects, 'optionalAccess', _147 => _147[projectName]])) {
2954
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _149 => _149.projects, 'optionalAccess', _150 => _150[projectName]])) {
2795
2955
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
2796
2956
  }
2797
2957
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -2955,6 +3115,7 @@ async function executeEsBuild(context2) {
2955
3115
  options.inject === {}) {
2956
3116
  delete options.inject;
2957
3117
  }
3118
+ delete options.dts;
2958
3119
  delete options.env;
2959
3120
  delete options.name;
2960
3121
  delete options.assets;
@@ -2990,8 +3151,18 @@ ${formatLogMessage({
2990
3151
  return context2;
2991
3152
  }
2992
3153
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
3154
+ async function executeTypescript(context2) {
3155
+ if (_optionalChain([context2, 'access', _151 => _151.result, 'optionalAccess', _152 => _152.errors, 'access', _153 => _153.length]) === 0 && context2.options.dts) {
3156
+ writeDebug(` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
3157
+ const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
3158
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
3159
+ stopwatch();
3160
+ }
3161
+ return context2;
3162
+ }
3163
+ _chunk3GQAWCBQjs.__name.call(void 0, executeTypescript, "executeTypescript");
2993
3164
  async function copyBuildAssets(context2) {
2994
- if (_optionalChain([context2, 'access', _148 => _148.result, 'optionalAccess', _149 => _149.errors, 'access', _150 => _150.length]) === 0) {
3165
+ if (_optionalChain([context2, 'access', _154 => _154.result, 'optionalAccess', _155 => _155.errors, 'access', _156 => _156.length]) === 0) {
2995
3166
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
2996
3167
  const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
2997
3168
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -3001,11 +3172,14 @@ async function copyBuildAssets(context2) {
3001
3172
  }
3002
3173
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
3003
3174
  async function reportResults(context2) {
3004
- if (_optionalChain([context2, 'access', _151 => _151.result, 'optionalAccess', _152 => _152.errors, 'access', _153 => _153.length]) === 0) {
3175
+ if (_optionalChain([context2, 'access', _157 => _157.result, 'optionalAccess', _158 => _158.errors, 'access', _159 => _159.length]) === 0) {
3005
3176
  if (context2.result.warnings.length > 0) {
3006
3177
  writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
3007
3178
  }
3008
3179
  writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
3180
+ } else if (_optionalChain([context2, 'access', _160 => _160.result, 'optionalAccess', _161 => _161.errors]) && _optionalChain([context2, 'access', _162 => _162.result, 'optionalAccess', _163 => _163.errors, 'access', _164 => _164.length]) > 0) {
3181
+ writeError(` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
3182
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
3009
3183
  }
3010
3184
  }
3011
3185
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
@@ -3060,7 +3234,7 @@ async function build3(options) {
3060
3234
  throw new Error("No build options were provided");
3061
3235
  }
3062
3236
  void transduce.async(opts, dependencyCheck);
3063
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
3237
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
3064
3238
  writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
3065
3239
  } catch (error) {
3066
3240
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
@@ -3102,14 +3276,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
3102
3276
  // ../workspace-tools/src/executors/esbuild/executor.ts
3103
3277
  async function esbuildExecutorFn(options, context2, config) {
3104
3278
  writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
3105
- if (!_optionalChain([context2, 'access', _154 => _154.projectsConfigurations, 'optionalAccess', _155 => _155.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _156 => _156.projectsConfigurations, 'access', _157 => _157.projects, 'access', _158 => _158[context2.projectName], 'optionalAccess', _159 => _159.root])) {
3279
+ if (!_optionalChain([context2, 'access', _165 => _165.projectsConfigurations, 'optionalAccess', _166 => _166.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _167 => _167.projectsConfigurations, 'access', _168 => _168.projects, 'access', _169 => _169[context2.projectName], 'optionalAccess', _170 => _170.root])) {
3106
3280
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
3107
3281
  }
3108
3282
  await build3({
3109
3283
  ...options,
3110
- projectRoot: _optionalChain([context2, 'access', _160 => _160.projectsConfigurations, 'access', _161 => _161.projects, 'optionalAccess', _162 => _162[context2.projectName], 'access', _163 => _163.root]),
3284
+ projectRoot: _optionalChain([context2, 'access', _171 => _171.projectsConfigurations, 'access', _172 => _172.projects, 'optionalAccess', _173 => _173[context2.projectName], 'access', _174 => _174.root]),
3111
3285
  projectName: context2.projectName,
3112
- sourceRoot: _optionalChain([context2, 'access', _164 => _164.projectsConfigurations, 'access', _165 => _165.projects, 'optionalAccess', _166 => _166[context2.projectName], 'optionalAccess', _167 => _167.sourceRoot]),
3286
+ sourceRoot: _optionalChain([context2, 'access', _175 => _175.projectsConfigurations, 'access', _176 => _176.projects, 'optionalAccess', _177 => _177[context2.projectName], 'optionalAccess', _178 => _178.sourceRoot]),
3113
3287
  format: options.format,
3114
3288
  platform: options.format
3115
3289
  });
@@ -3152,7 +3326,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
3152
3326
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
3153
3327
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
3154
3328
  async function sizeLimitExecutorFn(options, context2, config) {
3155
- if (!_optionalChain([context2, 'optionalAccess', _168 => _168.projectName]) || !_optionalChain([context2, 'access', _169 => _169.projectsConfigurations, 'optionalAccess', _170 => _170.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
3329
+ if (!_optionalChain([context2, 'optionalAccess', _179 => _179.projectName]) || !_optionalChain([context2, 'access', _180 => _180.projectsConfigurations, 'optionalAccess', _181 => _181.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
3156
3330
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
3157
3331
  }
3158
3332
  writeInfo(`\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -3161,7 +3335,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
3161
3335
  _esbuild3.default,
3162
3336
  _esbuildwhy2.default
3163
3337
  ], {
3164
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _171 => _171.projectsConfigurations, 'access', _172 => _172.projects, 'access', _173 => _173[context2.projectName], 'optionalAccess', _174 => _174.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _175 => _175.projectsConfigurations, 'access', _176 => _176.projects, 'access', _177 => _177[context2.projectName], 'optionalAccess', _178 => _178.root]), () => ( "./")), "src")))
3338
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _182 => _182.projectsConfigurations, 'access', _183 => _183.projects, 'access', _184 => _184[context2.projectName], 'optionalAccess', _185 => _185.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _186 => _186.projectsConfigurations, 'access', _187 => _187.projects, 'access', _188 => _188[context2.projectName], 'optionalAccess', _189 => _189.root]), () => ( "./")), "src")))
3165
3339
  }).then((result) => {
3166
3340
  writeInfo(`\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
3167
3341
  });
@@ -3220,7 +3394,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
3220
3394
  var _jiti = require('jiti');
3221
3395
  async function unbuildExecutorFn(options, context2, config) {
3222
3396
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
3223
- if (!_optionalChain([context2, 'access', _179 => _179.projectsConfigurations, 'optionalAccess', _180 => _180.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
3397
+ if (!_optionalChain([context2, 'access', _190 => _190.projectsConfigurations, 'optionalAccess', _191 => _191.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
3224
3398
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
3225
3399
  }
3226
3400
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -3432,15 +3606,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3432
3606
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
3433
3607
  let repository = {
3434
3608
  type: "github",
3435
- url: _optionalChain([config, 'optionalAccess', _181 => _181.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _182 => _182.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _183 => _183.namespace]) || _optionalChain([config, 'optionalAccess', _184 => _184.name]) || "repository"}.git`
3609
+ url: _optionalChain([config, 'optionalAccess', _192 => _192.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _193 => _193.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _194 => _194.namespace]) || _optionalChain([config, 'optionalAccess', _195 => _195.name]) || "repository"}.git`
3436
3610
  };
3437
3611
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
3438
3612
  if (tree.exists("package.json")) {
3439
3613
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3440
- if (_optionalChain([packageJson, 'optionalAccess', _185 => _185.repository])) {
3614
+ if (_optionalChain([packageJson, 'optionalAccess', _196 => _196.repository])) {
3441
3615
  repository = packageJson.repository;
3442
3616
  }
3443
- if (_optionalChain([packageJson, 'optionalAccess', _186 => _186.description])) {
3617
+ if (_optionalChain([packageJson, 'optionalAccess', _197 => _197.description])) {
3444
3618
  description = packageJson.description;
3445
3619
  }
3446
3620
  }
@@ -3495,9 +3669,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3495
3669
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
3496
3670
  ...json,
3497
3671
  pnpm: {
3498
- ..._optionalChain([json, 'optionalAccess', _187 => _187.pnpm]),
3672
+ ..._optionalChain([json, 'optionalAccess', _198 => _198.pnpm]),
3499
3673
  overrides: {
3500
- ..._optionalChain([json, 'optionalAccess', _188 => _188.pnpm, 'optionalAccess', _189 => _189.overrides]),
3674
+ ..._optionalChain([json, 'optionalAccess', _199 => _199.pnpm, 'optionalAccess', _200 => _200.overrides]),
3501
3675
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
3502
3676
  }
3503
3677
  }
@@ -3511,10 +3685,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
3511
3685
  ]);
3512
3686
  if (tree.exists("package.json")) {
3513
3687
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
3514
- if (_optionalChain([packageJson, 'optionalAccess', _190 => _190.repository])) {
3688
+ if (_optionalChain([packageJson, 'optionalAccess', _201 => _201.repository])) {
3515
3689
  repository = packageJson.repository;
3516
3690
  }
3517
- if (_optionalChain([packageJson, 'optionalAccess', _191 => _191.description])) {
3691
+ if (_optionalChain([packageJson, 'optionalAccess', _202 => _202.description])) {
3518
3692
  description = packageJson.description;
3519
3693
  }
3520
3694
  }
@@ -3562,24 +3736,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
3562
3736
  function createProjectTsConfigJson(tree, options) {
3563
3737
  const tsconfig = {
3564
3738
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
3565
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _192 => _192.tsconfigOptions]), () => ( {})),
3739
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _203 => _203.tsconfigOptions]), () => ( {})),
3566
3740
  compilerOptions: {
3567
3741
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
3568
3742
  outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
3569
3743
  noEmit: true,
3570
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _193 => _193.tsconfigOptions, 'optionalAccess', _194 => _194.compilerOptions]), () => ( {}))
3744
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _204 => _204.tsconfigOptions, 'optionalAccess', _205 => _205.compilerOptions]), () => ( {}))
3571
3745
  },
3572
3746
  files: [
3573
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _195 => _195.tsconfigOptions, 'optionalAccess', _196 => _196.files]), () => ( []))
3747
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _206 => _206.tsconfigOptions, 'optionalAccess', _207 => _207.files]), () => ( []))
3574
3748
  ],
3575
3749
  include: [
3576
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _197 => _197.tsconfigOptions, 'optionalAccess', _198 => _198.include]), () => ( [])),
3750
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _208 => _208.tsconfigOptions, 'optionalAccess', _209 => _209.include]), () => ( [])),
3577
3751
  "src/**/*.ts",
3578
3752
  "src/**/*.js",
3579
3753
  "bin/**/*"
3580
3754
  ],
3581
3755
  exclude: [
3582
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _199 => _199.tsconfigOptions, 'optionalAccess', _200 => _200.exclude]), () => ( [])),
3756
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _210 => _210.tsconfigOptions, 'optionalAccess', _211 => _211.exclude]), () => ( [])),
3583
3757
  "jest.config.ts",
3584
3758
  "src/**/*.spec.ts",
3585
3759
  "src/**/*.test.ts"
@@ -3590,8 +3764,8 @@ function createProjectTsConfigJson(tree, options) {
3590
3764
  _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
3591
3765
  async function normalizeOptions(tree, options, config) {
3592
3766
  let importPath = options.importPath;
3593
- if (!importPath && _optionalChain([config, 'optionalAccess', _201 => _201.namespace])) {
3594
- importPath = `@${_optionalChain([config, 'optionalAccess', _202 => _202.namespace])}/${options.name}`;
3767
+ if (!importPath && _optionalChain([config, 'optionalAccess', _212 => _212.namespace])) {
3768
+ importPath = `@${_optionalChain([config, 'optionalAccess', _213 => _213.namespace])}/${options.name}`;
3595
3769
  }
3596
3770
  if (options.publishable) {
3597
3771
  if (!importPath) {
@@ -3723,7 +3897,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
3723
3897
  name: "StormWorkspaceConfiguration"
3724
3898
  });
3725
3899
  writeTrace(jsonSchema, config);
3726
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _203 => _203.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _204 => _204.outputFile, 'optionalAccess', _205 => _205.startsWith, 'call', _206 => _206("./")]) ? "" : "./");
3900
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _214 => _214.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _215 => _215.outputFile, 'optionalAccess', _216 => _216.startsWith, 'call', _217 => _217("./")]) ? "" : "./");
3727
3901
  writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
3728
3902
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
3729
3903
  spaces: 2
@@ -5,7 +5,7 @@ import {
5
5
  initGenerator,
6
6
  run,
7
7
  withRunGenerator
8
- } from "./chunk-HJVG56K3.mjs";
8
+ } from "./chunk-GPMABELW.mjs";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-Y4D6KHJP.mjs";
@@ -1,7 +1,7 @@
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 _chunkX3NRJ4N7js = require('./chunk-X3NRJ4N7.js');
4
+ var _chunkVDV3O757js = require('./chunk-VDV3O757.js');
5
5
 
6
6
 
7
7
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -10,7 +10,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
10
10
  var _path = require('path');
11
11
  var _shelljs = require('shelljs');
12
12
  var withPulumiExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (command, argsMapper, executorOptions = {}) => async (_options, context) => {
13
- return _chunkX3NRJ4N7js.withRunExecutor.call(void 0, `Pulumi \`${command}\` Command Executor`, async (options, context2, config) => {
13
+ return _chunkVDV3O757js.withRunExecutor.call(void 0, `Pulumi \`${command}\` Command Executor`, async (options, context2, config) => {
14
14
  if (!_shelljs.which.call(void 0, "pulumi")) {
15
15
  throw new Error("Pulumi is not installed. Please install it before running this executor.");
16
16
  }
@@ -18,7 +18,7 @@ var withPulumiExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (c
18
18
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
19
19
  }
20
20
  const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
21
- _chunkX3NRJ4N7js.run.call(void 0, config, [
21
+ _chunkVDV3O757js.run.call(void 0, config, [
22
22
  "pulumi",
23
23
  command,
24
24
  ...argsMapper(options)
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk763TSWDBjs = require('./chunk-763TSWDB.js');
3
+ var _chunkWINGLI7Xjs = require('./chunk-WINGLI7X.js');
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
- var executor_default = _chunk763TSWDBjs.withPulumiExecutor.call(void 0, "refresh", (options) => [
6
+ var executor_default = _chunkWINGLI7Xjs.withPulumiExecutor.call(void 0, "refresh", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk763TSWDBjs = require('./chunk-763TSWDB.js');
3
+ var _chunkWINGLI7Xjs = require('./chunk-WINGLI7X.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunk763TSWDBjs.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkWINGLI7Xjs.withPulumiExecutor.call(void 0, "config", (options) => [
7
7
  options.action,
8
8
  options.showSecrets && `--show-secrets`,
9
9
  options.secret && `--secret`,
@@ -5,6 +5,6 @@ export { R as RefreshExecutorSchema } from './schema.d-BTpgEb0Q.mjs';
5
5
  export { U as UpExecutorSchema } from './schema.d-BCkJFwHO.mjs';
6
6
  import './src/base/base-executor.mjs';
7
7
  import '@nx/devkit';
8
- import './types-D7IMa2M3.mjs';
8
+ import './types-D-xLCTdY.mjs';
9
9
  import 'zod';
10
10
  import '@storm-software/workspace-tools';
@@ -5,6 +5,6 @@ export { R as RefreshExecutorSchema } from './schema.d-DhkOAnzb.js';
5
5
  export { U as UpExecutorSchema } from './schema.d-Dri9rCeV.js';
6
6
  import './src/base/base-executor.js';
7
7
  import '@nx/devkit';
8
- import './types-D7IMa2M3.js';
8
+ import './types-D-xLCTdY.js';
9
9
  import 'zod';
10
10
  import '@storm-software/workspace-tools';
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-2UH4RRNW.js');
3
- require('./chunk-YCVKG6JS.js');
4
- require('./chunk-PJF55MGD.js');
5
- require('./chunk-U4TQH734.js');
6
- require('./chunk-2GIUPJHS.js');
7
- require('./chunk-763TSWDB.js');
8
- require('./chunk-X3NRJ4N7.js');
2
+ require('./chunk-EFMZVZ6K.js');
3
+ require('./chunk-TBXWIKJK.js');
4
+ require('./chunk-WLYLSCF7.js');
5
+ require('./chunk-T3ADQ7YJ.js');
6
+ require('./chunk-WUDUZC6D.js');
7
+ require('./chunk-WINGLI7X.js');
8
+ require('./chunk-VDV3O757.js');
9
9
  require('./chunk-3GQAWCBQ.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-I4V7RFTZ.mjs";
3
- import "./chunk-3OZWQ5QE.mjs";
4
- import "./chunk-E5YDCCYW.mjs";
5
- import "./chunk-DK54HN4K.mjs";
6
- import "./chunk-TVI5BFN7.mjs";
7
- import "./chunk-5IVEJ34A.mjs";
8
- import "./chunk-HJVG56K3.mjs";
2
+ import "./chunk-6KVTPT65.mjs";
3
+ import "./chunk-4NF2PRG4.mjs";
4
+ import "./chunk-DXITZGRH.mjs";
5
+ import "./chunk-EESN3HPG.mjs";
6
+ import "./chunk-6KIZNAAU.mjs";
7
+ import "./chunk-FDU3AJWV.mjs";
8
+ import "./chunk-GPMABELW.mjs";
9
9
  import "./chunk-Y4D6KHJP.mjs";