@storm-software/pulumi-tools 0.7.55 → 0.7.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-X3NRJ4N7.js → chunk-3E7U32YZ.js} +205 -36
  4. package/dist/{chunk-YCVKG6JS.js → chunk-3HKYDFFV.js} +2 -2
  5. package/dist/{chunk-2GIUPJHS.js → chunk-APBJOTY3.js} +2 -2
  6. package/dist/{chunk-DK54HN4K.mjs → chunk-BPD7ONO7.mjs} +1 -1
  7. package/dist/{chunk-U4TQH734.js → chunk-CS4YJFOV.js} +2 -2
  8. package/dist/{chunk-3OZWQ5QE.mjs → chunk-ELJDSZB2.mjs} +1 -1
  9. package/dist/{chunk-2UH4RRNW.js → chunk-GBL7OLQF.js} +2 -2
  10. package/dist/{chunk-I4V7RFTZ.mjs → chunk-HJNJ7YU6.mjs} +1 -1
  11. package/dist/{chunk-5IVEJ34A.mjs → chunk-HRV4XKW4.mjs} +1 -1
  12. package/dist/{chunk-PJF55MGD.js → chunk-KDNAYWKN.js} +2 -2
  13. package/dist/{chunk-HJVG56K3.mjs → chunk-L2IHRS7N.mjs} +197 -28
  14. package/dist/{chunk-TVI5BFN7.mjs → chunk-NFQLTGXG.mjs} +1 -1
  15. package/dist/{chunk-E5YDCCYW.mjs → chunk-QCE5MXIG.mjs} +1 -1
  16. package/dist/{chunk-HFYFHIZK.mjs → chunk-QNO5QCOA.mjs} +1 -1
  17. package/dist/{chunk-5C2GNELZ.js → chunk-TU3Q3T7D.js} +5 -5
  18. package/dist/{chunk-763TSWDB.js → chunk-UXXOZVCJ.js} +3 -3
  19. package/dist/executors.js +7 -7
  20. package/dist/executors.mjs +7 -7
  21. package/dist/generators.js +3 -3
  22. package/dist/generators.mjs +2 -2
  23. package/dist/index.js +9 -9
  24. package/dist/index.mjs +8 -8
  25. package/dist/src/base/base-executor.js +3 -3
  26. package/dist/src/base/base-executor.mjs +2 -2
  27. package/dist/src/base/index.js +3 -3
  28. package/dist/src/base/index.mjs +2 -2
  29. package/dist/src/executors/config/executor.js +4 -4
  30. package/dist/src/executors/config/executor.mjs +3 -3
  31. package/dist/src/executors/import/executor.js +4 -4
  32. package/dist/src/executors/import/executor.mjs +3 -3
  33. package/dist/src/executors/preview/executor.js +4 -4
  34. package/dist/src/executors/preview/executor.mjs +3 -3
  35. package/dist/src/executors/refresh/executor.js +4 -4
  36. package/dist/src/executors/refresh/executor.mjs +3 -3
  37. package/dist/src/executors/up/executor.js +4 -4
  38. package/dist/src/executors/up/executor.mjs +3 -3
  39. package/dist/src/generators/init/generator.js +3 -3
  40. package/dist/src/generators/init/generator.mjs +2 -2
  41. package/package.json +1 -1
