@storm-software/terraform-tools 0.53.7 → 0.53.8

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 (37) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-2YZ3MY7Z.js → chunk-5SJJD7T2.js} +3 -3
  4. package/dist/{chunk-OAZ3OJPI.js → chunk-ARUOVAUX.js} +11 -5
  5. package/dist/{chunk-YFYQLHFW.mjs → chunk-FESDU63B.mjs} +1 -1
  6. package/dist/{chunk-BDNXCOYM.js → chunk-HVVQCDLX.js} +2 -2
  7. package/dist/{chunk-QYC5T3J3.js → chunk-IILCY4K6.js} +2 -2
  8. package/dist/{chunk-P4DYHSWV.js → chunk-JGEEK7WZ.js} +2 -2
  9. package/dist/{chunk-FAMG3LBJ.mjs → chunk-JSGMKYAJ.mjs} +1 -1
  10. package/dist/{chunk-JMMGQ3VC.mjs → chunk-L2PJ2IP6.mjs} +1 -1
  11. package/dist/{chunk-COZQPQN4.mjs → chunk-MZ27JZT5.mjs} +16 -10
  12. package/dist/{chunk-M7TZCVBI.mjs → chunk-RMJZBNHR.mjs} +1 -1
  13. package/dist/{chunk-CHBZMKLY.mjs → chunk-S2CDMFT4.mjs} +7 -1
  14. package/dist/{chunk-C3AET6N7.js → chunk-SWGZ2GWF.js} +151 -145
  15. package/dist/{chunk-ODKOOHVU.mjs → chunk-XW6C32ZW.mjs} +1 -1
  16. package/dist/{chunk-ZIUAOW5J.js → chunk-YF7XYL2D.js} +2 -2
  17. package/dist/executors.js +6 -6
  18. package/dist/executors.mjs +6 -6
  19. package/dist/generators.js +3 -3
  20. package/dist/generators.mjs +2 -2
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/base/index.js +3 -3
  24. package/dist/src/base/index.mjs +2 -2
  25. package/dist/src/base/terraform-executor.js +3 -3
  26. package/dist/src/base/terraform-executor.mjs +2 -2
  27. package/dist/src/executors/apply/executor.js +4 -4
  28. package/dist/src/executors/apply/executor.mjs +3 -3
  29. package/dist/src/executors/destroy/executor.js +4 -4
  30. package/dist/src/executors/destroy/executor.mjs +3 -3
  31. package/dist/src/executors/output/executor.js +4 -4
  32. package/dist/src/executors/output/executor.mjs +3 -3
  33. package/dist/src/executors/plan/executor.js +4 -4
  34. package/dist/src/executors/plan/executor.mjs +3 -3
  35. package/dist/src/generators/init/init.js +3 -3
  36. package/dist/src/generators/init/init.mjs +2 -2
  37. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 0.53.8 (2025-01-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **monorepo:** Resolve issue with invalid Nx Devkit imports ([356d591c](https://github.com/storm-software/storm-ops/commit/356d591c))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated workspace-tools to 1.240.4
10
+ - Updated workspace-tools to 1.240.4
11
+
1
12
  ## 0.53.7 (2025-01-23)
2
13
 
3
14
  ### 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
- [![Version](https://img.shields.io/badge/version-0.53.6-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)
24
+ [![Version](https://img.shields.io/badge/version-0.53.7-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
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 _chunkOAZ3OJPIjs = require('./chunk-OAZ3OJPI.js');
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 _chunkOAZ3OJPIjs.withRunExecutor.call(void 0, `Terraform \`${command}\` Command Executor`, async (options, context2, config) => {
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
- _chunkOAZ3OJPIjs.run.call(void 0, config, [
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
- var _devkit = require('@nx/devkit');
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 (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
235
- path = `C:${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.replaceAll("\\", "/");
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(_devkit.joinPathFragments.call(void 0, ...paths.map((path) => correctPaths(path))));
249
+ return correctPaths(_path.join.call(void 0, ...paths));
244
250
  }, "joinPaths");
245
251
 
246
252
  // ../config-tools/src/utilities/find-up.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-COZQPQN4.mjs";
4
+ } from "./chunk-MZ27JZT5.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-XUV4U54K.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2YZ3MY7Zjs = require('./chunk-2YZ3MY7Z.js');
3
+ var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
4
4
 
5
5
  // src/executors/apply/executor.ts
6
- var executor_default = _chunk2YZ3MY7Zjs.withTerraformExecutor.call(void 0, "apply");
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 _chunk2YZ3MY7Zjs = require('./chunk-2YZ3MY7Z.js');
3
+ var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
4
4
 
5
5
  // src/executors/plan/executor.ts
6
- var executor_default = _chunk2YZ3MY7Zjs.withTerraformExecutor.call(void 0, "plan");
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 _chunk2YZ3MY7Zjs = require('./chunk-2YZ3MY7Z.js');
3
+ var _chunk5SJJD7T2js = require('./chunk-5SJJD7T2.js');
4
4
 
5
5
  // src/executors/output/executor.ts
6
- var executor_default = _chunk2YZ3MY7Zjs.withTerraformExecutor.call(void 0, "output");
6
+ var executor_default = _chunk5SJJD7T2js.withTerraformExecutor.call(void 0, "output");
7
7
 
8
8
 
9
9
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-YFYQLHFW.mjs";
3
+ } from "./chunk-FESDU63B.mjs";
4
4
 
5
5
  // src/executors/plan/executor.ts
6
6
  var executor_default = withTerraformExecutor("plan");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-YFYQLHFW.mjs";
3
+ } from "./chunk-FESDU63B.mjs";
4
4
 
5
5
  // src/executors/output/executor.ts
6
6
  var executor_default = withTerraformExecutor("output");
@@ -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 join2 } from "node:path";
226
+ import { join as join3 } from "node:path";
227
227
 
228
228
  // ../config-tools/src/utilities/correct-paths.ts
229
- import { joinPathFragments } from "@nx/devkit";
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 (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
235
- path = `C:${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.replaceAll("\\", "/");
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(joinPathFragments(...paths.map((path) => correctPaths(path))));
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(join(_startPath, endFileName)))) {
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 = join(_startPath, "..");
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(join2(workspaceRoot, "package.json"))) {
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);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-YFYQLHFW.mjs";
3
+ } from "./chunk-FESDU63B.mjs";
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
6
  var executor_default = withTerraformExecutor("destroy");
@@ -17,7 +17,7 @@ import {
17
17
  writeSuccess,
18
18
  writeTrace,
19
19
  writeWarning
20
- } from "./chunk-COZQPQN4.mjs";
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