@storm-software/pulumi-tools 0.22.291 → 0.22.292
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 +12 -0
- package/README.md +1 -1
- package/dist/chunk-CQELMFUD.js +133 -0
- package/dist/chunk-J3BV5OUO.mjs +133 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.22.292](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.292) (07/23/2026)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **package-constants:** Resolve issue with incorrect package prefix ([24eb88022](https://github.com/storm-software/storm-ops/commit/24eb88022))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.46**
|
|
14
|
+
- Updated **config-tools** to **v1.190.109**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.89**
|
|
16
|
+
|
|
5
17
|
## [0.22.291](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.22.291) (07/23/2026)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkPD45PYGOjs = require('./chunk-PD45PYGO.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 = _chunkPD45PYGOjs.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 = _chunkPD45PYGOjs.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
|
+
_chunkPD45PYGOjs.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
|
+
_chunkPD45PYGOjs.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;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import {
|
|
2
|
+
initGenerator,
|
|
3
|
+
run,
|
|
4
|
+
withRunGenerator
|
|
5
|
+
} from "./chunk-RADFBSVD.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
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/pulumi-tools",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.292",
|
|
4
4
|
"description": "Tools for managing Pulumi infrastructure within a Nx workspace.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iac",
|
|
@@ -145,9 +145,9 @@
|
|
|
145
145
|
"@pulumi/aws": "^6.83.4",
|
|
146
146
|
"@pulumi/awsx": "^2.22.0",
|
|
147
147
|
"@pulumi/pulumi": "^3.253.0",
|
|
148
|
-
"@storm-software/config": "^1.138.
|
|
149
|
-
"@storm-software/config-tools": "^1.190.
|
|
150
|
-
"@storm-software/workspace-tools": "^1.296.
|
|
148
|
+
"@storm-software/config": "^1.138.46",
|
|
149
|
+
"@storm-software/config-tools": "^1.190.109",
|
|
150
|
+
"@storm-software/workspace-tools": "^1.296.89",
|
|
151
151
|
"defu": "^6.1.7",
|
|
152
152
|
"shelljs": "^0.8.5"
|
|
153
153
|
},
|
|
@@ -160,5 +160,5 @@
|
|
|
160
160
|
"publishConfig": { "access": "public" },
|
|
161
161
|
"executors": "./executors.json",
|
|
162
162
|
"generators": "./generators.json",
|
|
163
|
-
"gitHead": "
|
|
163
|
+
"gitHead": "9389e94089c0ddc0cc122425b1a47201f655eafd"
|
|
164
164
|
}
|