@storm-software/pulumi-tools 0.22.49 → 0.22.51

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 (48) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +9 -2
  3. package/dist/{chunk-4REM76WO.js → chunk-2XDR64Q7.js} +2 -2
  4. package/dist/{chunk-W7FKIQO3.mjs → chunk-37QF4L3B.mjs} +12 -8
  5. package/dist/{chunk-EJZPKILO.mjs → chunk-3LF5R4GG.mjs} +1 -1
  6. package/dist/{chunk-5E4H3HC7.mjs → chunk-7NBBTCSH.mjs} +4 -4
  7. package/dist/{chunk-SKWXHOHH.mjs → chunk-BNNTAPI4.mjs} +1 -1
  8. package/dist/{chunk-QRKRSYUS.mjs → chunk-GQML4MF2.mjs} +1 -1
  9. package/dist/{chunk-OXBPOWTY.js → chunk-HVRWP454.js} +2 -2
  10. package/dist/{chunk-GGOPFBM7.js → chunk-L67M4GGM.js} +6 -6
  11. package/dist/{chunk-CRE7DA5C.js → chunk-LDVKFDVP.js} +2 -2
  12. package/dist/{chunk-Z4RT2SAG.js → chunk-LVZGXD5L.js} +3 -3
  13. package/dist/{chunk-QG7UBXF7.mjs → chunk-MFGBB2XU.mjs} +1 -1
  14. package/dist/{chunk-CLAWAOP4.mjs → chunk-MVWHPU27.mjs} +1 -1
  15. package/dist/{chunk-N46FTNFP.js → chunk-NVP4WVKG.js} +11 -7
  16. package/dist/{chunk-NEWWLVPK.mjs → chunk-QFLCNIYZ.mjs} +1 -1
  17. package/dist/{chunk-YYOE5FZM.mjs → chunk-VOWKHCC3.mjs} +1 -1
  18. package/dist/{chunk-XEUYPX3P.js → chunk-ZIUUODSM.js} +2 -2
  19. package/dist/{chunk-XGHDA6AY.js → chunk-ZLB4CGRJ.js} +2 -2
  20. package/dist/executors.js +7 -7
  21. package/dist/executors.mjs +8 -8
  22. package/dist/generators.js +3 -3
  23. package/dist/generators.mjs +3 -3
  24. package/dist/index.js +9 -9
  25. package/dist/index.mjs +9 -9
  26. package/dist/src/base/base-executor.js +3 -3
  27. package/dist/src/base/base-executor.mjs +3 -3
  28. package/dist/src/base/index.js +3 -3
  29. package/dist/src/base/index.mjs +3 -3
  30. package/dist/src/base/providers.mjs +1 -1
  31. package/dist/src/executors/config/executor.js +4 -4
  32. package/dist/src/executors/config/executor.mjs +4 -4
  33. package/dist/src/executors/import/executor.js +4 -4
  34. package/dist/src/executors/import/executor.mjs +4 -4
  35. package/dist/src/executors/preview/executor.js +4 -4
  36. package/dist/src/executors/preview/executor.mjs +4 -4
  37. package/dist/src/executors/refresh/executor.js +4 -4
  38. package/dist/src/executors/refresh/executor.mjs +4 -4
  39. package/dist/src/executors/up/executor.js +4 -4
  40. package/dist/src/executors/up/executor.mjs +4 -4
  41. package/dist/src/generators/init/generator.js +3 -3
  42. package/dist/src/generators/init/generator.mjs +3 -3
  43. package/dist/src/lib/aws/index.mjs +1 -1
  44. package/dist/src/lib/aws/providers.mjs +1 -1
  45. package/dist/tsup.config.mjs +1 -1
  46. package/package.json +5 -5
  47. package/dist/chunk-6RXGAQNF.js +0 -133
  48. package/dist/chunk-6YLVRP2Z.mjs +0 -133
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.22.50](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.50) (11/27/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files and `Cargo.lock`
10
+ ([5758ea3f0](https://github.com/storm-software/storm-ops/commit/5758ea3f0))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated **workspace-tools** to **v1.293.20**
15
+ - Updated **config-tools** to **v1.188.50**
16
+ - Updated **config** to **v1.134.50**
17
+
18
+ ## [0.22.49](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.49) (11/25/2025)
19
+
20
+ ### Updated Dependencies
21
+
22
+ - Updated **workspace-tools** to **v1.293.19**
23
+ - Updated **config-tools** to **v1.188.49**
24
+ - Updated **config** to **v1.134.49**
25
+
5
26
  ## [0.22.48](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.48) (11/20/2025)
6
27
 
7
28
  ### Miscellaneous
package/README.md CHANGED
@@ -3,7 +3,13 @@
3
3
  <!-- markdownlint-disable -->
4
4
 
5
5
 
6
- <div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
6
+ <div align="center">
7
+ <picture>
8
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif">
9
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light-optimized.gif">
10
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif" width="100%" alt="Storm Software" />
11
+ </picture>
12
+ </div>
7
13
  <br />
8
14
 
9
15
  <div align="center">
@@ -21,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
27
 
22
28
  <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
29
 
24
- [![Version](https://img.shields.io/badge/version-0.22.46-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)
30
+ [![Version](https://img.shields.io/badge/version-0.22.49-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
31
 
26
32
  <!-- prettier-ignore-start -->
27
33
  <!-- markdownlint-disable -->
@@ -40,6 +46,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
46
 
41
47
  <!-- START doctoc -->
42
48
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
49
+
43
50
  ## Table of Contents
44
51
 
45
52
  - [Storm Pulumi Tools](#storm-pulumi-tools)
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
3
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunkZ4RT2SAGjs.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkLVZGXD5Ljs.withPulumiExecutor.call(void 0, "config", (options) => [
7
7
  options.action,
8
8
  options.showSecrets && `--show-secrets`,
9
9
  options.secret && `--secret`,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __dirname
3
- } from "./chunk-YYOE5FZM.mjs";
3
+ } from "./chunk-VOWKHCC3.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/run.ts
6
6
  import { exec, execSync } from "node:child_process";
@@ -2569,11 +2569,15 @@ import https from "node:https";
2569
2569
  var LARGE_BUFFER2 = 1024 * 1e6;
2570
2570
 
2571
2571
  // ../build-tools/src/config.ts
2572
- var DEFAULT_COMPILED_BANNER = `/*****************************************
2573
- *
2574
- * \u26A1 Built by Storm Software
2575
- *
2576
- *****************************************/
2572
+ var DEFAULT_JS_BANNER = `
2573
+ // ---------------------------------------
2574
+ // \u26A1 Built by Storm Software
2575
+ // ---------------------------------------
2576
+ `;
2577
+ var DEFAULT_CSS_BANNER = `
2578
+ /* ---------------------------------------
2579
+ \u26A1 Built by Storm Software
2580
+ --------------------------------------- */
2577
2581
  `;
2578
2582
  var DEFAULT_ENVIRONMENT = "production";
2579
2583
  var DEFAULT_TARGET = "esnext";
@@ -2938,8 +2942,8 @@ var DEFAULT_BUILD_OPTIONS = {
2938
2942
  ".woff2": "file"
2939
2943
  },
2940
2944
  banner: {
2941
- js: DEFAULT_COMPILED_BANNER,
2942
- css: DEFAULT_COMPILED_BANNER
2945
+ js: DEFAULT_JS_BANNER,
2946
+ css: DEFAULT_CSS_BANNER
2943
2947
  }
2944
2948
  };
2945
2949
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-SKWXHOHH.mjs";
3
+ } from "./chunk-BNNTAPI4.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -1,11 +1,11 @@
1
+ import {
2
+ getCloudTemplateName
3
+ } from "./chunk-5TB4HFDP.mjs";
1
4
  import {
2
5
  initGenerator,
3
6
  run,
4
7
  withRunGenerator
5
- } from "./chunk-W7FKIQO3.mjs";
6
- import {
7
- getCloudTemplateName
8
- } from "./chunk-5TB4HFDP.mjs";
8
+ } from "./chunk-37QF4L3B.mjs";
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-W7FKIQO3.mjs";
4
+ } from "./chunk-37QF4L3B.mjs";
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  import { join } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-SKWXHOHH.mjs";
3
+ } from "./chunk-BNNTAPI4.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
3
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
4
4
 
5
5
  // src/executors/up/executor.ts
6
- var executor_default = _chunkZ4RT2SAGjs.withPulumiExecutor.call(void 0, "up", (options) => [
6
+ var executor_default = _chunkLVZGXD5Ljs.withPulumiExecutor.call(void 0, "up", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
3
4
 
4
5
 
5
- var _chunkN46FTNFPjs = require('./chunk-N46FTNFP.js');
6
6
 
7
7
 
8
- var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
8
+ var _chunkNVP4WVKGjs = require('./chunk-NVP4WVKG.js');
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
 
@@ -18,7 +18,7 @@ var _devkit = require('@nx/devkit');
18
18
  var _fs = require('fs');
19
19
  var _path = require('path');
20
20
  async function initGeneratorFn(tree, options, config) {
21
- const task = _chunkN46FTNFPjs.initGenerator.call(void 0, tree, options);
21
+ const task = _chunkNVP4WVKGjs.initGenerator.call(void 0, tree, options);
22
22
  _devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
23
23
  root: options.directory || "./deployment",
24
24
  projectType: "application",
@@ -54,14 +54,14 @@ async function initGeneratorFn(tree, options, config) {
54
54
  }
55
55
  return task;
56
56
  }
57
- var generator_default = _chunkN46FTNFPjs.withRunGenerator.call(void 0,
57
+ var generator_default = _chunkNVP4WVKGjs.withRunGenerator.call(void 0,
58
58
  "Initialize Storm Pulumi workspace",
59
59
  initGeneratorFn
60
60
  );
61
61
  function generateNewPulumiProject(tree, options, config) {
62
62
  return () => {
63
63
  const template = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
64
- _chunkN46FTNFPjs.run.call(void 0,
64
+ _chunkNVP4WVKGjs.run.call(void 0,
65
65
  config,
66
66
  [
67
67
  `pulumi new ${template}`,
@@ -85,7 +85,7 @@ function loginToPulumi(tree, options, config) {
85
85
  if (options.login.startsWith("file://")) {
86
86
  options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
87
87
  }
88
- _chunkN46FTNFPjs.run.call(void 0,
88
+ _chunkNVP4WVKGjs.run.call(void 0,
89
89
  config,
90
90
  ["pulumi login", options.login].filter(Boolean).join(" "),
91
91
  _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
3
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
4
4
 
5
5
  // src/executors/preview/executor.ts
6
- var executor_default = _chunkZ4RT2SAGjs.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkLVZGXD5Ljs.withPulumiExecutor.call(void 0,
7
7
  "preview",
8
8
  (options) => [
9
9
  options.stack && `--stack=${options.stack}`,
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkN46FTNFPjs = require('./chunk-N46FTNFP.js');
4
+ var _chunkNVP4WVKGjs = require('./chunk-NVP4WVKG.js');
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  var _path = require('path');
8
8
  var _shelljs = require('shelljs');
9
9
  var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_options, context) => {
10
- return _chunkN46FTNFPjs.withRunExecutor.call(void 0,
10
+ return _chunkNVP4WVKGjs.withRunExecutor.call(void 0,
11
11
  `Pulumi \`${command}\` Command Executor`,
12
12
  async (options, context2, config) => {
13
13
  if (!_shelljs.which.call(void 0, "pulumi")) {
@@ -21,7 +21,7 @@ var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_
21
21
  );
22
22
  }
23
23
  const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
24
- _chunkN46FTNFPjs.run.call(void 0,
24
+ _chunkNVP4WVKGjs.run.call(void 0,
25
25
  config,
26
26
  ["pulumi", command, ...argsMapper(options)].filter(Boolean).join(" "),
27
27
  _path.join.call(void 0, config.workspaceRoot, options.root || sourceRoot),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-SKWXHOHH.mjs";
3
+ } from "./chunk-BNNTAPI4.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-SKWXHOHH.mjs";
3
+ } from "./chunk-BNNTAPI4.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -2565,11 +2565,15 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
2565
2565
  var LARGE_BUFFER2 = 1024 * 1e6;
2566
2566
 
2567
2567
  // ../build-tools/src/config.ts
2568
- var DEFAULT_COMPILED_BANNER = `/*****************************************
2569
- *
2570
- * \u26A1 Built by Storm Software
2571
- *
2572
- *****************************************/
2568
+ var DEFAULT_JS_BANNER = `
2569
+ // ---------------------------------------
2570
+ // \u26A1 Built by Storm Software
2571
+ // ---------------------------------------
2572
+ `;
2573
+ var DEFAULT_CSS_BANNER = `
2574
+ /* ---------------------------------------
2575
+ \u26A1 Built by Storm Software
2576
+ --------------------------------------- */
2573
2577
  `;
2574
2578
  var DEFAULT_ENVIRONMENT = "production";
2575
2579
  var DEFAULT_TARGET = "esnext";
@@ -2934,8 +2938,8 @@ var DEFAULT_BUILD_OPTIONS = {
2934
2938
  ".woff2": "file"
2935
2939
  },
2936
2940
  banner: {
2937
- js: DEFAULT_COMPILED_BANNER,
2938
- css: DEFAULT_COMPILED_BANNER
2941
+ js: DEFAULT_JS_BANNER,
2942
+ css: DEFAULT_CSS_BANNER
2939
2943
  }
2940
2944
  };
2941
2945
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-SKWXHOHH.mjs";
3
+ } from "./chunk-BNNTAPI4.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor(
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__a793dd249f39ab21a45375c80b03a1ea/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__5adfafe360c1e61df03aa1e123559c5f/node_modules/tsup/assets/esm_shims.js
2
2
  import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
3
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
- var executor_default = _chunkZ4RT2SAGjs.withPulumiExecutor.call(void 0,
6
+ var executor_default = _chunkLVZGXD5Ljs.withPulumiExecutor.call(void 0,
7
7
  "refresh",
8
8
  (options) => [
9
9
  "--suppress-progress",
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
3
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunkZ4RT2SAGjs.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkLVZGXD5Ljs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
package/dist/executors.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-XGHDA6AY.js');
3
- require('./chunk-CRE7DA5C.js');
4
- require('./chunk-XEUYPX3P.js');
5
- require('./chunk-OXBPOWTY.js');
6
- require('./chunk-4REM76WO.js');
7
- require('./chunk-Z4RT2SAG.js');
8
- require('./chunk-N46FTNFP.js');
2
+ require('./chunk-ZLB4CGRJ.js');
3
+ require('./chunk-LDVKFDVP.js');
4
+ require('./chunk-ZIUUODSM.js');
5
+ require('./chunk-HVRWP454.js');
6
+ require('./chunk-2XDR64Q7.js');
7
+ require('./chunk-LVZGXD5L.js');
8
+ require('./chunk-NVP4WVKG.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-CLAWAOP4.mjs";
3
- import "./chunk-QRKRSYUS.mjs";
4
- import "./chunk-NEWWLVPK.mjs";
5
- import "./chunk-EJZPKILO.mjs";
6
- import "./chunk-QG7UBXF7.mjs";
7
- import "./chunk-SKWXHOHH.mjs";
8
- import "./chunk-W7FKIQO3.mjs";
9
- import "./chunk-YYOE5FZM.mjs";
2
+ import "./chunk-MVWHPU27.mjs";
3
+ import "./chunk-GQML4MF2.mjs";
4
+ import "./chunk-QFLCNIYZ.mjs";
5
+ import "./chunk-3LF5R4GG.mjs";
6
+ import "./chunk-MFGBB2XU.mjs";
7
+ import "./chunk-BNNTAPI4.mjs";
8
+ import "./chunk-37QF4L3B.mjs";
9
+ import "./chunk-VOWKHCC3.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunk6RXGAQNFjs = require('./chunk-6RXGAQNF.js');
4
+ var _chunkL67M4GGMjs = require('./chunk-L67M4GGM.js');
5
5
  require('./chunk-QDPXTR73.js');
6
- require('./chunk-N46FTNFP.js');
6
+ require('./chunk-NVP4WVKG.js');
7
7
 
8
8
 
9
- exports.initGeneratorFn = _chunk6RXGAQNFjs.initGeneratorFn;
9
+ exports.initGeneratorFn = _chunkL67M4GGMjs.initGeneratorFn;
@@ -1,10 +1,10 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-6YLVRP2Z.mjs";
4
+ } from "./chunk-7NBBTCSH.mjs";
5
5
  import "./chunk-5TB4HFDP.mjs";
6
- import "./chunk-W7FKIQO3.mjs";
7
- import "./chunk-YYOE5FZM.mjs";
6
+ import "./chunk-37QF4L3B.mjs";
7
+ import "./chunk-VOWKHCC3.mjs";
8
8
  export {
9
9
  initGeneratorFn
10
10
  };
package/dist/index.js CHANGED
@@ -8,24 +8,24 @@
8
8
 
9
9
  var _chunk7I63VQP3js = require('./chunk-7I63VQP3.js');
10
10
  require('./chunk-XO62WWX4.js');
11
- require('./chunk-XGHDA6AY.js');
12
- require('./chunk-CRE7DA5C.js');
13
- require('./chunk-XEUYPX3P.js');
14
- require('./chunk-OXBPOWTY.js');
11
+ require('./chunk-ZLB4CGRJ.js');
12
+ require('./chunk-LDVKFDVP.js');
13
+ require('./chunk-ZIUUODSM.js');
14
+ require('./chunk-HVRWP454.js');
15
15
  require('./chunk-N2YKXZ5R.js');
16
16
 
17
17
 
18
- var _chunk6RXGAQNFjs = require('./chunk-6RXGAQNF.js');
18
+ var _chunkL67M4GGMjs = require('./chunk-L67M4GGM.js');
19
19
  require('./chunk-GUQOEBFW.js');
20
20
 
21
21
 
22
22
 
23
23
  var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
24
- require('./chunk-4REM76WO.js');
24
+ require('./chunk-2XDR64Q7.js');
25
25
 
26
26
 
27
- var _chunkZ4RT2SAGjs = require('./chunk-Z4RT2SAG.js');
28
- require('./chunk-N46FTNFP.js');
27
+ var _chunkLVZGXD5Ljs = require('./chunk-LVZGXD5L.js');
28
+ require('./chunk-NVP4WVKG.js');
29
29
 
30
30
 
31
31
 
@@ -37,4 +37,4 @@ require('./chunk-N46FTNFP.js');
37
37
 
38
38
 
39
39
 
40
- exports.Provider = _chunkQDPXTR73js.Provider; exports.ec2Instance = _chunk7I63VQP3js.ec2Instance; exports.getAWSTemplateName = _chunk7I63VQP3js.getAWSTemplateName; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.getProviderOpts = _chunk7I63VQP3js.getProviderOpts; exports.initGeneratorFn = _chunk6RXGAQNFjs.initGeneratorFn; exports.securityGroup = _chunk7I63VQP3js.securityGroup; exports.subnet = _chunk7I63VQP3js.subnet; exports.vpc = _chunk7I63VQP3js.vpc; exports.withPulumiExecutor = _chunkZ4RT2SAGjs.withPulumiExecutor;
40
+ exports.Provider = _chunkQDPXTR73js.Provider; exports.ec2Instance = _chunk7I63VQP3js.ec2Instance; exports.getAWSTemplateName = _chunk7I63VQP3js.getAWSTemplateName; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.getProviderOpts = _chunk7I63VQP3js.getProviderOpts; exports.initGeneratorFn = _chunkL67M4GGMjs.initGeneratorFn; exports.securityGroup = _chunk7I63VQP3js.securityGroup; exports.subnet = _chunk7I63VQP3js.subnet; exports.vpc = _chunk7I63VQP3js.vpc; exports.withPulumiExecutor = _chunkLVZGXD5Ljs.withPulumiExecutor;
package/dist/index.mjs CHANGED
@@ -8,25 +8,25 @@ import {
8
8
  vpc
9
9
  } from "./chunk-S6XCS2TA.mjs";
10
10
  import "./chunk-UV4HQO3Y.mjs";
11
- import "./chunk-CLAWAOP4.mjs";
12
- import "./chunk-QRKRSYUS.mjs";
13
- import "./chunk-NEWWLVPK.mjs";
14
- import "./chunk-EJZPKILO.mjs";
11
+ import "./chunk-MVWHPU27.mjs";
12
+ import "./chunk-GQML4MF2.mjs";
13
+ import "./chunk-QFLCNIYZ.mjs";
14
+ import "./chunk-3LF5R4GG.mjs";
15
15
  import "./chunk-23KFTIT2.mjs";
16
16
  import {
17
17
  initGeneratorFn
18
- } from "./chunk-6YLVRP2Z.mjs";
18
+ } from "./chunk-7NBBTCSH.mjs";
19
19
  import "./chunk-CA7S5MOH.mjs";
20
20
  import {
21
21
  Provider,
22
22
  getCloudTemplateName
23
23
  } from "./chunk-5TB4HFDP.mjs";
24
- import "./chunk-QG7UBXF7.mjs";
24
+ import "./chunk-MFGBB2XU.mjs";
25
25
  import {
26
26
  withPulumiExecutor
27
- } from "./chunk-SKWXHOHH.mjs";
28
- import "./chunk-W7FKIQO3.mjs";
29
- import "./chunk-YYOE5FZM.mjs";
27
+ } from "./chunk-BNNTAPI4.mjs";
28
+ import "./chunk-37QF4L3B.mjs";
29
+ import "./chunk-VOWKHCC3.mjs";
30
30
  export {
31
31
  Provider,
32
32
  ec2Instance,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ4RT2SAGjs = require('../../chunk-Z4RT2SAG.js');
4
- require('../../chunk-N46FTNFP.js');
3
+ var _chunkLVZGXD5Ljs = require('../../chunk-LVZGXD5L.js');
4
+ require('../../chunk-NVP4WVKG.js');
5
5
 
6
6
 
7
- exports.withPulumiExecutor = _chunkZ4RT2SAGjs.withPulumiExecutor;
7
+ exports.withPulumiExecutor = _chunkLVZGXD5Ljs.withPulumiExecutor;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "../../chunk-SKWXHOHH.mjs";
4
- import "../../chunk-W7FKIQO3.mjs";
5
- import "../../chunk-YYOE5FZM.mjs";
3
+ } from "../../chunk-BNNTAPI4.mjs";
4
+ import "../../chunk-37QF4L3B.mjs";
5
+ import "../../chunk-VOWKHCC3.mjs";
6
6
  export {
7
7
  withPulumiExecutor
8
8
  };
@@ -5,10 +5,10 @@
5
5
  var _chunkQDPXTR73js = require('../../chunk-QDPXTR73.js');
6
6
 
7
7
 
8
- var _chunkZ4RT2SAGjs = require('../../chunk-Z4RT2SAG.js');
9
- require('../../chunk-N46FTNFP.js');
8
+ var _chunkLVZGXD5Ljs = require('../../chunk-LVZGXD5L.js');
9
+ require('../../chunk-NVP4WVKG.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.Provider = _chunkQDPXTR73js.Provider; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.withPulumiExecutor = _chunkZ4RT2SAGjs.withPulumiExecutor;
14
+ exports.Provider = _chunkQDPXTR73js.Provider; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.withPulumiExecutor = _chunkLVZGXD5Ljs.withPulumiExecutor;
@@ -5,9 +5,9 @@ import {
5
5
  } from "../../chunk-5TB4HFDP.mjs";
6
6
  import {
7
7
  withPulumiExecutor
8
- } from "../../chunk-SKWXHOHH.mjs";
9
- import "../../chunk-W7FKIQO3.mjs";
10
- import "../../chunk-YYOE5FZM.mjs";
8
+ } from "../../chunk-BNNTAPI4.mjs";
9
+ import "../../chunk-37QF4L3B.mjs";
10
+ import "../../chunk-VOWKHCC3.mjs";
11
11
  export {
12
12
  Provider,
13
13
  getCloudTemplateName,
@@ -2,7 +2,7 @@ import {
2
2
  Provider,
3
3
  getCloudTemplateName
4
4
  } from "../../chunk-5TB4HFDP.mjs";
5
- import "../../chunk-YYOE5FZM.mjs";
5
+ import "../../chunk-VOWKHCC3.mjs";
6
6
  export {
7
7
  Provider,
8
8
  getCloudTemplateName
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4REM76WOjs = require('../../../chunk-4REM76WO.js');
4
- require('../../../chunk-Z4RT2SAG.js');
5
- require('../../../chunk-N46FTNFP.js');
3
+ var _chunk2XDR64Q7js = require('../../../chunk-2XDR64Q7.js');
4
+ require('../../../chunk-LVZGXD5L.js');
5
+ require('../../../chunk-NVP4WVKG.js');
6
6
 
7
7
 
8
- exports.default = _chunk4REM76WOjs.executor_default;
8
+ exports.default = _chunk2XDR64Q7js.executor_default;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-QG7UBXF7.mjs";
4
- import "../../../chunk-SKWXHOHH.mjs";
5
- import "../../../chunk-W7FKIQO3.mjs";
6
- import "../../../chunk-YYOE5FZM.mjs";
3
+ } from "../../../chunk-MFGBB2XU.mjs";
4
+ import "../../../chunk-BNNTAPI4.mjs";
5
+ import "../../../chunk-37QF4L3B.mjs";
6
+ import "../../../chunk-VOWKHCC3.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXGHDA6AYjs = require('../../../chunk-XGHDA6AY.js');
4
- require('../../../chunk-Z4RT2SAG.js');
5
- require('../../../chunk-N46FTNFP.js');
3
+ var _chunkZLB4CGRJjs = require('../../../chunk-ZLB4CGRJ.js');
4
+ require('../../../chunk-LVZGXD5L.js');
5
+ require('../../../chunk-NVP4WVKG.js');
6
6
 
7
7
 
8
- exports.default = _chunkXGHDA6AYjs.executor_default;
8
+ exports.default = _chunkZLB4CGRJjs.executor_default;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-CLAWAOP4.mjs";
4
- import "../../../chunk-SKWXHOHH.mjs";
5
- import "../../../chunk-W7FKIQO3.mjs";
6
- import "../../../chunk-YYOE5FZM.mjs";
3
+ } from "../../../chunk-MVWHPU27.mjs";
4
+ import "../../../chunk-BNNTAPI4.mjs";
5
+ import "../../../chunk-37QF4L3B.mjs";
6
+ import "../../../chunk-VOWKHCC3.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCRE7DA5Cjs = require('../../../chunk-CRE7DA5C.js');
4
- require('../../../chunk-Z4RT2SAG.js');
5
- require('../../../chunk-N46FTNFP.js');
3
+ var _chunkLDVKFDVPjs = require('../../../chunk-LDVKFDVP.js');
4
+ require('../../../chunk-LVZGXD5L.js');
5
+ require('../../../chunk-NVP4WVKG.js');
6
6
 
7
7
 
8
- exports.default = _chunkCRE7DA5Cjs.executor_default;
8
+ exports.default = _chunkLDVKFDVPjs.executor_default;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-QRKRSYUS.mjs";
4
- import "../../../chunk-SKWXHOHH.mjs";
5
- import "../../../chunk-W7FKIQO3.mjs";
6
- import "../../../chunk-YYOE5FZM.mjs";
3
+ } from "../../../chunk-GQML4MF2.mjs";
4
+ import "../../../chunk-BNNTAPI4.mjs";
5
+ import "../../../chunk-37QF4L3B.mjs";
6
+ import "../../../chunk-VOWKHCC3.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXEUYPX3Pjs = require('../../../chunk-XEUYPX3P.js');
4
- require('../../../chunk-Z4RT2SAG.js');
5
- require('../../../chunk-N46FTNFP.js');
3
+ var _chunkZIUUODSMjs = require('../../../chunk-ZIUUODSM.js');
4
+ require('../../../chunk-LVZGXD5L.js');
5
+ require('../../../chunk-NVP4WVKG.js');
6
6
 
7
7
 
8
- exports.default = _chunkXEUYPX3Pjs.executor_default;
8
+ exports.default = _chunkZIUUODSMjs.executor_default;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-NEWWLVPK.mjs";
4
- import "../../../chunk-SKWXHOHH.mjs";
5
- import "../../../chunk-W7FKIQO3.mjs";
6
- import "../../../chunk-YYOE5FZM.mjs";
3
+ } from "../../../chunk-QFLCNIYZ.mjs";
4
+ import "../../../chunk-BNNTAPI4.mjs";
5
+ import "../../../chunk-37QF4L3B.mjs";
6
+ import "../../../chunk-VOWKHCC3.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOXBPOWTYjs = require('../../../chunk-OXBPOWTY.js');
4
- require('../../../chunk-Z4RT2SAG.js');
5
- require('../../../chunk-N46FTNFP.js');
3
+ var _chunkHVRWP454js = require('../../../chunk-HVRWP454.js');
4
+ require('../../../chunk-LVZGXD5L.js');
5
+ require('../../../chunk-NVP4WVKG.js');
6
6
 
7
7
 
8
- exports.default = _chunkOXBPOWTYjs.executor_default;
8
+ exports.default = _chunkHVRWP454js.executor_default;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-EJZPKILO.mjs";
4
- import "../../../chunk-SKWXHOHH.mjs";
5
- import "../../../chunk-W7FKIQO3.mjs";
6
- import "../../../chunk-YYOE5FZM.mjs";
3
+ } from "../../../chunk-3LF5R4GG.mjs";
4
+ import "../../../chunk-BNNTAPI4.mjs";
5
+ import "../../../chunk-37QF4L3B.mjs";
6
+ import "../../../chunk-VOWKHCC3.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6RXGAQNFjs = require('../../../chunk-6RXGAQNF.js');
4
+ var _chunkL67M4GGMjs = require('../../../chunk-L67M4GGM.js');
5
5
  require('../../../chunk-QDPXTR73.js');
6
- require('../../../chunk-N46FTNFP.js');
6
+ require('../../../chunk-NVP4WVKG.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunk6RXGAQNFjs.generator_default; exports.initGeneratorFn = _chunk6RXGAQNFjs.initGeneratorFn;
10
+ exports.default = _chunkL67M4GGMjs.generator_default; exports.initGeneratorFn = _chunkL67M4GGMjs.initGeneratorFn;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-6YLVRP2Z.mjs";
4
+ } from "../../../chunk-7NBBTCSH.mjs";
5
5
  import "../../../chunk-5TB4HFDP.mjs";
6
- import "../../../chunk-W7FKIQO3.mjs";
7
- import "../../../chunk-YYOE5FZM.mjs";
6
+ import "../../../chunk-37QF4L3B.mjs";
7
+ import "../../../chunk-VOWKHCC3.mjs";
8
8
  export {
9
9
  generator_default as default,
10
10
  initGeneratorFn
@@ -8,7 +8,7 @@ import {
8
8
  vpc
9
9
  } from "../../../chunk-S6XCS2TA.mjs";
10
10
  import "../../../chunk-5TB4HFDP.mjs";
11
- import "../../../chunk-YYOE5FZM.mjs";
11
+ import "../../../chunk-VOWKHCC3.mjs";
12
12
  export {
13
13
  ec2Instance,
14
14
  getAWSTemplateName,
@@ -7,7 +7,7 @@ import {
7
7
  vpc
8
8
  } from "../../../chunk-S6XCS2TA.mjs";
9
9
  import "../../../chunk-5TB4HFDP.mjs";
10
- import "../../../chunk-YYOE5FZM.mjs";
10
+ import "../../../chunk-VOWKHCC3.mjs";
11
11
  export {
12
12
  ec2Instance,
13
13
  getAWSTemplateName,
@@ -1,4 +1,4 @@
1
- import "./chunk-YYOE5FZM.mjs";
1
+ import "./chunk-VOWKHCC3.mjs";
2
2
 
3
3
  // tsup.config.ts
4
4
  import { defineConfig } from "tsup";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pulumi-tools",
3
- "version": "0.22.49",
3
+ "version": "0.22.51",
4
4
  "type": "commonjs",
5
5
  "description": "Tools for managing Pulumi infrastructure within a Nx workspace.",
6
6
  "repository": {
@@ -155,9 +155,9 @@
155
155
  "@nx/devkit": "22.0.4",
156
156
  "@pulumi/aws": "^6.83.2",
157
157
  "@pulumi/awsx": "^2.22.0",
158
- "@pulumi/pulumi": "^3.208.0",
159
- "@storm-software/config": "^1.134.49",
160
- "@storm-software/config-tools": "^1.188.49",
158
+ "@pulumi/pulumi": "^3.210.0",
159
+ "@storm-software/config": "^1.134.51",
160
+ "@storm-software/config-tools": "^1.188.51",
161
161
  "defu": "6.1.4",
162
162
  "shelljs": "^0.8.5"
163
163
  },
@@ -171,5 +171,5 @@
171
171
  "publishConfig": { "access": "public" },
172
172
  "executors": "./executors.json",
173
173
  "generators": "./generators.json",
174
- "gitHead": "50d5da65a592cc5ebe3ba46b3793471fd910f863"
174
+ "gitHead": "d41f1248a2121aefd52ac185981cddc2d3d3bfbd"
175
175
  }
@@ -1,133 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
4
-
5
-
6
-
7
-
8
- var _chunkN46FTNFPjs = require('./chunk-N46FTNFP.js');
9
-
10
- // src/generators/init/generator.ts
11
-
12
-
13
-
14
-
15
-
16
-
17
- var _devkit = require('@nx/devkit');
18
- var _fs = require('fs');
19
- var _path = require('path');
20
- async function initGeneratorFn(tree, options, config) {
21
- const task = _chunkN46FTNFPjs.initGenerator.call(void 0, tree, options);
22
- _devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
23
- root: options.directory || "./deployment",
24
- projectType: "application",
25
- sourceRoot: options.directory || "./deployment",
26
- targets: {
27
- up: {
28
- executor: "@nx-extend/pulumi:up",
29
- options: {}
30
- },
31
- preview: {
32
- executor: "@nx-extend/pulumi:preview",
33
- options: {}
34
- },
35
- refresh: {
36
- executor: "@nx-extend/pulumi:refresh",
37
- options: {}
38
- },
39
- import: {
40
- executor: "@nx-extend/pulumi:import",
41
- options: {}
42
- }
43
- },
44
- tags: ["infra:pulumi"]
45
- });
46
- await _devkit.runTasksInSerial.call(void 0,
47
- generateNewPulumiProject(tree, options, config),
48
- loginToPulumi(tree, options, config),
49
- addPulumiDeps(tree, options),
50
- cleanupProject(tree, options)
51
- )();
52
- if (!options.skipFormat) {
53
- await _devkit.formatFiles.call(void 0, tree);
54
- }
55
- return task;
56
- }
57
- var generator_default = _chunkN46FTNFPjs.withRunGenerator.call(void 0,
58
- "Initialize Storm Pulumi workspace",
59
- initGeneratorFn
60
- );
61
- function generateNewPulumiProject(tree, options, config) {
62
- return () => {
63
- const template = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
64
- _chunkN46FTNFPjs.run.call(void 0,
65
- config,
66
- [
67
- `pulumi new ${template}`,
68
- `--name=${options.name || "deployment"}`,
69
- `--dir=${options.directory || "./deployment"}`,
70
- options.secretsProvider && `--secrets-provider=${options.secretsProvider}`,
71
- "--generate-only",
72
- "--yes",
73
- "--force"
74
- ].filter(Boolean).join(" "),
75
- _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
76
- "inherit"
77
- );
78
- };
79
- }
80
- function loginToPulumi(tree, options, config) {
81
- return () => {
82
- if (!options.login) {
83
- return;
84
- }
85
- if (options.login.startsWith("file://")) {
86
- options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
87
- }
88
- _chunkN46FTNFPjs.run.call(void 0,
89
- config,
90
- ["pulumi login", options.login].filter(Boolean).join(" "),
91
- _path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
92
- "inherit",
93
- {
94
- ...process.env,
95
- PULUMI_EXPERIMENTAL: "true"
96
- }
97
- );
98
- };
99
- }
100
- function addPulumiDeps(tree, options) {
101
- return () => {
102
- const packageJson = _devkit.readJsonFile.call(void 0, `${options.directory}/package.json`);
103
- if (packageJson) {
104
- _devkit.addDependenciesToPackageJson.call(void 0, tree, {}, packageJson.dependencies || {})();
105
- }
106
- };
107
- }
108
- function cleanupProject(tree, options) {
109
- return () => {
110
- const indexTsLocation = _path.join.call(void 0,
111
- tree.root,
112
- `${options.directory || "./deployment"}/index.ts`
113
- );
114
- tree.write(
115
- `${options.directory}/pulumi.ts`,
116
- _fs.readFileSync.call(void 0, indexTsLocation).toString()
117
- );
118
- _fs.unlinkSync.call(void 0,
119
- _path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/.gitignore`)
120
- );
121
- _fs.unlinkSync.call(void 0,
122
- _path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/package.json`)
123
- );
124
- _fs.unlinkSync.call(void 0,
125
- _path.join.call(void 0, tree.root, `${options.directory || "./deployment"}/tsconfig.json`)
126
- );
127
- };
128
- }
129
-
130
-
131
-
132
-
133
- exports.initGeneratorFn = initGeneratorFn; exports.generator_default = generator_default;
@@ -1,133 +0,0 @@
1
- import {
2
- getCloudTemplateName
3
- } from "./chunk-5TB4HFDP.mjs";
4
- import {
5
- initGenerator,
6
- run,
7
- withRunGenerator
8
- } from "./chunk-W7FKIQO3.mjs";
9
-
10
- // src/generators/init/generator.ts
11
- import {
12
- addDependenciesToPackageJson,
13
- addProjectConfiguration,
14
- formatFiles,
15
- readJsonFile,
16
- runTasksInSerial
17
- } from "@nx/devkit";
18
- import { readFileSync, unlinkSync } from "node:fs";
19
- import { join } from "node:path";
20
- async function initGeneratorFn(tree, options, config) {
21
- const task = initGenerator(tree, options);
22
- addProjectConfiguration(tree, options.name || "deployment", {
23
- root: options.directory || "./deployment",
24
- projectType: "application",
25
- sourceRoot: options.directory || "./deployment",
26
- targets: {
27
- up: {
28
- executor: "@nx-extend/pulumi:up",
29
- options: {}
30
- },
31
- preview: {
32
- executor: "@nx-extend/pulumi:preview",
33
- options: {}
34
- },
35
- refresh: {
36
- executor: "@nx-extend/pulumi:refresh",
37
- options: {}
38
- },
39
- import: {
40
- executor: "@nx-extend/pulumi:import",
41
- options: {}
42
- }
43
- },
44
- tags: ["infra:pulumi"]
45
- });
46
- await runTasksInSerial(
47
- generateNewPulumiProject(tree, options, config),
48
- loginToPulumi(tree, options, config),
49
- addPulumiDeps(tree, options),
50
- cleanupProject(tree, options)
51
- )();
52
- if (!options.skipFormat) {
53
- await formatFiles(tree);
54
- }
55
- return task;
56
- }
57
- var generator_default = withRunGenerator(
58
- "Initialize Storm Pulumi workspace",
59
- initGeneratorFn
60
- );
61
- function generateNewPulumiProject(tree, options, config) {
62
- return () => {
63
- const template = getCloudTemplateName(options.provider);
64
- run(
65
- config,
66
- [
67
- `pulumi new ${template}`,
68
- `--name=${options.name || "deployment"}`,
69
- `--dir=${options.directory || "./deployment"}`,
70
- options.secretsProvider && `--secrets-provider=${options.secretsProvider}`,
71
- "--generate-only",
72
- "--yes",
73
- "--force"
74
- ].filter(Boolean).join(" "),
75
- join(config.workspaceRoot, options.directory || "./deployment"),
76
- "inherit"
77
- );
78
- };
79
- }
80
- function loginToPulumi(tree, options, config) {
81
- return () => {
82
- if (!options.login) {
83
- return;
84
- }
85
- if (options.login.startsWith("file://")) {
86
- options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
87
- }
88
- run(
89
- config,
90
- ["pulumi login", options.login].filter(Boolean).join(" "),
91
- join(config.workspaceRoot, options.directory || "./deployment"),
92
- "inherit",
93
- {
94
- ...process.env,
95
- PULUMI_EXPERIMENTAL: "true"
96
- }
97
- );
98
- };
99
- }
100
- function addPulumiDeps(tree, options) {
101
- return () => {
102
- const packageJson = readJsonFile(`${options.directory}/package.json`);
103
- if (packageJson) {
104
- addDependenciesToPackageJson(tree, {}, packageJson.dependencies || {})();
105
- }
106
- };
107
- }
108
- function cleanupProject(tree, options) {
109
- return () => {
110
- const indexTsLocation = join(
111
- tree.root,
112
- `${options.directory || "./deployment"}/index.ts`
113
- );
114
- tree.write(
115
- `${options.directory}/pulumi.ts`,
116
- readFileSync(indexTsLocation).toString()
117
- );
118
- unlinkSync(
119
- join(tree.root, `${options.directory || "./deployment"}/.gitignore`)
120
- );
121
- unlinkSync(
122
- join(tree.root, `${options.directory || "./deployment"}/package.json`)
123
- );
124
- unlinkSync(
125
- join(tree.root, `${options.directory || "./deployment"}/tsconfig.json`)
126
- );
127
- };
128
- }
129
-
130
- export {
131
- initGeneratorFn,
132
- generator_default
133
- };