@storm-software/pulumi-tools 0.22.103 → 0.22.105

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  # Changelog for Storm Ops - Pulumi Tools
4
4
 
5
+ ## [0.22.104](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.104) (03/06/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate `README.md` files for repository ([41b2c8304](https://github.com/storm-software/storm-ops/commit/41b2c8304))
10
+ - **monorepo:** Update workspace packages' dependencies ([771bd318b](https://github.com/storm-software/storm-ops/commit/771bd318b))
11
+ - **monorepo:** Update workspace's `README.md` files ([567e7d04e](https://github.com/storm-software/storm-ops/commit/567e7d04e))
12
+
13
+ ### Updated Dependencies
14
+
15
+ - Updated **workspace-tools** to **v1.294.48**
16
+ - Updated **config-tools** to **v1.189.15**
17
+ - Updated **config** to **v1.135.16**
18
+
19
+ ## [0.22.103](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.103) (03/06/2026)
20
+
21
+ ### Updated Dependencies
22
+
23
+ - Updated **workspace-tools** to **v1.294.47**
24
+ - Updated **config-tools** to **v1.189.14**
25
+ - Updated **config** to **v1.135.15**
26
+
5
27
  ## [0.22.102](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.102) (03/04/2026)
6
28
 
7
29
  ### 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.100-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.103-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,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-XZSY6EVO.mjs";
3
+ } from "./chunk-U5DXBMYG.mjs";
4
4
 
5
5
  // src/executors/refresh/executor.ts
6
6
  var executor_default = withPulumiExecutor("refresh", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-XZSY6EVO.mjs";
3
+ } from "./chunk-U5DXBMYG.mjs";
4
4
 
5
5
  // src/executors/preview/executor.ts
6
6
  var executor_default = withPulumiExecutor("preview", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-XZSY6EVO.mjs";
3
+ } from "./chunk-U5DXBMYG.mjs";
4
4
 
5
5
  // src/executors/import/executor.ts
6
6
  var executor_default = withPulumiExecutor("import", (options) => [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-XZSY6EVO.mjs";
3
+ } from "./chunk-U5DXBMYG.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
  __dirname
3
- } from "./chunk-VMZPLKHF.mjs";
3
+ } from "./chunk-ZWNI77JY.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/run.ts
6
6
  import { exec, execSync } from "node:child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "./chunk-XZSY6EVO.mjs";
3
+ } from "./chunk-U5DXBMYG.mjs";
4
4
 
5
5
  // src/executors/up/executor.ts
6
6
  var executor_default = withPulumiExecutor("up", (options) => [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-3EEGBLHU.mjs";
4
+ } from "./chunk-KPNSNVCQ.mjs";
5
5
 
6
6
  // src/base/base-executor.ts
7
7
  import { join } from "node:path";
@@ -5,7 +5,7 @@ import {
5
5
  initGenerator,
6
6
  run,
7
7
  withRunGenerator
8
- } from "./chunk-3EEGBLHU.mjs";
8
+ } from "./chunk-KPNSNVCQ.mjs";
9
9
 
10
10
  // src/generators/init/generator.ts
11
11
  import {
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__62048a4dc615a7ea5da4008534e42c0e/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__a9cefbd35e33069f17719a3a61e5a32e/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
  import "./chunk-UV4HQO3Y.mjs";
2
- import "./chunk-5J3LCTR4.mjs";
3
- import "./chunk-RMA6D6PV.mjs";
4
- import "./chunk-SIU7GMLO.mjs";
5
- import "./chunk-WOK5THUA.mjs";
6
- import "./chunk-PZ65WF4Q.mjs";
7
- import "./chunk-XZSY6EVO.mjs";
8
- import "./chunk-3EEGBLHU.mjs";
9
- import "./chunk-VMZPLKHF.mjs";
2
+ import "./chunk-EEQQFOTE.mjs";
3
+ import "./chunk-E7NASPNK.mjs";
4
+ import "./chunk-CXM2SZMA.mjs";
5
+ import "./chunk-QMS2AUQD.mjs";
6
+ import "./chunk-GNVCY6LO.mjs";
7
+ import "./chunk-U5DXBMYG.mjs";
8
+ import "./chunk-KPNSNVCQ.mjs";
9
+ import "./chunk-ZWNI77JY.mjs";
@@ -1,10 +1,10 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-TPOO46K7.mjs";
4
+ } from "./chunk-V2EY6R4R.mjs";
5
5
  import "./chunk-5TB4HFDP.mjs";
