@storm-software/terraform-tools 0.53.7 → 0.53.9
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 +22 -0
- package/README.md +1 -1
- package/dist/{chunk-2YZ3MY7Z.js → chunk-5SJJD7T2.js} +3 -3
- package/dist/{chunk-OAZ3OJPI.js → chunk-ARUOVAUX.js} +11 -5
- package/dist/{chunk-YFYQLHFW.mjs → chunk-FESDU63B.mjs} +1 -1
- package/dist/{chunk-BDNXCOYM.js → chunk-HVVQCDLX.js} +2 -2
- package/dist/{chunk-QYC5T3J3.js → chunk-IILCY4K6.js} +2 -2
- package/dist/{chunk-P4DYHSWV.js → chunk-JGEEK7WZ.js} +2 -2
- package/dist/{chunk-FAMG3LBJ.mjs → chunk-JSGMKYAJ.mjs} +1 -1
- package/dist/{chunk-JMMGQ3VC.mjs → chunk-L2PJ2IP6.mjs} +1 -1
- package/dist/{chunk-COZQPQN4.mjs → chunk-MZ27JZT5.mjs} +16 -10
- package/dist/{chunk-M7TZCVBI.mjs → chunk-RMJZBNHR.mjs} +1 -1
- package/dist/{chunk-CHBZMKLY.mjs → chunk-S2CDMFT4.mjs} +7 -1
- package/dist/{chunk-C3AET6N7.js → chunk-SWGZ2GWF.js} +151 -145
- package/dist/{chunk-ODKOOHVU.mjs → chunk-XW6C32ZW.mjs} +1 -1
- package/dist/{chunk-ZIUAOW5J.js → chunk-YF7XYL2D.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.d.mts +2 -2
- package/dist/src/base/terraform-executor.d.ts +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 0.53.9 (2025-01-23)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([eb629846](https://github.com/storm-software/storm-ops/commit/eb629846))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated workspace-tools to 1.241.0
|
|
10
|
+
- Updated workspace-tools to 1.241.0
|
|
11
|
+
|
|
12
|
+
## 0.53.8 (2025-01-23)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Resolve issue with invalid Nx Devkit imports ([356d591c](https://github.com/storm-software/storm-ops/commit/356d591c))
|
|
17
|
+
|
|
18
|
+
### 🧱 Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated workspace-tools to 1.240.4
|
|
21
|
+
- Updated workspace-tools to 1.240.4
|
|
22
|
+
|
|
1
23
|
## 0.53.7 (2025-01-23)
|
|
2
24
|
|
|
3
25
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<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
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkARUOVAUXjs = require('./chunk-ARUOVAUX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -9,7 +9,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
9
9
|
// src/base/terraform-executor.ts
|
|
10
10
|
var _shelljs = require('shelljs');
|
|
11
11
|
var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (command, executorOptions = {}) => async (_options, context) => {
|
|
12
|
-
return
|
|
12
|
+
return _chunkARUOVAUXjs.withRunExecutor.call(void 0, `Terraform \`${command}\` Command Executor`, async (options, context2, config) => {
|
|
13
13
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
14
14
|
throw new Error("Both OpenTofu and Terraform are not installed. Please install one of the two before running this executor.");
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@ var withTerraformExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
|
|
|
21
21
|
if (typeof jsonBackendConfig === "string") {
|
|
22
22
|
jsonBackendConfig = JSON.parse(jsonBackendConfig);
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
_chunkARUOVAUXjs.run.call(void 0, config, [
|
|
25
25
|
"terragrunt",
|
|
26
26
|
command,
|
|
27
27
|
...jsonBackendConfig.map((config2) => `-backend-config="${config2.key}=${config2.name}"`),
|
|
@@ -226,21 +226,27 @@ var _promises = require('fs/promises');
|
|
|
226
226
|
var _path = require('path');
|
|
227
227
|
|
|
228
228
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
229
|
-
|
|
229
|
+
|
|
230
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (osSpecificPath) => {
|
|
231
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
232
|
+
}, "removeWindowsDriveLetter");
|
|
230
233
|
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path) => {
|
|
231
234
|
if (!path) {
|
|
232
235
|
return "";
|
|
233
236
|
}
|
|
234
|
-
if (
|
|
235
|
-
path
|
|
237
|
+
if (path.includes("\\")) {
|
|
238
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
239
|
+
path = `C:${path}`;
|
|
240
|
+
}
|
|
241
|
+
return path.replaceAll("/", "\\");
|
|
236
242
|
}
|
|
237
|
-
return path.
|
|
243
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
238
244
|
}, "correctPaths");
|
|
239
245
|
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (...paths) => {
|
|
240
246
|
if (!paths || paths.length === 0) {
|
|
241
247
|
return "";
|
|
242
248
|
}
|
|
243
|
-
return correctPaths(
|
|
249
|
+
return correctPaths(_path.join.call(void 0, ...paths));
|
|
244
250
|
}, "joinPaths");
|
|
245
251
|
|
|
246
252
|
// ../config-tools/src/utilities/find-up.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk5SJJD7T2js.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk5SJJD7T2js.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk5SJJD7T2js.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -223,38 +223,44 @@ var COLOR_KEYS = [
|
|
|
223
223
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
224
224
|
import { existsSync as existsSync2 } from "node:fs";
|
|
225
225
|
import { readFile } from "node:fs/promises";
|
|
226
|
-
import { join as
|
|
226
|
+
import { join as join3 } from "node:path";
|
|
227
227
|
|
|
228
228
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
229
|
-
import {
|
|
229
|
+
import { join } from "node:path";
|
|
230
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ __name((osSpecificPath) => {
|
|
231
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
232
|
+
}, "removeWindowsDriveLetter");
|
|
230
233
|
var correctPaths = /* @__PURE__ */ __name((path) => {
|
|
231
234
|
if (!path) {
|
|
232
235
|
return "";
|
|
233
236
|
}
|
|
234
|
-
if (
|
|
235
|
-
path
|
|
237
|
+
if (path.includes("\\")) {
|
|
238
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
239
|
+
path = `C:${path}`;
|
|
240
|
+
}
|
|
241
|
+
return path.replaceAll("/", "\\");
|
|
236
242
|
}
|
|
237
|
-
return path.
|
|
243
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
238
244
|
}, "correctPaths");
|
|
239
245
|
var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
240
246
|
if (!paths || paths.length === 0) {
|
|
241
247
|
return "";
|
|
242
248
|
}
|
|
243
|
-
return correctPaths(
|
|
249
|
+
return correctPaths(join(...paths));
|
|
244
250
|
}, "joinPaths");
|
|
245
251
|
|
|
246
252
|
// ../config-tools/src/utilities/find-up.ts
|
|
247
253
|
import { existsSync } from "node:fs";
|
|
248
|
-
import { join } from "node:path";
|
|
254
|
+
import { join as join2 } from "node:path";
|
|
249
255
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
250
256
|
var depth = 0;
|
|
251
257
|
function findFolderUp(startPath, endFileNames) {
|
|
252
258
|
const _startPath = startPath ?? process.cwd();
|
|
253
|
-
if (endFileNames.some((endFileName) => existsSync(
|
|
259
|
+
if (endFileNames.some((endFileName) => existsSync(join2(_startPath, endFileName)))) {
|
|
254
260
|
return _startPath;
|
|
255
261
|
}
|
|
256
262
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
257
|
-
const parent =
|
|
263
|
+
const parent = join2(_startPath, "..");
|
|
258
264
|
return findFolderUp(parent, endFileNames);
|
|
259
265
|
}
|
|
260
266
|
return void 0;
|
|
@@ -351,7 +357,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
351
357
|
let namespace = void 0;
|
|
352
358
|
let repository = void 0;
|
|
353
359
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
354
|
-
if (existsSync2(
|
|
360
|
+
if (existsSync2(join3(workspaceRoot, "package.json"))) {
|
|
355
361
|
const file = await readFile(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
356
362
|
if (file) {
|
|
357
363
|
const packageJson = JSON.parse(file);
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
writeSuccess,
|
|
18
18
|
writeTrace,
|
|
19
19
|
writeWarning
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MZ27JZT5.mjs";
|
|
21
21
|
import {
|
|
22
22
|
__dirname,
|
|
23
23
|
__name,
|
|
@@ -3423,6 +3423,12 @@ var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
|
|
|
3423
3423
|
import { joinPathFragments as joinPathFragments9, readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
3424
3424
|
import { existsSync as existsSync5 } from "node:fs";
|
|
3425
3425
|
|
|
3426
|
+
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
3427
|
+
import { readJsonFile as readJsonFile3 } from "@nx/devkit";
|
|
3428
|
+
import defu4 from "defu";
|
|
3429
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
3430
|
+
import { dirname as dirname2, join as join3 } from "node:path";
|
|
3431
|
+
|
|
3426
3432
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
3427
3433
|
import transform2 from "typia/lib/transform";
|
|
3428
3434
|
|