@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
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.7.56](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.7.56) (2025-04-16)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([762e7076f](https://github.com/storm-software/storm-ops/commit/762e7076f))
11
+
5
12
  ## [0.7.55](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.7.55) (2025-04-15)
6
13
 
7
14
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.7.54-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.7.56-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-FDU3AJWV.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor("preview", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-FDU3AJWV.mjs";
4
4
 
5
5
  // src/executors/config/executor.ts
6
6
  var executor_default = withPulumiExecutor("config", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-FDU3AJWV.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-FDU3AJWV.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor("refresh", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-FDU3AJWV.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk763TSWDBjs = require('./chunk-763TSWDB.js');
3
+ var _chunkWINGLI7Xjs = require('./chunk-WINGLI7X.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunk763TSWDBjs.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkWINGLI7Xjs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-HJVG56K3.mjs";
4
+ } from "./chunk-GPMABELW.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-Y4D6KHJP.mjs";
@@ -211,7 +211,7 @@ var stormWorkspaceConfigSchema = z.object({
211
211
  "staging",
212
212
  "production"
213
213
  ]).default("production").describe("The current runtime environment mode for the package"),
214
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
214
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
215
215
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
216
216
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
217
217
  directories: WorkspaceDirectoryConfigSchema,
@@ -874,7 +874,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
874
874
  }
875
875
  }
876
876
  }
877
- if (!config) {
877
+ if (!config || Object.keys(config).length === 0) {
878
878
  return void 0;
879
879
  }
880
880
  config.configFile = configFile;
@@ -935,12 +935,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
935
935
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
936
936
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
937
937
  directories: {
938
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
939
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
940
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
941
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
942
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
943
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
938
+ 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,
939
+ 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,
940
+ 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,
941
+ 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,
942
+ 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,
943
+ 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
944
944
  },
945
945
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
946
946
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -1160,21 +1160,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
1160
1160
  if (config.directories) {
1161
1161
  if (!config.skipCache && config.directories.cache) {
1162
1162
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
1163
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1163
1164
  }
1164
1165
  if (config.directories.data) {
1165
1166
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1167
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1166
1168
  }
1167
1169
  if (config.directories.config) {
1168
1170
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
1171
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1169
1172
  }
1170
1173
  if (config.directories.temp) {
1171
1174
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1175
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1172
1176
  }
1173
1177
  if (config.directories.log) {
1174
1178
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1179
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1175
1180
  }
1176
1181
  if (config.directories.build) {
1177
1182
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
1183
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1178
1184
  }
1179
1185
  }
1180
1186
  if (config.skipCache !== void 0) {
@@ -1342,7 +1348,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
1342
1348
  // ../config-tools/src/create-storm-config.ts
1343
1349
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1344
1350
  var _static_cache = void 0;
1345
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot3, skipLogs = false) => {
1351
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot3, skipLogs = false, useDefault = true) => {
1346
1352
  let result;
1347
1353
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1348
1354
  let _workspaceRoot = workspaceRoot3;
@@ -1350,13 +1356,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
1350
1356
  _workspaceRoot = findWorkspaceRoot();
1351
1357
  }
1352
1358
  const configEnv = getConfigEnv();
1353
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
1354
1359
  const configFile = await getConfigFile(_workspaceRoot);
1355
- if (!configFile && !skipLogs) {
1356
- 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", {
1357
- logLevel: "all"
1358
- });
1360
+ if (!configFile) {
1361
+ if (!skipLogs) {
1362
+ 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", {
1363
+ logLevel: "all"
1364
+ });
1365
+ }
1366
+ if (useDefault === false) {
1367
+ return void 0;
1368
+ }
1359
1369
  }
1370
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
1360
1371
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
1361
1372
  result.workspaceRoot ??= _workspaceRoot;
1362
1373
  } else {
@@ -1389,7 +1400,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
1389
1400
  return extension;
1390
1401
  }, "createConfigExtension");
1391
1402
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot3, skipLogs = false) => {
1392
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs);
1403
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot3, skipLogs, true);
1393
1404
  setConfigEnv(config);