6
- import "./chunk-3EEGBLHU.mjs";
7
- import "./chunk-VMZPLKHF.mjs";
6
+ import "./chunk-KPNSNVCQ.mjs";
7
+ import "./chunk-ZWNI77JY.mjs";
8
8
  export {
9
9
  initGeneratorFn
10
10
  };
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-5J3LCTR4.mjs";
12
- import "./chunk-RMA6D6PV.mjs";
13
- import "./chunk-SIU7GMLO.mjs";
14
- import "./chunk-WOK5THUA.mjs";
11
+ import "./chunk-EEQQFOTE.mjs";
12
+ import "./chunk-E7NASPNK.mjs";
13
+ import "./chunk-CXM2SZMA.mjs";
14
+ import "./chunk-QMS2AUQD.mjs";
15
15
  import "./chunk-23KFTIT2.mjs";
16
16
  import {
17
17
  initGeneratorFn
18
- } from "./chunk-TPOO46K7.mjs";
18
+ } from "./chunk-V2EY6R4R.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-PZ65WF4Q.mjs";
24
+ import "./chunk-GNVCY6LO.mjs";
25
25
  import {
26
26
  withPulumiExecutor
27
- } from "./chunk-XZSY6EVO.mjs";
28
- import "./chunk-3EEGBLHU.mjs";
29
- import "./chunk-VMZPLKHF.mjs";
27
+ } from "./chunk-U5DXBMYG.mjs";
28
+ import "./chunk-KPNSNVCQ.mjs";
29
+ import "./chunk-ZWNI77JY.mjs";
30
30
  export {
31
31
  Provider,
32
32
  ec2Instance,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  withPulumiExecutor
3
- } from "../../chunk-XZSY6EVO.mjs";
4
- import "../../chunk-3EEGBLHU.mjs";
5
- import "../../chunk-VMZPLKHF.mjs";
3
+ } from "../../chunk-U5DXBMYG.mjs";
4
+ import "../../chunk-KPNSNVCQ.mjs";
5
+ import "../../chunk-ZWNI77JY.mjs";
6
6
  export {
7
7
  withPulumiExecutor
8
8
  };
@@ -5,9 +5,9 @@ import {
5
5
  } from "../../chunk-5TB4HFDP.mjs";
6
6
  import {
7
7
  withPulumiExecutor
8
- } from "../../chunk-XZSY6EVO.mjs";
9
- import "../../chunk-3EEGBLHU.mjs";
10
- import "../../chunk-VMZPLKHF.mjs";
8
+ } from "../../chunk-U5DXBMYG.mjs";
9
+ import "../../chunk-KPNSNVCQ.mjs";
10
+ import "../../chunk-ZWNI77JY.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-VMZPLKHF.mjs";
5
+ import "../../chunk-ZWNI77JY.mjs";
6
6
  export {
7
7
  Provider,
8
8
  getCloudTemplateName
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-PZ65WF4Q.mjs";
4
- import "../../../chunk-XZSY6EVO.mjs";
5
- import "../../../chunk-3EEGBLHU.mjs";
6
- import "../../../chunk-VMZPLKHF.mjs";
3
+ } from "../../../chunk-GNVCY6LO.mjs";
4
+ import "../../../chunk-U5DXBMYG.mjs";
5
+ import "../../../chunk-KPNSNVCQ.mjs";
6
+ import "../../../chunk-ZWNI77JY.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-5J3LCTR4.mjs";
4
- import "../../../chunk-XZSY6EVO.mjs";
5
- import "../../../chunk-3EEGBLHU.mjs";
6
- import "../../../chunk-VMZPLKHF.mjs";
3
+ } from "../../../chunk-EEQQFOTE.mjs";
4
+ import "../../../chunk-U5DXBMYG.mjs";
5
+ import "../../../chunk-KPNSNVCQ.mjs";
6
+ import "../../../chunk-ZWNI77JY.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-RMA6D6PV.mjs";
4
- import "../../../chunk-XZSY6EVO.mjs";
5
- import "../../../chunk-3EEGBLHU.mjs";
6
- import "../../../chunk-VMZPLKHF.mjs";
3
+ } from "../../../chunk-E7NASPNK.mjs";
4
+ import "../../../chunk-U5DXBMYG.mjs";
5
+ import "../../../chunk-KPNSNVCQ.mjs";
6
+ import "../../../chunk-ZWNI77JY.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-SIU7GMLO.mjs";
4
- import "../../../chunk-XZSY6EVO.mjs";
5
- import "../../../chunk-3EEGBLHU.mjs";
6
- import "../../../chunk-VMZPLKHF.mjs";
3
+ } from "../../../chunk-CXM2SZMA.mjs";
4
+ import "../../../chunk-U5DXBMYG.mjs";
5
+ import "../../../chunk-KPNSNVCQ.mjs";
6
+ import "../../../chunk-ZWNI77JY.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-WOK5THUA.mjs";
4
- import "../../../chunk-XZSY6EVO.mjs";
5
- import "../../../chunk-3EEGBLHU.mjs";
6
- import "../../../chunk-VMZPLKHF.mjs";
3
+ } from "../../../chunk-QMS2AUQD.mjs";
4
+ import "../../../chunk-U5DXBMYG.mjs";
5
+ import "../../../chunk-KPNSNVCQ.mjs";
6
+ import "../../../chunk-ZWNI77JY.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-TPOO46K7.mjs";
4
+ } from "../../../chunk-V2EY6R4R.mjs";
5
5
  import "../../../chunk-5TB4HFDP.mjs";
