@storm-software/pulumi-tools 0.22.177 → 0.22.181

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 (43) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-K7UC6NMB.js → chunk-22EYVMD7.js} +6 -6
  4. package/dist/{chunk-S4PSLYGZ.mjs → chunk-3GEIE777.mjs} +1 -1
  5. package/dist/{chunk-47QKI456.js → chunk-6YQYHRUS.js} +3 -1
  6. package/dist/{chunk-GJ5M4XMG.mjs → chunk-7BXOFUNP.mjs} +1 -1
  7. package/dist/{chunk-KDPRZLLD.mjs → chunk-7YWDGFR3.mjs} +4 -4
  8. package/dist/{chunk-XETLFQG6.mjs → chunk-B5MTQNQZ.mjs} +1 -1
  9. package/dist/{chunk-BJ7CSIKI.js → chunk-C2UEQG4T.js} +2 -2
  10. package/dist/{chunk-RLJDNCVP.js → chunk-HLBZSIYX.js} +3 -3
  11. package/dist/{chunk-IKF7G6RU.js → chunk-J57PXAHM.js} +2 -2
  12. package/dist/{chunk-4IKVKKDZ.mjs → chunk-MHK6AUQK.mjs} +3 -1
  13. package/dist/{chunk-OLC33CGY.mjs → chunk-NPN7FWWI.mjs} +1 -1
  14. package/dist/{chunk-HWZA6MXC.js → chunk-Q3XK4KVK.js} +2 -2
  15. package/dist/{chunk-TFHN4HO7.mjs → chunk-RKQV3GFZ.mjs} +1 -1
  16. package/dist/{chunk-LOA644HR.js → chunk-SDKZDM7B.js} +2 -2
  17. package/dist/{chunk-LLTEGIFE.mjs → chunk-TXKBQVVH.mjs} +1 -1
  18. package/dist/{chunk-CAJSI7UU.js → chunk-V2YKFCZS.js} +2 -2
  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 +11 -11
  24. package/dist/index.mjs +11 -11
  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 +4 -4
  28. package/dist/src/base/index.mjs +4 -4
  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 +9 -9
  42. package/dist/chunk-7R2WLHNV.mjs +0 -133
  43. package/dist/chunk-QCIA3FOE.js +0 -133