1394
1405
  if (!skipLogs && !config.skipConfigLogging) {
1395
1406
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -2031,12 +2042,12 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
2031
2042
 
2032
2043
  // ../esbuild/src/build.ts
2033
2044
  import { watch as createWatcher } from "chokidar";
2034
- import defu4 from "defu";
2045
+ import defu5 from "defu";
2035
2046
  import { debounce, flatten } from "es-toolkit";
2036
2047
  import { map } from "es-toolkit/compat";
2037
2048
  import * as esbuild2 from "esbuild";
2038
2049
  import { globbySync } from "globby";
2039
- import { existsSync as existsSync6 } from "node:fs";
2050
+ import { existsSync as existsSync7 } from "node:fs";
2040
2051
  import hf from "node:fs/promises";
2041
2052
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
2042
2053
 
@@ -2423,7 +2434,7 @@ __name(bundleTypeDefinitions, "bundleTypeDefinitions");
2423
2434
  var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
2424
2435
  name: "storm:tsc",
2425
2436
  setup(build4) {
2426
- if (options.emitTypes === false) {
2437
+ if (options.dts === false) {
2427
2438
  return;
2428
2439
  }
2429
2440
  build4.onStart(async () => {
@@ -2475,7 +2486,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) =
2475
2486
  var DEFAULT_BUILD_OPTIONS = {
2476
2487
  platform: "node",
2477
2488
  target: "node22",
2478
- format: "cjs",
2489
+ format: "esm",
2479
2490
  external: [],
2480
2491
  logLevel: "error",
2481
2492
  tsconfig: "tsconfig.json",
@@ -2624,6 +2635,155 @@ var shebangRenderer = {
2624
2635
  }
2625
2636
  };
2626
2637
 
2638
+ // ../esbuild/src/tsc.ts
2639
+ import { loadTsConfig } from "bundle-require";
2640
+ import defu4 from "defu";
2641
+ import { existsSync as existsSync6, mkdirSync, writeFileSync } from "node:fs";
2642
+ import { dirname as dirname2, isAbsolute as isAbsolute2, join as join3, normalize } from "node:path";
2643
+ import ts from "typescript";
2644
+ function ensureTempDeclarationDir(workspaceConfig) {
2645
+ const root = workspaceConfig.directories.temp || join3(workspaceConfig.workspaceRoot, "tmp");
2646
+ const dirPath = join3(root, ".tsc", "declaration");
2647
+ if (existsSync6(dirPath)) {
2648
+ return dirPath;
2649
+ }
2650
+ mkdirSync(dirPath, {
2651
+ recursive: true
2652
+ });
2653
+ const gitIgnorePath = join3(root, ".tsc", ".gitignore");
2654
+ writeFileSync(gitIgnorePath, "**/*\n");
2655
+ return dirPath;
2656
+ }
2657
+ __name(ensureTempDeclarationDir, "ensureTempDeclarationDir");
2658
+ function slash(path7) {
2659
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
2660
+ if (isExtendedLengthPath) {
2661
+ return path7;
2662
+ }
2663
+ return path7.replace(/\\/g, "/");
2664
+ }
2665
+ __name(slash, "slash");
2666
+ function toAbsolutePath(workspaceConfig, p, cwd) {
2667
+ if (isAbsolute2(p)) {
2668
+ return p;
2669
+ }
2670
+ return slash(normalize(join3(cwd || workspaceConfig.workspaceRoot, p)));
2671
+ }
2672
+ __name(toAbsolutePath, "toAbsolutePath");
2673
+ var AliasPool = class AliasPool2 {
2674
+ static {
2675
+ __name(this, "AliasPool");
2676
+ }
2677
+ seen = /* @__PURE__ */ new Set();
2678
+ assign(name) {
2679
+ let suffix = 0;
2680
+ let alias = name === "default" ? "default_alias" : name;
2681
+ while (this.seen.has(alias)) {
2682
+ alias = `${name}_alias_${++suffix}`;
2683
+ if (suffix >= 1e3) {
2684
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
2685
+ }
2686
+ }
2687
+ this.seen.add(alias);
2688
+ return alias;
2689
+ }
2690
+ };
2691
+ function getExports(workspaceConfig, program, fileMapping) {
2692
+ const checker = program.getTypeChecker();
2693
+ const aliasPool = new AliasPool();
2694
+ const assignAlias = aliasPool.assign.bind(aliasPool);
2695
+ function extractExports(sourceFileName) {
2696
+ const cwd = program.getCurrentDirectory();
2697
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
2698
+ const sourceFile = program.getSourceFile(sourceFileName);
2699
+ if (!sourceFile) {
2700
+ return [];
2701
+ }
2702
+ const destFileName = fileMapping.get(sourceFileName);
2703
+ if (!destFileName) {
2704
+ return [];
2705
+ }
2706
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
2707
+ if (!moduleSymbol) {
2708
+ return [];
2709
+ }
2710
+ const exports = [];
2711
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
2712
+ exportSymbols.forEach((symbol) => {
2713
+ const name = symbol.getName();
2714
+ exports.push({
2715
+ kind: "named",
2716
+ sourceFileName,
2717
+ destFileName,
2718
+ name,
2719
+ alias: assignAlias(name),
2720
+ isTypeOnly: false
2721
+ });
2722
+ });
2723
+ return exports;
2724
+ }
2725
+ __name(extractExports, "extractExports");
2726
+ return program.getRootFileNames().flatMap(extractExports);
2727
+ }
2728
+ __name(getExports, "getExports");
2729
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
2730
+ const fileMapping = /* @__PURE__ */ new Map();
2731
+ const writeFile3 = /* @__PURE__ */ __name((fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
2732
+ const sourceFile = sourceFiles?.[0];
2733
+ const sourceFileName = sourceFile?.fileName;
2734
+ if (sourceFileName && !fileName.endsWith(".map")) {
2735
+ const cwd = program.getCurrentDirectory();
2736
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
2737
+ }
2738
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
2739
+ }, "writeFile");
2740
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
2741
+ const diagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
2742
+ const diagnosticMessages = [];
2743
+ diagnostics.forEach((diagnostic) => {
2744
+ if (diagnostic.file) {
2745
+ const { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
2746
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2747
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
2748
+ } else {
2749
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2750
+ diagnosticMessages.push(message);
2751
+ }
2752
+ });
2753
+ const diagnosticMessage = diagnosticMessages.join("\n");
2754
+ if (diagnosticMessage) {
2755
+ writeError(`Failed to emit declaration files.
2756
+
2757
+ ${diagnosticMessage}`, workspaceConfig);
2758
+ throw new Error("TypeScript compilation failed");
2759
+ }
2760
+ return fileMapping;
2761
+ }
2762
+ __name(emitDtsFiles, "emitDtsFiles");
2763
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
2764
+ const rawTsconfig = loadTsConfig(workspaceConfig.workspaceRoot, tsconfig);
2765
+ if (!rawTsconfig) {
2766
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
2767
+ }
2768
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
2769
+ const parsedTsconfig = ts.parseJsonConfigFileContent(defu4({
2770
+ compilerOptions: {
2771
+ // Enable declaration emit and disable javascript emit
2772
+ noEmit: false,
2773
+ declaration: true,
2774
+ declarationMap: true,
2775
+ declarationDir,
2776
+ emitDeclarationOnly: true
2777
+ }
2778
+ }, tsconfigRaw?.compilerOptions ?? {}, rawTsconfig.data ?? {}), ts.sys, tsconfig ? dirname2(tsconfig) : "./");
2779
+ const options = parsedTsconfig.options;
2780
+ const host = ts.createCompilerHost(options);
2781
+ const program = ts.createProgram(parsedTsconfig.fileNames, options, host);
2782
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
2783
+ return getExports(workspaceConfig, program, fileMapping);
2784
+ }
2785
+ __name(emitDts, "emitDts");
2786
+
2627
2787
  // ../esbuild/src/utilities/get-entry-points.ts
2628
2788
  import { glob as glob3 } from "glob";
2629
2789
  var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
@@ -2785,7 +2945,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2785
2945
  exitOnError: true
2786
2946
  });
2787
2947
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
2788
- if (!existsSync6(projectJsonPath)) {
2948
+ if (!existsSync7(projectJsonPath)) {
2789
2949
  throw new Error("Cannot find project.json configuration");
2790
2950
  }
2791
2951
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -2795,11 +2955,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2795
2955
  if (!projectConfigurations?.projects?.[projectName]) {
2796
2956
  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.");
2797
2957
  }
2798
- const options = defu4(userOptions, DEFAULT_BUILD_OPTIONS);
2958
+ const options = defu5(userOptions, DEFAULT_BUILD_OPTIONS);
2799
2959
  options.name ??= `${projectName}-${options.format}`;
2800
2960
  options.target ??= DEFAULT_TARGET;
2801
2961
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
2802
- if (!existsSync6(packageJsonPath)) {
2962
+ if (!existsSync7(packageJsonPath)) {
2803
2963
  throw new Error("Cannot find package.json configuration");
2804
2964
  }
2805
2965
  const env = getEnv("esbuild", options);
@@ -2881,11 +3041,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2881
3041
  return result;
2882
3042
  }, "resolveOptions");
2883
3043
  async function generatePackageJson(context2) {
2884
- if (context2.options.generatePackageJson !== false && existsSync6(joinPaths(context2.options.projectRoot, "package.json"))) {
3044
+ if (context2.options.generatePackageJson !== false && existsSync7(joinPaths(context2.options.projectRoot, "package.json"))) {
2885
3045
  writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
2886
3046
  const stopwatch = getStopwatch("Write package.json file");
2887
3047
  const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
2888
- if (!existsSync6(packageJsonPath)) {
3048
+ if (!existsSync7(packageJsonPath)) {
2889
3049
  throw new Error("Cannot find package.json configuration");
2890
3050
  }
2891
3051
  const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
@@ -2956,6 +3116,7 @@ async function executeEsBuild(context2) {
2956
3116
  options.inject === {}) {
2957
3117
  delete options.inject;
2958
3118
  }
3119
+ delete options.dts;
2959
3120
  delete options.env;
2960
3121
  delete options.name;
2961
3122
  delete options.assets;
@@ -2991,6 +3152,16 @@ ${formatLogMessage({
2991
3152
  return context2;
2992
3153
  }
2993
3154
  __name(executeEsBuild, "executeEsBuild");
3155
+ async function executeTypescript(context2) {
3156
+ if (context2.result?.errors.length === 0 && context2.options.dts) {
3157
+ writeDebug(` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
3158
+ const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
3159
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
3160
+ stopwatch();
3161
+ }
3162
+ return context2;
3163
+ }
3164
+ __name(executeTypescript, "executeTypescript");
2994
3165
  async function copyBuildAssets(context2) {
2995
3166
  if (context2.result?.errors.length === 0) {
2996
3167
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
@@ -3007,6 +3178,9 @@ async function reportResults(context2) {
3007
3178
  writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
3008
3179
  }
3009
3180
  writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
3181
+ } else if (context2.result?.errors && context2.result?.errors.length > 0) {
3182
+ writeError(` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
3183
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
3010
3184
  }
3011
3185
  }
3012
3186
  __name(reportResults, "reportResults");
@@ -3061,7 +3235,7 @@ async function build3(options) {
3061
3235
  throw new Error("No build options were provided");
3062
3236
  }
3063
3237
  void transduce.async(opts, dependencyCheck);
3064
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
3238
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
3065
3239
  writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
3066
3240
  } catch (error) {
3067
3241
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
@@ -3138,7 +3312,7 @@ import { execSync as execSync4 } from "node:child_process";
3138
3312
  import { readFile as readFile6 } from "node:fs/promises";
3139
3313
 
3140
3314
  // ../workspace-tools/src/utils/pnpm-deps-update.ts
3141
- import { existsSync as existsSync7 } from "node:fs";
3315
+ import { existsSync as existsSync8 } from "node:fs";
3142
3316
  import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
3143
3317
  import { format } from "prettier";
3144
3318
  import readYamlFile from "read-yaml-file";
@@ -3217,7 +3391,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
3217
3391
  });
3218
3392
 
3219
3393
  // ../workspace-tools/src/executors/unbuild/executor.ts
3220
- import { defu as defu5 } from "defu";
3394
+ import { defu as defu6 } from "defu";
3221
3395
  import { createJiti } from "jiti";
3222
3396
  async function unbuildExecutorFn(options, context2, config) {
3223
3397
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
@@ -3235,7 +3409,7 @@ async function unbuildExecutorFn(options, context2, config) {
3235
3409
  interopDefault: true
3236
3410
  });
3237
3411
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
3238
- await stormUnbuild.build(defu5({
3412
+ await stormUnbuild.build(defu6({
3239
3413
  ...options,
3240
3414
  projectRoot: context2.projectsConfigurations.projects[context2.projectName].root,
3241
3415
  projectName: context2.projectName,
@@ -4693,27 +4867,27 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
4693
4867
 
4694
4868
  // ../workspace-tools/src/utils/lock-file.ts
4695
4869
  import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
4696
- import { existsSync as existsSync8 } from "node:fs";
4697
- import { join as join4 } from "node:path";
4870
+ import { existsSync as existsSync9 } from "node:fs";
4871
+ import { join as join5 } from "node:path";
4698
4872
  import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
4699
4873
  import { getPnpmLockfileDependencies, getPnpmLockfileNodes } from "nx/src/plugins/js/lock-file/pnpm-parser";
4700
4874
  import { getYarnLockfileDependencies, getYarnLockfileNodes } from "nx/src/plugins/js/lock-file/yarn-parser";
4701
4875
  var YARN_LOCK_FILE = "yarn.lock";
4702
4876
  var NPM_LOCK_FILE = "package-lock.json";
4703
4877
  var PNPM_LOCK_FILE = "pnpm-lock.yaml";
4704
- var YARN_LOCK_PATH = join4(workspaceRoot2, YARN_LOCK_FILE);
4705
- var NPM_LOCK_PATH = join4(workspaceRoot2, NPM_LOCK_FILE);
4706
- var PNPM_LOCK_PATH = join4(workspaceRoot2, PNPM_LOCK_FILE);
4878
+ var YARN_LOCK_PATH = join5(workspaceRoot2, YARN_LOCK_FILE);
4879
+ var NPM_LOCK_PATH = join5(workspaceRoot2, NPM_LOCK_FILE);
4880
+ var PNPM_LOCK_PATH = join5(workspaceRoot2, PNPM_LOCK_FILE);
4707
4881
 
4708
4882
  // ../workspace-tools/src/utils/package-helpers.ts
4709
4883
  import { joinPathFragments as joinPathFragments6, readJsonFile as readJsonFile2 } from "@nx/devkit";
4710
- import { existsSync as existsSync9 } from "node:fs";
4884
+ import { existsSync as existsSync10 } from "node:fs";
4711
4885
 
4712
4886
  // ../workspace-tools/src/utils/plugin-helpers.ts
4713
4887
  import { readJsonFile as readJsonFile3 } from "@nx/devkit";
4714
- import defu6 from "defu";
4715
- import { existsSync as existsSync10 } from "node:fs";
4716
- import { dirname as dirname2, join as join5 } from "node:path";
4888
+ import defu7 from "defu";
4889
+ import { existsSync as existsSync11 } from "node:fs";
4890
+ import { dirname as dirname3, join as join6 } from "node:path";
4717
4891
 
4718
4892
  // ../workspace-tools/src/utils/typia-transform.ts
4719
4893
  import transform2 from "typia/lib/transform";
@@ -5,7 +5,7 @@ var _chunkDBLK3NPEjs = require('./chunk-DBLK3NPE.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkX3NRJ4N7js = require('./chunk-X3NRJ4N7.js');
8
+ var _chunkVDV3O757js = require('./chunk-VDV3O757.js');
9
9
 
10
10
 
11
11
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ var _devkit = require('@nx/devkit');
15
15
  var _fs = require('fs');
16
16
  var _path = require('path');
17
17
  async function initGeneratorFn(tree, options, config) {
18
- const task = _chunkX3NRJ4N7js.initGenerator.call(void 0, tree, options);
18
+ const task = _chunkVDV3O757js.initGenerator.call(void 0, tree, options);
19
19
  _devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
20
20
  root: options.directory || "./deployment",
21
21
  projectType: "application",
@@ -49,11 +49,11 @@ async function initGeneratorFn(tree, options, config) {
49
49
  return task;
50
50
  }
51
51
  _chunk3GQAWCBQjs.__name.call(void 0, initGeneratorFn, "initGeneratorFn");
52
- var generator_default = _chunkX3NRJ4N7js.withRunGenerator.call(void 0, "Initialize Storm Pulumi workspace", initGeneratorFn);
52
+ var generator_default = _chunkVDV3O757js.withRunGenerator.call(void 0, "Initialize Storm Pulumi workspace", initGeneratorFn);
53
53
  function generateNewPulumiProject(tree, options, config) {
54
54
  return () => {
55
55
  const template = _chunkDBLK3NPEjs.getCloudTemplateName.call(void 0, options.provider);
56
- _chunkX3NRJ4N7js.run.call(void 0, config, [
56
+ _chunkVDV3O757js.run.call(void 0, config, [
57
57
  `pulumi new ${template}`,
58
58
  `--name=${options.name || "deployment"}`,
59
59
  `--dir=${options.directory || "./deployment"}`,
@@ -73,7 +73,7 @@ function loginToPulumi(tree, options, config) {
73
73
  if (options.login.startsWith("file://")) {
74
74
  options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
75
75
  }
76
- _chunkX3NRJ4N7js.run.call(void 0, config, [
76
+ _chunkVDV3O757js.run.call(void 0, config, [
77
77
  "pulumi login",
78
78
  options.login
79
79
  ].filter(Boolean).join(" "), _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"), "inherit", {
@@ -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/up/executor.ts
6
- var executor_default = _chunk763TSWDBjs.withPulumiExecutor.call(void 0, "up", (options) => [
6
+ var executor_default = _chunkWINGLI7Xjs.withPulumiExecutor.call(void 0, "up", (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/preview/executor.ts
6
- var executor_default = _chunk763TSWDBjs.withPulumiExecutor.call(void 0, "preview", (options) => [
6
+ var executor_default = _chunkWINGLI7Xjs.withPulumiExecutor.call(void 0, "preview", (options) => [
7
7
  options.stack && `--stack=${options.stack}`,
8
8
  options.expectNoChanges && "--expect-no-changes"
9
9
  ]);