6
- import "../../../chunk-3EEGBLHU.mjs";
7
- import "../../../chunk-VMZPLKHF.mjs";
6
+ import "../../../chunk-KPNSNVCQ.mjs";
7
+ import "../../../chunk-ZWNI77JY.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-VMZPLKHF.mjs";
11
+ import "../../../chunk-ZWNI77JY.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-VMZPLKHF.mjs";
10
+ import "../../../chunk-ZWNI77JY.mjs";
11
11
  export {
12
12
  ec2Instance,
13
13
  getAWSTemplateName,
@@ -1,4 +1,4 @@
1
- import "./chunk-VMZPLKHF.mjs";
1
+ import "./chunk-ZWNI77JY.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.103",
3
+ "version": "0.22.105",
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.5.1",
145
+ "@nx/devkit": "^22.5.4",
146
146
  "@storm-software/workspace-tools": ">=1.267.0",
147
147
  "tsup": "8.4.0"
148
148
  },
@@ -152,18 +152,18 @@
152
152
  "nx": { "optional": false }
153
153
  },
154
154
  "dependencies": {
155
- "@nx/devkit": "^22.5.1",
155
+ "@nx/devkit": "^22.5.4",
156
156
  "@pulumi/aws": "^6.83.2",
157
157
  "@pulumi/awsx": "^2.22.0",
158
- "@pulumi/pulumi": "^3.221.0",
159
- "@storm-software/config": "^1.135.15",
160
- "@storm-software/config-tools": "^1.189.14",
158
+ "@pulumi/pulumi": "^3.225.1",
159
+ "@storm-software/config": "^1.135.17",
160
+ "@storm-software/config-tools": "^1.189.16",
161
161
  "defu": "6.1.4",
162
162
  "shelljs": "^0.8.5"
163
163
  },
164
164
  "devDependencies": {
165
- "@nx/devkit": "^22.5.1",
166
- "@types/node": "^25.3.0",
165
+ "@nx/devkit": "^22.5.4",
166
+ "@types/node": "^25.3.5",
167
167
  "nx": "22.5.1",
168
168
  "tsup": "8.4.0",
169
169
  "untyped": "^2.0.0"
@@ -171,5 +171,5 @@
171
171
  "publishConfig": { "access": "public" },
172
172
  "executors": "./executors.json",
173
173
  "generators": "./generators.json",
174
- "gitHead": "c9ce65613cbc87d3299de84eb37a22f34a61c973"
174
+ "gitHead": "082d71d3d16ea8d29abe946dc2f87d08c26d7012"
175
175
  }
@@ -1,133 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkV5WYZRAMjs = require('./chunk-V5WYZRAM.js');
6
-
7
-
8
- var _chunkQDPXTR73js = require('./chunk-QDPXTR73.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 = _chunkV5WYZRAMjs.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 = _chunkV5WYZRAMjs.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
- _chunkV5WYZRAMjs.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
- _chunkV5WYZRAMjs.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
- initGenerator,
3
- run,
4
- withRunGenerator
5
- } from "./chunk-3EEGBLHU.mjs";
6
- import {
7
- getCloudTemplateName
8
- } from "./chunk-5TB4HFDP.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
- };