@storm-software/terraform-tools 0.54.14 → 0.54.16

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 +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-LAW3Y4KJ.mjs → chunk-DX73VV5X.mjs} +3 -4
  4. package/dist/{chunk-ARUOVAUX.js → chunk-EFR6PXP4.js} +120 -17
  5. package/dist/{chunk-SEGDFDDI.js → chunk-F4YYSDFN.js} +149 -150
  6. package/dist/{chunk-5SJJD7T2.js → chunk-FITZEF2D.js} +3 -3
  7. package/dist/{chunk-RMJZBNHR.mjs → chunk-LFSPDVQC.mjs} +1 -1
  8. package/dist/{chunk-JSGMKYAJ.mjs → chunk-MQHDDYEZ.mjs} +1 -1
  9. package/dist/{chunk-L2PJ2IP6.mjs → chunk-NKCDHL2T.mjs} +1 -1
  10. package/dist/{chunk-IILCY4K6.js → chunk-PTGYSMPV.js} +2 -2
  11. package/dist/{chunk-XW6C32ZW.mjs → chunk-RWC4LQNP.mjs} +1 -1
  12. package/dist/{chunk-HVVQCDLX.js → chunk-V2MDU72P.js} +2 -2
  13. package/dist/{chunk-YF7XYL2D.js → chunk-VLD5ZA2O.js} +2 -2
  14. package/dist/{chunk-FESDU63B.mjs → chunk-VZ6XA5RO.mjs} +1 -1
  15. package/dist/{chunk-MZ27JZT5.mjs → chunk-W4HT4RSX.mjs} +125 -22
  16. package/dist/{chunk-JGEEK7WZ.js → chunk-Y42OHWIS.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 +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.54.16 (2025-01-29)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([07f7d3d5](https://github.com/storm-software/storm-ops/commit/07f7d3d5))
6
+
7
+ ## 0.54.15 (2025-01-29)
8
+
9
+ ### Miscellaneous
10
+
11
+ - **monorepo:** Regenerate README markdown files ([c2ecaaf8](https://github.com/storm-software/storm-ops/commit/c2ecaaf8))
12
+
1
13
  ## 0.54.14 (2025-01-29)
2
14
 
3
15
  ### 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.54.13-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.54.16-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 -->
@@ -17,7 +17,7 @@ import {
17
17
  writeSuccess,
18
18
  writeTrace,
19
19
  writeWarning
20
- } from "./chunk-MZ27JZT5.mjs";
20
+ } from "./chunk-W4HT4RSX.mjs";
21
21
  import {
22
22
  __dirname,
23
23
  __name,
@@ -1907,7 +1907,7 @@ async function unbuildExecutorFn(options, context2, config) {
1907
1907
  throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
1908
1908
  }
1909
1909
  const jiti = createJiti(config.workspaceRoot, {
1910
- fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
1910
+ fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
1911
1911
  interopDefault: true
1912
1912
  });
1913
1913
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -1920,7 +1920,7 @@ async function unbuildExecutorFn(options, context2, config) {
1920
1920
  }, {
1921
1921
  stubOptions: {
1922
1922
  jiti: {
1923
- cache: "node_modules/.cache/storm"
1923
+ fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
1924
1924
  }
1925
1925
  },
1926
1926
  rollup: {
@@ -1954,7 +1954,6 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
1954
1954
  options.entry ??= [
1955
1955
  "{sourceRoot}"
1956
1956
  ];
1957
- options.outputPath ??= "dist/{projectRoot}";
1958
1957
  options.tsconfig ??= "{projectRoot}/tsconfig.json";
1959
1958
  return options;
1960
1959
  }, "applyDefaultOptions")
@@ -226,28 +226,131 @@ var _promises = require('fs/promises');
226
226
  var _path = require('path');
227
227
 
228
228
  // ../config-tools/src/utilities/correct-paths.ts
229
-
230
- var removeWindowsDriveLetter = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (osSpecificPath) => {
231
- return osSpecificPath.replace(/^[A-Z]:/, "");
232
- }, "removeWindowsDriveLetter");
233
- var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path) => {
234
- if (!path) {
235
- return "";
236
- }
237
- if (path.includes("\\")) {
238
- if (!path.toUpperCase().startsWith("C:")) {
239
- path = `C:${path}`;
229
+ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
230
+ function normalizeWindowsPath(input = "") {
231
+ if (!input) {
232
+ return input;
233
+ }
234
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
235
+ }
236
+ _chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
237
+ var _UNC_REGEX = /^[/\\]{2}/;
238
+ var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
239
+ var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
240
+ var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path) {
241
+ if (!path || path.length === 0) {
242
+ return ".";
243
+ }
244
+ path = normalizeWindowsPath(path);
245
+ const isUNCPath = path.match(_UNC_REGEX);
246
+ const isPathAbsolute = isAbsolute(path);
247
+ const trailingSeparator = path[path.length - 1] === "/";
248
+ path = normalizeString(path, !isPathAbsolute);
249
+ if (path.length === 0) {
250
+ if (isPathAbsolute) {
251
+ return "/";
252
+ }
253
+ return trailingSeparator ? "./" : ".";
254
+ }
255
+ if (trailingSeparator) {
256
+ path += "/";
257
+ }
258
+ if (_DRIVE_LETTER_RE.test(path)) {
259
+ path += "/";
260
+ }
261
+ if (isUNCPath) {
262
+ if (!isPathAbsolute) {
263
+ return `//./${path}`;
240
264
  }
241
- return path.replaceAll("/", "\\");
265
+ return `//${path}`;
242
266
  }
243
- return removeWindowsDriveLetter(path).split("\\").join("/");
267
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
244
268
  }, "correctPaths");
245
- var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (...paths) => {
246
- if (!paths || paths.length === 0) {
247
- return "";
269
+ var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
270
+ let path = "";
271
+ for (const seg of segments) {
272
+ if (!seg) {
273
+ continue;
274
+ }
275
+ if (path.length > 0) {
276
+ const pathTrailing = path[path.length - 1] === "/";
277
+ const segLeading = seg[0] === "/";
278
+ const both = pathTrailing && segLeading;
279
+ if (both) {
280
+ path += seg.slice(1);
281
+ } else {
282
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
283
+ }
284
+ } else {
285
+ path += seg;
286
+ }
248
287
  }
249
- return correctPaths(_path.join.call(void 0, ...paths));
288
+ return correctPaths(path);
250
289
  }, "joinPaths");
290
+ function normalizeString(path, allowAboveRoot) {
291
+ let res = "";
292
+ let lastSegmentLength = 0;
293
+ let lastSlash = -1;
294
+ let dots = 0;
295
+ let char = null;
296
+ for (let index = 0; index <= path.length; ++index) {
297
+ if (index < path.length) {
298
+ char = path[index];
299
+ } else if (char === "/") {
300
+ break;
301
+ } else {
302
+ char = "/";
303
+ }
304
+ if (char === "/") {
305
+ if (lastSlash === index - 1 || dots === 1) {
306
+ } else if (dots === 2) {
307
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
308
+ if (res.length > 2) {
309
+ const lastSlashIndex = res.lastIndexOf("/");
310
+ if (lastSlashIndex === -1) {
311
+ res = "";
312
+ lastSegmentLength = 0;
313
+ } else {
314
+ res = res.slice(0, lastSlashIndex);
315
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
316
+ }
317
+ lastSlash = index;
318
+ dots = 0;
319
+ continue;
320
+ } else if (res.length > 0) {
321
+ res = "";
322
+ lastSegmentLength = 0;
323
+ lastSlash = index;
324
+ dots = 0;
325
+ continue;
326
+ }
327
+ }
328
+ if (allowAboveRoot) {
329
+ res += res.length > 0 ? "/.." : "..";
330
+ lastSegmentLength = 2;
331
+ }
332
+ } else {
333
+ if (res.length > 0) {
334
+ res += `/${path.slice(lastSlash + 1, index)}`;
335
+ } else {
336
+ res = path.slice(lastSlash + 1, index);
337
+ }
338
+ lastSegmentLength = index - lastSlash - 1;
339
+ }
340
+ lastSlash = index;
341
+ dots = 0;
342
+ } else if (char === "." && dots !== -1) {
343
+ ++dots;
344
+ } else {
345
+ dots = -1;
346
+ }
347
+ }
348
+ return res;
349
+ }
350
+ _chunk3GQAWCBQjs.__name.call(void 0, normalizeString, "normalizeString");
351
+ var isAbsolute = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(p) {
352
+ return _IS_ABSOLUTE_RE.test(p);
353
+ }, "isAbsolute");
251
354
 
252
355
  // ../config-tools/src/utilities/find-up.ts
253
356