package/CHANGELOG.md CHANGED
@@ -2,6 +2,55 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.22.180](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.180) (05/14/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **workspace-tools** to **v1.295.65**
10
+ - Updated **config-tools** to **v1.190.5**
11
+ - Updated **config** to **v1.137.38**
12
+
13
+ ## [0.22.179](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.179) (05/14/2026)
14
+
15
+ ### Miscellaneous
16
+
17
+ - **release:** publish ([d45102e8d](https://github.com/storm-software/storm-ops/commit/d45102e8d))
18
+
19
+ ### Bug Fixes
20
+
21
+ - **git-tools:** Ensure non-cached project graph is used during release graph creation ([af729bd1f](https://github.com/storm-software/storm-ops/commit/af729bd1f))
22
+
23
+ ### Updated Dependencies
24
+
25
+ - Updated **workspace-tools** to **v1.295.64**
26
+ - Updated **config-tools** to **v1.190.4**
27
+ - Updated **config** to **v1.137.37**
28
+
29
+ ## [0.22.178](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.178) (05/13/2026)
30
+
31
+ ### Bug Fixes
32
+
33
+ - **git-tools:** Ensure non-cached project graph is used during release graph creation ([af729bd1f](https://github.com/storm-software/storm-ops/commit/af729bd1f))
34
+
35
+ ### Updated Dependencies
36
+
37
+ - Updated **workspace-tools** to **v1.295.63**
38
+ - Updated **config-tools** to **v1.190.3**
39
+ - Updated **config** to **v1.137.36**
40
+
41
+ ## [0.22.177](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.177) (05/12/2026)
42
+
43
+ ### Miscellaneous
44
+
45
+ - **monorepo:** Update devenv modules to latest version ([5467f0db1](https://github.com/storm-software/storm-ops/commit/5467f0db1))
46
+ - **monorepo:** Update workspace packages' dependencies ([6b6fa42ec](https://github.com/storm-software/storm-ops/commit/6b6fa42ec))
47
+
48
+ ### Updated Dependencies
49
+
50
+ - Updated **workspace-tools** to **v1.295.62**
51
+ - Updated **config-tools** to **v1.190.2**
52
+ - Updated **config** to **v1.137.35**
53
+
5
54
  ## [0.22.176](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.176) (04/29/2026)
6
55
 
7
56
  ### Updated Dependencies
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
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 />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.22.176-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.177-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -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 _chunk47QKI456js = require('./chunk-47QKI456.js');
6
6
 
7
7
 
8
- var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
8
+ var _chunk6YQYHRUSjs = require('./chunk-6YQYHRUS.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 = _chunk47QKI456js.initGenerator.call(void 0, tree, options);
21
+ const task = _chunk6YQYHRUSjs.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 = _chunk47QKI456js.withRunGenerator.call(void 0,
57
+ var generator_default = _chunk6YQYHRUSjs.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
- _chunk47QKI456js.run.call(void 0,
64
+ _chunk6YQYHRUSjs.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
- _chunk47QKI456js.run.call(void 0,
88
+ _chunk6YQYHRUSjs.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,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-OLC33CGY.mjs";
3
+ } from "./chunk-NPN7FWWI.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor("preview", (options) => [
@@ -3560,7 +3560,7 @@ var _yaml = require('yaml');
3560
3560
 
3561
3561
 
3562
3562
 
3563
- // ../workspace-tools/src/utils/project-tags.ts
3563
+ // ../package-constants/src/tags.ts
3564
3564
  var ProjectTagConstants = {
3565
3565
  Language: {
3566
3566
  TAG_ID: "language",
@@ -3621,6 +3621,8 @@ var hasProjectTag = (project, variant) => {
3621
3621
  (tag) => tag.startsWith(prefix) && tag.length > prefix.length
3622
3622
  );
3623
3623
  };
3624
+
3625
+ // ../workspace-tools/src/utils/project-tags.ts
3624
3626
  var addProjectTag = (project, variant, value, options = {
3625
3627
  overwrite: false
3626
3628
  }) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-OLC33CGY.mjs";
3
+ } from "./chunk-NPN7FWWI.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor("refresh", (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-4IKVKKDZ.mjs";
6
- import {
7
- getCloudTemplateName
8
- } from "./chunk-5TB4HFDP.mjs";
8
+ } from "./chunk-MHK6AUQK.mjs";
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-OLC33CGY.mjs";
3
+ } from "./chunk-NPN7FWWI.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 _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
3
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
4
4
 
5
5
  // src/executors/preview/executor.ts
6
- var executor_default = _chunkRLJDNCVPjs.withPulumiExecutor.call(void 0, "preview", (options) => [
6
+ var executor_default = _chunkHLBZSIYXjs.withPulumiExecutor.call(void 0, "preview", (options) => [
7
7
  options.stack && `--stack=${options.stack}`,
8
8
  options.expectNoChanges && "--expect-no-changes"
9
9
  ]);
@@ -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 _chunk47QKI456js = require('./chunk-47QKI456.js');
4
+ var _chunk6YQYHRUSjs = require('./chunk-6YQYHRUS.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 _chunk47QKI456js.withRunExecutor.call(void 0,
10
+ return _chunk6YQYHRUSjs.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
- _chunk47QKI456js.run.call(void 0,
24
+ _chunk6YQYHRUSjs.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,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
3
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
4
4
 
5
5
  // src/executors/import/executor.ts
6
- var executor_default = _chunkRLJDNCVPjs.withPulumiExecutor.call(void 0, "import", (options) => [
6
+ var executor_default = _chunkHLBZSIYXjs.withPulumiExecutor.call(void 0, "import", (options) => [
7
7
  options.target,
8
8
  options.name,
9
9
  options.id,
@@ -3564,7 +3564,7 @@ import { readFile as readFile7, writeFile as writeFile4 } from "node:fs/promises
3564
3564
  import { dirname, resolve as resolve2 } from "path";
3565
3565
  import { format as format2 } from "prettier";
3566
3566
 
3567
- // ../workspace-tools/src/utils/project-tags.ts
3567
+ // ../package-constants/src/tags.ts
3568
3568
  var ProjectTagConstants = {
3569
3569
  Language: {
3570
3570
  TAG_ID: "language",
@@ -3625,6 +3625,8 @@ var hasProjectTag = (project, variant) => {
3625
3625
  (tag) => tag.startsWith(prefix) && tag.length > prefix.length
3626
3626
  );
3627
3627
  };
3628
+
3629
+ // ../workspace-tools/src/utils/project-tags.ts
3628
3630
  var addProjectTag = (project, variant, value, options = {
3629
3631
  overwrite: false
3630
3632
  }) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-4IKVKKDZ.mjs";
4
+ } from "./chunk-MHK6AUQK.mjs";
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  import { join } from "node:path";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
3
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
4
4
 
5
5
  // src/executors/config/executor.ts
6
- var executor_default = _chunkRLJDNCVPjs.withPulumiExecutor.call(void 0, "config", (options) => [
6
+ var executor_default = _chunkHLBZSIYXjs.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
  withPulumiExecutor
3
- } from "./chunk-OLC33CGY.mjs";
3
+ } from "./chunk-NPN7FWWI.mjs";
4
4
 
5
5
  // src/executors/config/executor.ts
6
6
  var executor_default = withPulumiExecutor("config", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
3
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
- var executor_default = _chunkRLJDNCVPjs.withPulumiExecutor.call(void 0, "refresh", (options) => [
6
+ var executor_default = _chunkHLBZSIYXjs.withPulumiExecutor.call(void 0, "refresh", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-OLC33CGY.mjs";
3
+ } from "./chunk-NPN7FWWI.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
3
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
4
4
 
5
5
  // src/executors/up/executor.ts
6
- var executor_default = _chunkRLJDNCVPjs.withPulumiExecutor.call(void 0, "up", (options) => [
6
+ var executor_default = _chunkHLBZSIYXjs.withPulumiExecutor.call(void 0, "up", (options) => [
7
7
  "--suppress-progress",
8
8
  options.stack && `--stack=${options.stack}`,
9
9
  options.skipPreview && "--skip-preview",
package/dist/executors.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";require('./chunk-XO62WWX4.js');
2
- require('./chunk-HWZA6MXC.js');
3
- require('./chunk-IKF7G6RU.js');
4
- require('./chunk-BJ7CSIKI.js');
5
- require('./chunk-LOA644HR.js');
6
- require('./chunk-CAJSI7UU.js');
7
- require('./chunk-RLJDNCVP.js');
8
- require('./chunk-47QKI456.js');
2
+ require('./chunk-J57PXAHM.js');
3
+ require('./chunk-C2UEQG4T.js');
4
+ require('./chunk-SDKZDM7B.js');
5
+ require('./chunk-V2YKFCZS.js');
6
+ require('./chunk-Q3XK4KVK.js');
7
+ require('./chunk-HLBZSIYX.js');
8
+ require('./chunk-6YQYHRUS.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-TFHN4HO7.mjs";
3
- import "./chunk-LLTEGIFE.mjs";
4
- import "./chunk-S4PSLYGZ.mjs";
5
- import "./chunk-GJ5M4XMG.mjs";
6
- import "./chunk-XETLFQG6.mjs";
7
- import "./chunk-OLC33CGY.mjs";
8
- import "./chunk-4IKVKKDZ.mjs";
2
+ import "./chunk-TXKBQVVH.mjs";
3
+ import "./chunk-3GEIE777.mjs";
4
+ import "./chunk-7BXOFUNP.mjs";
5
+ import "./chunk-B5MTQNQZ.mjs";
6
+ import "./chunk-RKQV3GFZ.mjs";
7
+ import "./chunk-NPN7FWWI.mjs";
8
+ import "./chunk-MHK6AUQK.mjs";
9
9
  import "./chunk-TSL6YDD5.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 _chunkK7UC6NMBjs = require('./chunk-K7UC6NMB.js');
5
- require('./chunk-47QKI456.js');
4
+ var _chunk22EYVMD7js = require('./chunk-22EYVMD7.js');
6
5
  require('./chunk-QDPXTR73.js');
6
+ require('./chunk-6YQYHRUS.js');
7
7
 
8
8
 
9
- exports.initGeneratorFn = _chunkK7UC6NMBjs.initGeneratorFn;
9
+ exports.initGeneratorFn = _chunk22EYVMD7js.initGeneratorFn;
@@ -1,9 +1,9 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-KDPRZLLD.mjs";
5
- import "./chunk-4IKVKKDZ.mjs";
4
+ } from "./chunk-7YWDGFR3.mjs";
6
5
  import "./chunk-5TB4HFDP.mjs";
6
+ import "./chunk-MHK6AUQK.mjs";
7
7
  import "./chunk-TSL6YDD5.mjs";
8
8
  export {
9
9
  initGeneratorFn
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-HWZA6MXC.js');
12
- require('./chunk-IKF7G6RU.js');
13
- require('./chunk-BJ7CSIKI.js');
14
- require('./chunk-LOA644HR.js');
15
- require('./chunk-CAJSI7UU.js');
11
+ require('./chunk-J57PXAHM.js');
12
+ require('./chunk-C2UEQG4T.js');
13
+ require('./chunk-SDKZDM7B.js');
14
+ require('./chunk-V2YKFCZS.js');
16
15
  require('./chunk-N2YKXZ5R.js');
17
- require('./chunk-GUQOEBFW.js');
18
16
 
19
17
 
20
- var _chunkRLJDNCVPjs = require('./chunk-RLJDNCVP.js');
18
+ var _chunk22EYVMD7js = require('./chunk-22EYVMD7.js');
19
+ require('./chunk-GUQOEBFW.js');
21
20
 
22
21
 
23
- var _chunkK7UC6NMBjs = require('./chunk-K7UC6NMB.js');
24
- require('./chunk-47QKI456.js');
25
22
 
23
+ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
24
+ require('./chunk-Q3XK4KVK.js');
26
25
 
27
26
 
28
- var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
27
+ var _chunkHLBZSIYXjs = require('./chunk-HLBZSIYX.js');
28
+ require('./chunk-6YQYHRUS.js');
29
29
 
30
30
 
31
31
 
@@ -37,4 +37,4 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.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 = _chunkK7UC6NMBjs.initGeneratorFn; exports.securityGroup = _chunk7I63VQP3js.securityGroup; exports.subnet = _chunk7I63VQP3js.subnet; exports.vpc = _chunk7I63VQP3js.vpc; exports.withPulumiExecutor = _chunkRLJDNCVPjs.withPulumiExecutor;
40
+ exports.Provider = _chunkQDPXTR73js.Provider; exports.ec2Instance = _chunk7I63VQP3js.ec2Instance; exports.getAWSTemplateName = _chunk7I63VQP3js.getAWSTemplateName; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.getProviderOpts = _chunk7I63VQP3js.getProviderOpts; exports.initGeneratorFn = _chunk22EYVMD7js.initGeneratorFn; exports.securityGroup = _chunk7I63VQP3js.securityGroup; exports.subnet = _chunk7I63VQP3js.subnet; exports.vpc = _chunk7I63VQP3js.vpc; exports.withPulumiExecutor = _chunkHLBZSIYXjs.withPulumiExecutor;
package/dist/index.mjs CHANGED
@@ -8,24 +8,24 @@ import {
8
8
  vpc
9
9
  } from "./chunk-S6XCS2TA.mjs";
10
10
  import "./chunk-UV4HQO3Y.mjs";
11
- import "./chunk-TFHN4HO7.mjs";
12
- import "./chunk-LLTEGIFE.mjs";
13
- import "./chunk-S4PSLYGZ.mjs";
14
- import "./chunk-GJ5M4XMG.mjs";
15
- import "./chunk-XETLFQG6.mjs";
11
+ import "./chunk-TXKBQVVH.mjs";
12
+ import "./chunk-3GEIE777.mjs";
13
+ import "./chunk-7BXOFUNP.mjs";
14
+ import "./chunk-B5MTQNQZ.mjs";
16
15
  import "./chunk-23KFTIT2.mjs";
17
- import "./chunk-CA7S5MOH.mjs";
18
- import {
19
- withPulumiExecutor
20
- } from "./chunk-OLC33CGY.mjs";
21
16
  import {
22
17
  initGeneratorFn
23
- } from "./chunk-KDPRZLLD.mjs";
24
- import "./chunk-4IKVKKDZ.mjs";
18
+ } from "./chunk-7YWDGFR3.mjs";
19
+ import "./chunk-CA7S5MOH.mjs";
25
20
  import {
26
21
  Provider,
27
22
  getCloudTemplateName
28
23
  } from "./chunk-5TB4HFDP.mjs";
24
+ import "./chunk-RKQV3GFZ.mjs";
25
+ import {
26
+ withPulumiExecutor
27
+ } from "./chunk-NPN7FWWI.mjs";
28
+ import "./chunk-MHK6AUQK.mjs";
29
29
  import "./chunk-TSL6YDD5.mjs";
30
30
  export {
31
31
  Provider,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLJDNCVPjs = require('../../chunk-RLJDNCVP.js');
4
- require('../../chunk-47QKI456.js');
3
+ var _chunkHLBZSIYXjs = require('../../chunk-HLBZSIYX.js');
4
+ require('../../chunk-6YQYHRUS.js');
5
5
 
6
6
 
7
- exports.withPulumiExecutor = _chunkRLJDNCVPjs.withPulumiExecutor;
7
+ exports.withPulumiExecutor = _chunkHLBZSIYXjs.withPulumiExecutor;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "../../chunk-OLC33CGY.mjs";
4
- import "../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../chunk-NPN7FWWI.mjs";
4
+ import "../../chunk-MHK6AUQK.mjs";
5
5
  import "../../chunk-TSL6YDD5.mjs";
6
6
  export {
7
7
  withPulumiExecutor
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-GUQOEBFW.js');
2
2
 
3
3
 
4
- var _chunkRLJDNCVPjs = require('../../chunk-RLJDNCVP.js');
5
- require('../../chunk-47QKI456.js');
6
4
 
5
+ var _chunkQDPXTR73js = require('../../chunk-QDPXTR73.js');
7
6
 
8
7
 
9
- var _chunkQDPXTR73js = require('../../chunk-QDPXTR73.js');
8
+ var _chunkHLBZSIYXjs = require('../../chunk-HLBZSIYX.js');
9
+ require('../../chunk-6YQYHRUS.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.Provider = _chunkQDPXTR73js.Provider; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.withPulumiExecutor = _chunkRLJDNCVPjs.withPulumiExecutor;
14
+ exports.Provider = _chunkQDPXTR73js.Provider; exports.getCloudTemplateName = _chunkQDPXTR73js.getCloudTemplateName; exports.withPulumiExecutor = _chunkHLBZSIYXjs.withPulumiExecutor;
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-CA7S5MOH.mjs";
2
- import {
3
- withPulumiExecutor
4
- } from "../../chunk-OLC33CGY.mjs";
5
- import "../../chunk-4IKVKKDZ.mjs";
6
2
  import {
7
3
  Provider,
8
4
  getCloudTemplateName
9
5
  } from "../../chunk-5TB4HFDP.mjs";
6
+ import {
7
+ withPulumiExecutor
8
+ } from "../../chunk-NPN7FWWI.mjs";
9
+ import "../../chunk-MHK6AUQK.mjs";
10
10
  import "../../chunk-TSL6YDD5.mjs";
11
11
  export {
12
12
  Provider,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHWZA6MXCjs = require('../../../chunk-HWZA6MXC.js');
4
- require('../../../chunk-RLJDNCVP.js');
5
- require('../../../chunk-47QKI456.js');
3
+ var _chunkQ3XK4KVKjs = require('../../../chunk-Q3XK4KVK.js');
4
+ require('../../../chunk-HLBZSIYX.js');
5
+ require('../../../chunk-6YQYHRUS.js');
6
6
 
7
7
 
8
- exports.default = _chunkHWZA6MXCjs.executor_default;
8
+ exports.default = _chunkQ3XK4KVKjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-TFHN4HO7.mjs";
4
- import "../../../chunk-OLC33CGY.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../../chunk-RKQV3GFZ.mjs";
4
+ import "../../../chunk-NPN7FWWI.mjs";
5
+ import "../../../chunk-MHK6AUQK.mjs";
6
6
  import "../../../chunk-TSL6YDD5.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIKF7G6RUjs = require('../../../chunk-IKF7G6RU.js');
4
- require('../../../chunk-RLJDNCVP.js');
5
- require('../../../chunk-47QKI456.js');
3
+ var _chunkJ57PXAHMjs = require('../../../chunk-J57PXAHM.js');
4
+ require('../../../chunk-HLBZSIYX.js');
5
+ require('../../../chunk-6YQYHRUS.js');
6
6
 
7
7
 
8
- exports.default = _chunkIKF7G6RUjs.executor_default;
8
+ exports.default = _chunkJ57PXAHMjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-LLTEGIFE.mjs";
4
- import "../../../chunk-OLC33CGY.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../../chunk-TXKBQVVH.mjs";
4
+ import "../../../chunk-NPN7FWWI.mjs";
5
+ import "../../../chunk-MHK6AUQK.mjs";
6
6
  import "../../../chunk-TSL6YDD5.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBJ7CSIKIjs = require('../../../chunk-BJ7CSIKI.js');
4
- require('../../../chunk-RLJDNCVP.js');
5
- require('../../../chunk-47QKI456.js');
3
+ var _chunkC2UEQG4Tjs = require('../../../chunk-C2UEQG4T.js');
4
+ require('../../../chunk-HLBZSIYX.js');
5
+ require('../../../chunk-6YQYHRUS.js');
6
6
 
7
7
 
8
- exports.default = _chunkBJ7CSIKIjs.executor_default;
8
+ exports.default = _chunkC2UEQG4Tjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-S4PSLYGZ.mjs";
4
- import "../../../chunk-OLC33CGY.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../../chunk-3GEIE777.mjs";
4
+ import "../../../chunk-NPN7FWWI.mjs";
5
+ import "../../../chunk-MHK6AUQK.mjs";
6
6
  import "../../../chunk-TSL6YDD5.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLOA644HRjs = require('../../../chunk-LOA644HR.js');
4
- require('../../../chunk-RLJDNCVP.js');
5
- require('../../../chunk-47QKI456.js');
3
+ var _chunkSDKZDM7Bjs = require('../../../chunk-SDKZDM7B.js');
4
+ require('../../../chunk-HLBZSIYX.js');
5
+ require('../../../chunk-6YQYHRUS.js');
6
6
 
7
7
 
8
- exports.default = _chunkLOA644HRjs.executor_default;
8
+ exports.default = _chunkSDKZDM7Bjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-GJ5M4XMG.mjs";
4
- import "../../../chunk-OLC33CGY.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../../chunk-7BXOFUNP.mjs";
4
+ import "../../../chunk-NPN7FWWI.mjs";
5
+ import "../../../chunk-MHK6AUQK.mjs";
6
6
  import "../../../chunk-TSL6YDD5.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCAJSI7UUjs = require('../../../chunk-CAJSI7UU.js');
4
- require('../../../chunk-RLJDNCVP.js');
5
- require('../../../chunk-47QKI456.js');
3
+ var _chunkV2YKFCZSjs = require('../../../chunk-V2YKFCZS.js');
4
+ require('../../../chunk-HLBZSIYX.js');
5
+ require('../../../chunk-6YQYHRUS.js');
6
6
 
7
7
 
8
- exports.default = _chunkCAJSI7UUjs.executor_default;
8
+ exports.default = _chunkV2YKFCZSjs.executor_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-XETLFQG6.mjs";
4
- import "../../../chunk-OLC33CGY.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
3
+ } from "../../../chunk-B5MTQNQZ.mjs";
4
+ import "../../../chunk-NPN7FWWI.mjs";
5
+ import "../../../chunk-MHK6AUQK.mjs";
6
6
  import "../../../chunk-TSL6YDD5.mjs";
7
7
  export {
8
8
  executor_default as default
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkK7UC6NMBjs = require('../../../chunk-K7UC6NMB.js');
5
- require('../../../chunk-47QKI456.js');
4
+ var _chunk22EYVMD7js = require('../../../chunk-22EYVMD7.js');
6
5
  require('../../../chunk-QDPXTR73.js');
6
+ require('../../../chunk-6YQYHRUS.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunkK7UC6NMBjs.generator_default; exports.initGeneratorFn = _chunkK7UC6NMBjs.initGeneratorFn;
10
+ exports.default = _chunk22EYVMD7js.generator_default; exports.initGeneratorFn = _chunk22EYVMD7js.initGeneratorFn;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-KDPRZLLD.mjs";
5
- import "../../../chunk-4IKVKKDZ.mjs";
4
+ } from "../../../chunk-7YWDGFR3.mjs";
6
5
  import "../../../chunk-5TB4HFDP.mjs";
6
+ import "../../../chunk-MHK6AUQK.mjs";
7
7
  import "../../../chunk-TSL6YDD5.mjs";
8
8
  export {
9
9
  generator_default as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/pulumi-tools",
3
- "version": "0.22.177",
3
+ "version": "0.22.181",
4
4
  "type": "commonjs",
5
5
  "description": "Tools for managing Pulumi infrastructure within a Nx workspace.",
6
6
  "repository": {
@@ -142,7 +142,7 @@
142
142
  "sullivanpj"
143
143
  ],
144
144
  "peerDependencies": {
145
- "@nx/devkit": "22.6.0",
145
+ "@nx/devkit": "22.7.1",
146
146
  "@storm-software/workspace-tools": ">=1.267.0",
147
147
  "tsup": "8.4.0"
148
148
  },
@@ -152,24 +152,24 @@
152
152
  "nx": { "optional": false }
153
153
  },
154
154
  "dependencies": {
155
- "@nx/devkit": "22.6.0",
155
+ "@nx/devkit": "22.7.1",
156
156
  "@pulumi/aws": "^6.83.3",
157
157
  "@pulumi/awsx": "^2.22.0",
158
- "@pulumi/pulumi": "^3.237.0",
159
- "@storm-software/config": "^1.137.35",
160
- "@storm-software/config-tools": "^1.190.2",
158
+ "@pulumi/pulumi": "^3.238.0",
159
+ "@storm-software/config": "1.137.39",
160
+ "@storm-software/config-tools": "1.190.6",
161
161
  "defu": "6.1.4",
162
162
  "shelljs": "^0.8.5"
163
163
  },
164
164
  "devDependencies": {
165
- "@nx/devkit": "22.6.0",
165
+ "@nx/devkit": "22.7.1",
166
166
  "@types/node": "^25.7.0",
167
- "nx": "22.6.0",
167
+ "nx": "22.7.1",
168
168
  "tsup": "8.4.0",
169
169
  "untyped": "^2.0.0"
170
170
  },
171
171
  "publishConfig": { "access": "public" },
172
172
  "executors": "./executors.json",
173
173
  "generators": "./generators.json",
174
- "gitHead": "0ee786bb6e727df540f3879591f8b4e7724ab615"
174
+ "gitHead": "0156312b2f7b27223734e49a41834c30314ae10a"
175
175
  }
@@ -1,133 +0,0 @@
1
- import {
2
- getCloudTemplateName
3
- } from "./chunk-5TB4HFDP.mjs";
4
- import {
5
- initGenerator,
6
- run,
7
- withRunGenerator
8
- } from "./chunk-4IKVKKDZ.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
- };
@@ -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 _chunk47QKI456js = require('./chunk-47QKI456.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 = _chunk47QKI456js.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 = _chunk47QKI456js.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
- _chunk47QKI456js.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
- _chunk47QKI456js.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;