@@ -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) {
@@ -2031,12 +2037,12 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
2031
2037
 
2032
2038
  // ../esbuild/src/build.ts
2033
2039
  import { watch as createWatcher } from "chokidar";
2034
- import defu4 from "defu";
2040
+ import defu5 from "defu";
2035
2041
  import { debounce, flatten } from "es-toolkit";
2036
2042
  import { map } from "es-toolkit/compat";
2037
2043
  import * as esbuild2 from "esbuild";
2038
2044
  import { globbySync } from "globby";
2039
- import { existsSync as existsSync6 } from "node:fs";
2045
+ import { existsSync as existsSync7 } from "node:fs";
2040
2046
  import hf from "node:fs/promises";
2041
2047
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
2042
2048
 
@@ -2423,7 +2429,7 @@ __name(bundleTypeDefinitions, "bundleTypeDefinitions");
2423
2429
  var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
2424
2430
  name: "storm:tsc",
2425
2431
  setup(build4) {
2426
- if (options.emitTypes === false) {
2432
+ if (options.dts === false) {
2427
2433
  return;
2428
2434
  }
2429
2435
  build4.onStart(async () => {
@@ -2475,7 +2481,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) =
2475
2481
  var DEFAULT_BUILD_OPTIONS = {
2476
2482
  platform: "node",
2477
2483
  target: "node22",
2478
- format: "cjs",
2484
+ format: "esm",
2479
2485
  external: [],
2480
2486
  logLevel: "error",
2481
2487
  tsconfig: "tsconfig.json",
@@ -2624,6 +2630,155 @@ var shebangRenderer = {
2624
2630
  }
2625
2631
  };
2626
2632
 
2633
+ // ../esbuild/src/tsc.ts
2634
+ import { loadTsConfig } from "bundle-require";
2635
+ import defu4 from "defu";
2636
+ import { existsSync as existsSync6, mkdirSync, writeFileSync } from "node:fs";
2637
+ import { dirname as dirname2, isAbsolute as isAbsolute2, join as join3, normalize } from "node:path";
2638
+ import ts from "typescript";
2639
+ function ensureTempDeclarationDir(workspaceConfig) {
2640
+ const root = workspaceConfig.directories.temp || join3(workspaceConfig.workspaceRoot, "tmp");
2641
+ const dirPath = join3(root, ".tsc", "declaration");
2642
+ if (existsSync6(dirPath)) {
2643
+ return dirPath;
2644
+ }
2645
+ mkdirSync(dirPath, {
2646
+ recursive: true
2647
+ });
2648
+ const gitIgnorePath = join3(root, ".tsc", ".gitignore");
2649
+ writeFileSync(gitIgnorePath, "**/*\n");
2650
+ return dirPath;
2651
+ }
2652
+ __name(ensureTempDeclarationDir, "ensureTempDeclarationDir");
2653
+ function slash(path7) {
2654
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
2655
+ if (isExtendedLengthPath) {
2656
+ return path7;
2657
+ }
2658
+ return path7.replace(/\\/g, "/");
2659
+ }
2660
+ __name(slash, "slash");
2661
+ function toAbsolutePath(workspaceConfig, p, cwd) {
2662
+ if (isAbsolute2(p)) {
2663
+ return p;
2664
+ }
2665
+ return slash(normalize(join3(cwd || workspaceConfig.workspaceRoot, p)));
2666
+ }
2667
+ __name(toAbsolutePath, "toAbsolutePath");
2668
+ var AliasPool = class AliasPool2 {
2669
+ static {
2670
+ __name(this, "AliasPool");
2671
+ }
2672
+ seen = /* @__PURE__ */ new Set();
2673
+ assign(name) {
2674
+ let suffix = 0;
2675
+ let alias = name === "default" ? "default_alias" : name;
2676
+ while (this.seen.has(alias)) {
2677
+ alias = `${name}_alias_${++suffix}`;
2678
+ if (suffix >= 1e3) {
2679
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
2680
+ }
2681
+ }
2682
+ this.seen.add(alias);
2683
+ return alias;
2684
+ }
2685
+ };
2686
+ function getExports(workspaceConfig, program, fileMapping) {
2687
+ const checker = program.getTypeChecker();
2688
+ const aliasPool = new AliasPool();
2689
+ const assignAlias = aliasPool.assign.bind(aliasPool);
2690
+ function extractExports(sourceFileName) {
2691
+ const cwd = program.getCurrentDirectory();
2692
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
2693
+ const sourceFile = program.getSourceFile(sourceFileName);
2694
+ if (!sourceFile) {
2695
+ return [];
2696
+ }
2697
+ const destFileName = fileMapping.get(sourceFileName);
2698
+ if (!destFileName) {
2699
+ return [];
2700
+ }
2701
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
2702
+ if (!moduleSymbol) {
2703
+ return [];
2704
+ }
2705
+ const exports = [];
2706
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
2707
+ exportSymbols.forEach((symbol) => {
2708
+ const name = symbol.getName();
2709
+ exports.push({
2710
+ kind: "named",
2711
+ sourceFileName,
2712
+ destFileName,
2713
+ name,
2714
+ alias: assignAlias(name),
2715
+ isTypeOnly: false
2716
+ });
2717
+ });
2718
+ return exports;
2719
+ }
2720
+ __name(extractExports, "extractExports");
2721
+ return program.getRootFileNames().flatMap(extractExports);
2722
+ }
2723
+ __name(getExports, "getExports");
2724
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
2725
+ const fileMapping = /* @__PURE__ */ new Map();
2726
+ const writeFile3 = /* @__PURE__ */ __name((fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
2727
+ const sourceFile = sourceFiles?.[0];
2728
+ const sourceFileName = sourceFile?.fileName;
2729
+ if (sourceFileName && !fileName.endsWith(".map")) {
2730
+ const cwd = program.getCurrentDirectory();
2731
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
2732
+ }
2733
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
2734
+ }, "writeFile");
2735
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
2736
+ const diagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
2737
+ const diagnosticMessages = [];
2738
+ diagnostics.forEach((diagnostic) => {
2739
+ if (diagnostic.file) {
2740
+ const { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
2741
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2742
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
2743
+ } else {
2744
+ const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
2745
+ diagnosticMessages.push(message);
2746
+ }
2747
+ });
2748
+ const diagnosticMessage = diagnosticMessages.join("\n");
2749
+ if (diagnosticMessage) {
2750
+ writeError(`Failed to emit declaration files.
2751
+
2752
+ ${diagnosticMessage}`, workspaceConfig);
2753
+ throw new Error("TypeScript compilation failed");
2754
+ }
2755
+ return fileMapping;
2756
+ }
2757
+ __name(emitDtsFiles, "emitDtsFiles");
2758
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
2759
+ const rawTsconfig = loadTsConfig(workspaceConfig.workspaceRoot, tsconfig);
2760
+ if (!rawTsconfig) {
2761
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
2762
+ }
2763
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
2764
+ const parsedTsconfig = ts.parseJsonConfigFileContent(defu4({
2765
+ compilerOptions: {
2766
+ // Enable declaration emit and disable javascript emit
2767
+ noEmit: false,
2768
+ declaration: true,
2769
+ declarationMap: true,
2770
+ declarationDir,
2771
+ emitDeclarationOnly: true
2772
+ }
2773
+ }, tsconfigRaw?.compilerOptions ?? {}, rawTsconfig.data ?? {}), ts.sys, tsconfig ? dirname2(tsconfig) : "./");
2774
+ const options = parsedTsconfig.options;
2775
+ const host = ts.createCompilerHost(options);
2776
+ const program = ts.createProgram(parsedTsconfig.fileNames, options, host);
2777
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
2778
+ return getExports(workspaceConfig, program, fileMapping);
2779
+ }
2780
+ __name(emitDts, "emitDts");
2781
+
2627
2782
  // ../esbuild/src/utilities/get-entry-points.ts
2628
2783
  import { glob as glob3 } from "glob";
2629
2784
  var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
@@ -2785,7 +2940,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2785
2940
  exitOnError: true
2786
2941
  });
2787
2942
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
2788
- if (!existsSync6(projectJsonPath)) {
2943
+ if (!existsSync7(projectJsonPath)) {
2789
2944
  throw new Error("Cannot find project.json configuration");
2790
2945
  }
2791
2946
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -2795,11 +2950,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2795
2950
  if (!projectConfigurations?.projects?.[projectName]) {
2796
2951
  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
2952
  }
2798
- const options = defu4(userOptions, DEFAULT_BUILD_OPTIONS);
2953
+ const options = defu5(userOptions, DEFAULT_BUILD_OPTIONS);
2799
2954
  options.name ??= `${projectName}-${options.format}`;
2800
2955
  options.target ??= DEFAULT_TARGET;
2801
2956
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
2802
- if (!existsSync6(packageJsonPath)) {
2957
+ if (!existsSync7(packageJsonPath)) {
2803
2958
  throw new Error("Cannot find package.json configuration");
2804
2959
  }
2805
2960
  const env = getEnv("esbuild", options);
@@ -2881,11 +3036,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
2881
3036
  return result;
2882
3037
  }, "resolveOptions");
2883
3038
  async function generatePackageJson(context2) {
2884
- if (context2.options.generatePackageJson !== false && existsSync6(joinPaths(context2.options.projectRoot, "package.json"))) {
3039
+ if (context2.options.generatePackageJson !== false && existsSync7(joinPaths(context2.options.projectRoot, "package.json"))) {
2885
3040
  writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
2886
3041
  const stopwatch = getStopwatch("Write package.json file");
2887
3042
  const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
2888
- if (!existsSync6(packageJsonPath)) {
3043
+ if (!existsSync7(packageJsonPath)) {
2889
3044
  throw new Error("Cannot find package.json configuration");
2890
3045
  }
2891
3046
  const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
@@ -2956,6 +3111,7 @@ async function executeEsBuild(context2) {
2956
3111
  options.inject === {}) {
2957
3112
  delete options.inject;
2958
3113
  }
3114
+ delete options.dts;
2959
3115
  delete options.env;
2960
3116
  delete options.name;
2961
3117
  delete options.assets;
@@ -2991,6 +3147,16 @@ ${formatLogMessage({
2991
3147
  return context2;
2992
3148
  }
2993
3149
  __name(executeEsBuild, "executeEsBuild");
3150
+ async function executeTypescript(context2) {
3151
+ if (context2.result?.errors.length === 0 && context2.options.dts) {
3152
+ writeDebug(` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
3153
+ const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
3154
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
3155
+ stopwatch();
3156
+ }
3157
+ return context2;
3158
+ }
3159
+ __name(executeTypescript, "executeTypescript");
2994
3160
  async function copyBuildAssets(context2) {
2995
3161
  if (context2.result?.errors.length === 0) {
2996
3162
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
@@ -3007,6 +3173,9 @@ async function reportResults(context2) {
3007
3173
  writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
3008
3174
  }
3009
3175
  writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
3176
+ } else if (context2.result?.errors && context2.result?.errors.length > 0) {
3177
+ writeError(` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
3178
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
3010
3179
  }
3011
3180
  }
3012
3181
  __name(reportResults, "reportResults");
@@ -3061,7 +3230,7 @@ async function build3(options) {
3061
3230
  throw new Error("No build options were provided");
3062
3231
  }
3063
3232
  void transduce.async(opts, dependencyCheck);
3064
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
3233
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
3065
3234
  writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
3066
3235
  } catch (error) {
3067
3236
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
@@ -3138,7 +3307,7 @@ import { execSync as execSync4 } from "node:child_process";
3138
3307
  import { readFile as readFile6 } from "node:fs/promises";
3139
3308
 
3140
3309
  // ../workspace-tools/src/utils/pnpm-deps-update.ts
3141
- import { existsSync as existsSync7 } from "node:fs";
3310
+ import { existsSync as existsSync8 } from "node:fs";
3142
3311
  import { readFile as readFile5, writeFile as writeFile2 } from "node:fs/promises";
3143
3312
  import { format } from "prettier";
3144
3313
  import readYamlFile from "read-yaml-file";
@@ -3217,7 +3386,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
3217
3386
  });
3218
3387
 
3219
3388
  // ../workspace-tools/src/executors/unbuild/executor.ts
3220
- import { defu as defu5 } from "defu";
3389
+ import { defu as defu6 } from "defu";
3221
3390
  import { createJiti } from "jiti";
3222
3391
  async function unbuildExecutorFn(options, context2, config) {
3223
3392
  writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
@@ -3235,7 +3404,7 @@ async function unbuildExecutorFn(options, context2, config) {
3235
3404
  interopDefault: true
3236
3405
  });
3237
3406
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
3238
- await stormUnbuild.build(defu5({
3407
+ await stormUnbuild.build(defu6({
3239
3408
  ...options,
3240
3409
  projectRoot: context2.projectsConfigurations.projects[context2.projectName].root,
3241
3410
  projectName: context2.projectName,
@@ -4693,27 +4862,27 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
4693
4862
 
4694
4863
  // ../workspace-tools/src/utils/lock-file.ts
4695
4864
  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";
4865
+ import { existsSync as existsSync9 } from "node:fs";
4866
+ import { join as join5 } from "node:path";
4698
4867
  import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
4699
4868
  import { getPnpmLockfileDependencies, getPnpmLockfileNodes } from "nx/src/plugins/js/lock-file/pnpm-parser";
4700
4869
  import { getYarnLockfileDependencies, getYarnLockfileNodes } from "nx/src/plugins/js/lock-file/yarn-parser";
4701
4870
  var YARN_LOCK_FILE = "yarn.lock";
4702
4871
  var NPM_LOCK_FILE = "package-lock.json";
4703
4872
  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);
4873
+ var YARN_LOCK_PATH = join5(workspaceRoot2, YARN_LOCK_FILE);
4874
+ var NPM_LOCK_PATH = join5(workspaceRoot2, NPM_LOCK_FILE);
4875
+ var PNPM_LOCK_PATH = join5(workspaceRoot2, PNPM_LOCK_FILE);
4707
4876
 
4708
4877
  // ../workspace-tools/src/utils/package-helpers.ts
4709
4878
  import { joinPathFragments as joinPathFragments6, readJsonFile as readJsonFile2 } from "@nx/devkit";
4710
- import { existsSync as existsSync9 } from "node:fs";
4879
+ import { existsSync as existsSync10 } from "node:fs";
4711
4880
 
4712
4881
  // ../workspace-tools/src/utils/plugin-helpers.ts
4713
4882
  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";
4883
+ import defu7 from "defu";
4884
+ import { existsSync as existsSync11 } from "node:fs";
4885
+ import { dirname as dirname3, join as join6 } from "node:path";
4717
4886
 
4718
4887
  // ../workspace-tools/src/utils/typia-transform.ts
4719
4888
  import transform2 from "typia/lib/transform";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-5IVEJ34A.mjs";
3
+ } from "./chunk-HRV4XKW4.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-HRV4XKW4.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor("refresh", (options) => [
@@ -5,7 +5,7 @@ import {
5
5
  initGenerator,
6
6
  run,
7
7
  withRunGenerator
8
- } from "./chunk-HJVG56K3.mjs";
8
+ } from "./chunk-L2IHRS7N.mjs";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-Y4D6KHJP.mjs";
@@ -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 _chunk3E7U32YZjs = require('./chunk-3E7U32YZ.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 = _chunk3E7U32YZjs.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 = _chunk3E7U32YZjs.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
+ _chunk3E7U32YZjs.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
+ _chunk3E7U32YZjs.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,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 _chunk3E7U32YZjs = require('./chunk-3E7U32YZ.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 _chunk3E7U32YZjs.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
+ _chunk3E7U32YZjs.run.call(void 0, config, [
22
22
  "pulumi",
23
23
  command,
24
24
  ...argsMapper(options)
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-3HKYDFFV.js');
3
+ require('./chunk-KDNAYWKN.js');
4
+ require('./chunk-APBJOTY3.js');
5
+ require('./chunk-CS4YJFOV.js');
6
+ require('./chunk-GBL7OLQF.js');
7
+ require('./chunk-UXXOZVCJ.js');
8
+ require('./chunk-3E7U32YZ.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-ELJDSZB2.mjs";
3
+ import "./chunk-QCE5MXIG.mjs";
4
+ import "./chunk-NFQLTGXG.mjs";
5
+ import "./chunk-BPD7ONO7.mjs";
6
+ import "./chunk-HJNJ7YU6.mjs";
7
+ import "./chunk-HRV4XKW4.mjs";
8
+ import "./chunk-L2IHRS7N.mjs";
9
9
  import "./chunk-Y4D6KHJP.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 _chunk5C2GNELZjs = require('./chunk-5C2GNELZ.js');
4
+ var _chunkTU3Q3T7Djs = require('./chunk-TU3Q3T7D.js');
5
5
  require('./chunk-DBLK3NPE.js');
6
- require('./chunk-X3NRJ4N7.js');
6
+ require('./chunk-3E7U32YZ.js');
7
7
  require('./chunk-3GQAWCBQ.js');
8
8
 
9
9
 
10
- exports.initGeneratorFn = _chunk5C2GNELZjs.initGeneratorFn;
10
+ exports.initGeneratorFn = _chunkTU3Q3T7Djs.initGeneratorFn;
@@ -1,9 +1,9 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-HFYFHIZK.mjs";
4
+ } from "./chunk-QNO5QCOA.mjs";
5
5
  import "./chunk-KDG5WTN4.mjs";
6
- import "./chunk-HJVG56K3.mjs";
6
+ import "./chunk-L2IHRS7N.mjs";
7
7
  import "./chunk-Y4D6KHJP.mjs";
8
8
  export {
9
9
  initGeneratorFn
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO62WWX4.js');
2
- require('./chunk-2UH4RRNW.js');
3
- require('./chunk-YCVKG6JS.js');
4
- require('./chunk-PJF55MGD.js');
5
- require('./chunk-U4TQH734.js');
2
+ require('./chunk-3HKYDFFV.js');
3
+ require('./chunk-KDNAYWKN.js');
4
+ require('./chunk-APBJOTY3.js');
5
+ require('./chunk-CS4YJFOV.js');
6
6
  require('./chunk-N2YKXZ5R.js');
7
7
 
8
8
 
9
- var _chunk5C2GNELZjs = require('./chunk-5C2GNELZ.js');
9
+ var _chunkTU3Q3T7Djs = require('./chunk-TU3Q3T7D.js');
10
10
  require('./chunk-GUQOEBFW.js');
11
11
 
12
12
 
13
13
 
14
14
  var _chunkDBLK3NPEjs = require('./chunk-DBLK3NPE.js');
15
- require('./chunk-2GIUPJHS.js');
15
+ require('./chunk-GBL7OLQF.js');
16
16
 
17
17
 
18
- var _chunk763TSWDBjs = require('./chunk-763TSWDB.js');
19
- require('./chunk-X3NRJ4N7.js');
18
+ var _chunkUXXOZVCJjs = require('./chunk-UXXOZVCJ.js');
19
+ require('./chunk-3E7U32YZ.js');
20
20
  require('./chunk-3GQAWCBQ.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
- exports.Provider = _chunkDBLK3NPEjs.Provider; exports.getCloudTemplateName = _chunkDBLK3NPEjs.getCloudTemplateName; exports.initGeneratorFn = _chunk5C2GNELZjs.initGeneratorFn; exports.withPulumiExecutor = _chunk763TSWDBjs.withPulumiExecutor;
26
+ exports.Provider = _chunkDBLK3NPEjs.Provider; exports.getCloudTemplateName = _chunkDBLK3NPEjs.getCloudTemplateName; exports.initGeneratorFn = _chunkTU3Q3T7Djs.initGeneratorFn; exports.withPulumiExecutor = _chunkUXXOZVCJjs.withPulumiExecutor;
package/dist/index.mjs CHANGED
@@ -1,22 +1,22 @@
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";
2
+ import "./chunk-ELJDSZB2.mjs";
3
+ import "./chunk-QCE5MXIG.mjs";
4
+ import "./chunk-NFQLTGXG.mjs";
5
+ import "./chunk-BPD7ONO7.mjs";
6
6
  import "./chunk-23KFTIT2.mjs";
7
7
  import {
8
8
  initGeneratorFn
9
- } from "./chunk-HFYFHIZK.mjs";
9
+ } from "./chunk-QNO5QCOA.mjs";
10
10
  import "./chunk-CA7S5MOH.mjs";
11
11
  import {
12
12
  Provider,
13
13
  getCloudTemplateName
14
14
  } from "./chunk-KDG5WTN4.mjs";
15
- import "./chunk-TVI5BFN7.mjs";
15
+ import "./chunk-HJNJ7YU6.mjs";
16
16
  import {
17
17
  withPulumiExecutor
18
- } from "./chunk-5IVEJ34A.mjs";
19
- import "./chunk-HJVG56K3.mjs";
18
+ } from "./chunk-HRV4XKW4.mjs";
19
+ import "./chunk-L2IHRS7N.mjs";
20
20
  import "./chunk-Y4D6KHJP.mjs";
21
21
  export {
22
22
  Provider,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk763TSWDBjs = require('../../chunk-763TSWDB.js');
4
- require('../../chunk-X3NRJ4N7.js');
3
+ var _chunkUXXOZVCJjs = require('../../chunk-UXXOZVCJ.js');
4
+ require('../../chunk-3E7U32YZ.js');
5
5
  require('../../chunk-3GQAWCBQ.js');
6
6
 
7
7
 
8
- exports.withPulumiExecutor = _chunk763TSWDBjs.withPulumiExecutor;
8
+ exports.withPulumiExecutor = _chunkUXXOZVCJjs.withPulumiExecutor;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "../../chunk-5IVEJ34A.mjs";
4
- import "../../chunk-HJVG56K3.mjs";
3
+ } from "../../chunk-HRV4XKW4.mjs";
4
+ import "../../chunk-L2IHRS7N.mjs";
5
5
  import "../../chunk-Y4D6KHJP.mjs";
6
6
  export {
7
7
  withPulumiExecutor
@@ -5,11 +5,11 @@
5
5
  var _chunkDBLK3NPEjs = require('../../chunk-DBLK3NPE.js');
6
6
 
7
7
 
8
- var _chunk763TSWDBjs = require('../../chunk-763TSWDB.js');
9
- require('../../chunk-X3NRJ4N7.js');
8
+ var _chunkUXXOZVCJjs = require('../../chunk-UXXOZVCJ.js');
9
+ require('../../chunk-3E7U32YZ.js');
10
10
  require('../../chunk-3GQAWCBQ.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
- exports.Provider = _chunkDBLK3NPEjs.Provider; exports.getCloudTemplateName = _chunkDBLK3NPEjs.getCloudTemplateName; exports.withPulumiExecutor = _chunk763TSWDBjs.withPulumiExecutor;
15
+ exports.Provider = _chunkDBLK3NPEjs.Provider; exports.getCloudTemplateName = _chunkDBLK3NPEjs.getCloudTemplateName; exports.withPulumiExecutor = _chunkUXXOZVCJjs.withPulumiExecutor;