@storm-software/terraform-tools 0.54.3 → 0.54.4

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
@@ -1,3 +1,14 @@
1
+ ## 0.54.4 (2025-01-28)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([f3649091](https://github.com/storm-software/storm-ops/commit/f3649091))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated workspace-tools to 1.243.3
10
+ - Updated workspace-tools to 1.243.3
11
+
1
12
  ## 0.54.3 (2025-01-28)
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.54.2-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.3-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 -->
@@ -261,7 +261,6 @@ import { logger } from "@nx/devkit";
261
261
  var LARGE_BUFFER = 1024 * 1e6;
262
262
 
263
263
  // ../esbuild/src/build.ts
264
- import { hfs as hfs3 } from "@humanfs/node";
265
264
  import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
266
265
 
267
266
  // ../build-tools/src/config.ts
@@ -548,6 +547,8 @@ import { debounce, flatten } from "es-toolkit";
548
547
  import { map } from "es-toolkit/compat";
549
548
  import * as esbuild2 from "esbuild";
550
549
  import { globbySync } from "globby";
550
+ import { existsSync as existsSync4 } from "node:fs";
551
+ import hf from "node:fs/promises";
551
552
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
552
553
 
553
554
  // ../esbuild/src/base/renderer-engine.ts
@@ -692,14 +693,14 @@ var RendererEngine = class {
692
693
  };
693
694
 
694
695
  // ../esbuild/src/clean.ts
695
- import { hfs } from "@humanfs/node";
696
- async function clean(name = "ESBuild", directory, config) {
697
- writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
698
- const stopwatch = getStopwatch(`${name} output clean`);
699
- await hfs.deleteAll(directory);
700
- stopwatch();
696
+ import { rm } from "node:fs/promises";
697
+ async function cleanDirectories(name = "ESBuild", directory, config) {
698
+ await rm(directory, {
699
+ recursive: true,
700
+ force: true
701
+ });
701
702
  }
702
- __name(clean, "clean");
703
+ __name(cleanDirectories, "cleanDirectories");
703
704
 
704
705
  // ../esbuild/src/plugins/esm-split-code-to-cjs.ts
705
706
  import * as esbuild from "esbuild";
@@ -871,8 +872,9 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
871
872
  }), "resolvePathsPlugin");
872
873
 
873
874
  // ../esbuild/src/plugins/tsc.ts
874
- import { hfs as hfs2 } from "@humanfs/node";
875
875
  import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
876
+ import { existsSync as existsSync3 } from "node:fs";
877
+ import fs3 from "node:fs/promises";
876
878
  function bundleTypeDefinitions(filename, outfile, externals, options) {
877
879
  const { dependencies, peerDependencies, devDependencies } = __require(joinPaths(options.projectRoot, "package.json"));
878
880
  const dependenciesKeys = Object.keys(dependencies ?? {}).flatMap((p) => [
@@ -945,18 +947,18 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
945
947
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
946
948
  const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
947
949
  let dtsPath;
948
- if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
950
+ if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
949
951
  dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
950
- } else if (await hfs2.isFile(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
952
+ } else if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
951
953
  dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
952
954
  }
953
955
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
954
956
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
955
957
  bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
956
- const dtsContents = await hfs2.text(`${bundlePath}.d.ts`);
957
- await hfs2.write(`${bundlePath}.${ext}`, dtsContents);
958
+ const dtsContents = await fs3.readFile(`${bundlePath}.d.ts`, "utf8");
959
+ await fs3.writeFile(`${bundlePath}.${ext}`, dtsContents);
958
960
  } else {
959
- await hfs2.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
961
+ await fs3.writeFile(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
960
962
  }
961
963
  }
962
964
  });
@@ -1205,10 +1207,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1205
1207
  exitOnError: true
1206
1208
  });
1207
1209
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
1208
- if (!await hfs3.isFile(projectJsonPath)) {
1210
+ if (!existsSync4(projectJsonPath)) {
1209
1211
  throw new Error("Cannot find project.json configuration");
1210
1212
  }
1211
- const projectJson = await hfs3.json(projectJsonPath);
1213
+ const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
1214
+ const projectJson = JSON.parse(projectJsonFile);
1212
1215
  const projectName = projectJson.name;
1213
1216
  const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
1214
1217
  if (!projectConfigurations?.projects?.[projectName]) {
@@ -1218,10 +1221,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1218
1221
  options.name ??= `${projectName}-${options.format}`;
1219
1222
  options.target ??= DEFAULT_TARGET;
1220
1223
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
1221
- if (!await hfs3.isFile(packageJsonPath)) {
1224
+ if (!existsSync4(packageJsonPath)) {
1222
1225
  throw new Error("Cannot find package.json configuration");
1223
1226
  }
1224
- const packageJson = await hfs3.json(packageJsonPath);
1227
+ const packageJsonFile = await hf.readFile(packageJsonPath, "utf8");
1228
+ const packageJson = JSON.parse(packageJsonFile);
1225
1229
  const outExtension = getOutputExtensionMap(options, packageJson.type);
1226
1230
  const env = getEnv("esbuild", options);
1227
1231
  const result = {
@@ -1300,14 +1304,15 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1300
1304
  return result;
1301
1305
  }, "resolveOptions");
1302
1306
  async function generatePackageJson(context2) {
1303
- if (context2.options.generatePackageJson !== false && await hfs3.isFile(joinPaths(context2.options.projectRoot, "package.json"))) {
1307
+ if (context2.options.generatePackageJson !== false && existsSync4(joinPaths(context2.options.projectRoot, "package.json"))) {
1304
1308
  writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
1305
1309
  const stopwatch = getStopwatch("Write package.json file");
1306
1310
  const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
1307
- if (!await hfs3.isFile(packageJsonPath)) {
1311
+ if (!existsSync4(packageJsonPath)) {
1308
1312
  throw new Error("Cannot find package.json configuration");
1309
1313
  }
1310
- let packageJson = await hfs3.json(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1314
+ const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1315
+ let packageJson = JSON.parse(packageJsonFile);
1311
1316
  if (!packageJson) {
1312
1317
  throw new Error("Cannot find package.json configuration file");
1313
1318
  }
@@ -1380,7 +1385,7 @@ async function executeEsBuild(context2) {
1380
1385
  const result = await esbuild2.build(context2.options);
1381
1386
  if (result.metafile) {
1382
1387
  const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
1383
- await hfs3.write(metafilePath, JSON.stringify(result.metafile));
1388
+ await hf.writeFile(metafilePath, JSON.stringify(result.metafile));
1384
1389
  }
1385
1390
  stopwatch();
1386
1391
  return context2;
@@ -1437,7 +1442,10 @@ async function dependencyCheck(options) {
1437
1442
  __name(dependencyCheck, "dependencyCheck");
1438
1443
  async function cleanOutputPath(context2) {
1439
1444
  if (context2.options.clean !== false && context2.options.outdir) {
1440
- await clean(context2.options.name, context2.options.outdir, context2.options.config);
1445
+ writeDebug(` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1446
+ const stopwatch = getStopwatch(`${context2.options.name} output clean`);
1447
+ await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1448
+ stopwatch();
1441
1449
  }
1442
1450
  return context2;
1443
1451
  }
@@ -1527,10 +1535,10 @@ var executor_default6 = withRunExecutor("Storm ESBuild build", esbuildExecutorFn
1527
1535
 
1528
1536
  // ../workspace-tools/src/executors/npm-publish/executor.ts
1529
1537
  import { execSync as execSync3 } from "node:child_process";
1530
- import fs3 from "node:fs/promises";
1538
+ import fs4 from "node:fs/promises";
1531
1539
 
1532
1540
  // ../workspace-tools/src/utils/pnpm-deps-update.ts
1533
- import { existsSync as existsSync3 } from "node:fs";
1541
+ import { existsSync as existsSync5 } from "node:fs";
1534
1542
  import { readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
1535
1543
  import { format } from "prettier";
1536
1544
  import readYamlFile from "read-yaml-file";
@@ -1573,21 +1581,22 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1573
1581
  });
1574
1582
 
1575
1583
  // ../tsdown/src/build.ts
1576
- import { hfs as hfs5 } from "@humanfs/node";
1577
1584
  import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1578
1585
  import defu2 from "defu";
1586
+ import { existsSync as existsSync6 } from "node:fs";
1587
+ import hf2 from "node:fs/promises";
1579
1588
  import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1580
1589
  import { build as tsdown } from "tsdown";
1581
1590
 
1582
1591
  // ../tsdown/src/clean.ts
1583
- import { hfs as hfs4 } from "@humanfs/node";
1584
- async function clean2(name = "ESBuild", directory, config) {
1585
- writeDebug(` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1586
- const stopwatch = getStopwatch(`${name} output clean`);
1587
- await hfs4.deleteAll(directory);
1588
- stopwatch();
1592
+ import { rm as rm2 } from "node:fs/promises";
1593
+ async function cleanDirectories2(name = "TSDown", directory, config) {
1594
+ await rm2(directory, {
1595
+ recursive: true,
1596
+ force: true
1597
+ });
1589
1598
  }
1590
- __name(clean2, "clean");
1599
+ __name(cleanDirectories2, "cleanDirectories");
1591
1600
 
1592
1601
  // ../tsdown/src/config.ts
1593
1602
  var DEFAULT_BUILD_OPTIONS2 = {
@@ -1625,10 +1634,11 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1625
1634
  exitOnError: true
1626
1635
  });
1627
1636
  const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
1628
- if (!await hfs5.isFile(projectJsonPath)) {
1637
+ if (!existsSync6(projectJsonPath)) {
1629
1638
  throw new Error("Cannot find project.json configuration");
1630
1639
  }
1631
- const projectJson = await hfs5.json(projectJsonPath);
1640
+ const projectJsonFile = await hf2.readFile(projectJsonPath, "utf8");
1641
+ const projectJson = JSON.parse(projectJsonFile);
1632
1642
  const projectName = projectJson.name;
1633
1643
  const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1634
1644
  if (!projectConfigurations?.projects?.[projectName]) {
@@ -1638,7 +1648,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1638
1648
  options.name ??= `${projectName}-${options.format}`;
1639
1649
  options.target ??= DEFAULT_TARGET;
1640
1650
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
1641
- if (!await hfs5.isFile(packageJsonPath)) {
1651
+ if (!existsSync6(packageJsonPath)) {
1642
1652
  throw new Error("Cannot find package.json configuration");
1643
1653
  }
1644
1654
  const env = getEnv("tsdown", options);
@@ -1693,17 +1703,18 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1693
1703
  return result;
1694
1704
  }, "resolveOptions");
1695
1705
  async function generatePackageJson2(options) {
1696
- if (options.generatePackageJson !== false && await hfs5.isFile(joinPaths(options.projectRoot, "package.json"))) {
1706
+ if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
1697
1707
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
1698
1708
  const stopwatch = getStopwatch("Write package.json file");
1699
1709
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
1700
- if (!await hfs5.isFile(packageJsonPath)) {
1710
+ if (!existsSync6(packageJsonPath)) {
1701
1711
  throw new Error("Cannot find package.json configuration");
1702
1712
  }
1703
- let packageJson = await hfs5.json(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"));
1704
- if (!packageJson) {
1713
+ const packageJsonFile = await hf2.readFile(joinPaths(options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1714
+ if (!packageJsonFile) {
1705
1715
  throw new Error("Cannot find package.json configuration file");
1706
1716
  }
1717
+ let packageJson = JSON.parse(packageJsonFile);
1707
1718
  packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
1708
1719
  packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
1709
1720
  packageJson.exports ??= {};
@@ -1771,7 +1782,10 @@ async function reportResults2(options) {
1771
1782
  __name(reportResults2, "reportResults");
1772
1783
  async function cleanOutputPath2(options) {
1773
1784
  if (options.clean !== false && options.outdir) {
1774
- await clean2(options.name, options.outdir, options.config);
1785
+ writeDebug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1786
+ const stopwatch = getStopwatch(`${options.name} output clean`);
1787
+ await cleanDirectories2(options.name, options.outdir, options.config);
1788
+ stopwatch();
1775
1789
  }
1776
1790
  return options;
1777
1791
  }
@@ -3251,7 +3265,7 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
3251
3265
 
3252
3266
  // ../workspace-tools/src/utils/lock-file.ts
3253
3267
  import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
3254
- import { existsSync as existsSync4 } from "node:fs";
3268
+ import { existsSync as existsSync7 } from "node:fs";
3255
3269
  import { join as join2 } from "node:path";
3256
3270
  import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
3257
3271
  import { getPnpmLockfileDependencies, getPnpmLockfileNodes } from "nx/src/plugins/js/lock-file/pnpm-parser";
@@ -3265,12 +3279,12 @@ var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
3265
3279
 
3266
3280
  // ../workspace-tools/src/utils/package-helpers.ts
3267
3281
  import { joinPathFragments as joinPathFragments6, readJsonFile as readJsonFile2 } from "@nx/devkit";
3268
- import { existsSync as existsSync5 } from "node:fs";
3282
+ import { existsSync as existsSync8 } from "node:fs";
3269
3283
 
3270
3284
  // ../workspace-tools/src/utils/plugin-helpers.ts
3271
3285
  import { readJsonFile as readJsonFile3 } from "@nx/devkit";
3272
3286
  import defu4 from "defu";
3273
- import { existsSync as existsSync6 } from "node:fs";
3287
+ import { existsSync as existsSync9 } from "node:fs";
3274
3288
  import { dirname as dirname2, join as join3 } from "node:path";
3275
3289
 
3276
3290
  // ../workspace-tools/src/utils/typia-transform.ts
@@ -260,7 +260,6 @@ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml
260
260
  var LARGE_BUFFER = 1024 * 1e6;
261
261
 
262
262
  // ../esbuild/src/build.ts
263
- var _node = require('@humanfs/node');
264
263
 
265
264
 
266
265
  // ../build-tools/src/config.ts
@@ -547,6 +546,8 @@ var _estoolkit = require('es-toolkit');
547
546
  var _compat = require('es-toolkit/compat');
548
547
  var _esbuild = require('esbuild'); var esbuild2 = _interopRequireWildcard(_esbuild); var esbuild = _interopRequireWildcard(_esbuild);
549
548
  var _globby = require('globby');
549
+
550
+
550
551
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
551
552
 
552
553
  // ../esbuild/src/base/renderer-engine.ts
@@ -692,13 +693,13 @@ var RendererEngine = class {
692
693
 
693
694
  // ../esbuild/src/clean.ts
694
695
 
695
- async function clean(name = "ESBuild", directory, config) {
696
- _chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
697
- const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${name} output clean`);
698
- await _node.hfs.deleteAll(directory);
699
- stopwatch();
696
+ async function cleanDirectories(name = "ESBuild", directory, config) {
697
+ await _promises.rm.call(void 0, directory, {
698
+ recursive: true,
699
+ force: true
700
+ });
700
701
  }
701
- _chunk3GQAWCBQjs.__name.call(void 0, clean, "clean");
702
+ _chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
702
703
 
703
704
  // ../esbuild/src/plugins/esm-split-code-to-cjs.ts
704
705
 
@@ -870,8 +871,9 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
870
871
  }), "resolvePathsPlugin");
871
872
 
872
873
  // ../esbuild/src/plugins/tsc.ts
873
-
874
874
  var _apiextractor = require('@microsoft/api-extractor');
875
+
876
+
875
877
  function bundleTypeDefinitions(filename, outfile, externals, options) {
876
878
  const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
877
879
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
@@ -944,18 +946,18 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
944
946
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
945
947
  const bundlePath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
946
948
  let dtsPath;
947
- if (await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
949
+ if (_fs.existsSync.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
948
950
  dtsPath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
949
- } else if (await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
951
+ } else if (_fs.existsSync.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
950
952
  dtsPath = _chunkARUOVAUXjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
951
953
  }
952
954
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
953
955
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
954
956
  bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
955
- const dtsContents = await _node.hfs.text(`${bundlePath}.d.ts`);
956
- await _node.hfs.write(`${bundlePath}.${ext}`, dtsContents);
957
+ const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
958
+ await _promises2.default.writeFile(`${bundlePath}.${ext}`, dtsContents);
957
959
  } else {
958
- await _node.hfs.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
960
+ await _promises2.default.writeFile(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
959
961
  }
960
962
  }
961
963
  });
@@ -1204,10 +1206,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1204
1206
  exitOnError: true
1205
1207
  });
1206
1208
  const projectJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1207
- if (!await _node.hfs.isFile(projectJsonPath)) {
1209
+ if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1208
1210
  throw new Error("Cannot find project.json configuration");
1209
1211
  }
1210
- const projectJson = await _node.hfs.json(projectJsonPath);
1212
+ const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
1213
+ const projectJson = JSON.parse(projectJsonFile);
1211
1214
  const projectName = projectJson.name;
1212
1215
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1213
1216
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _27 => _27.projects, 'optionalAccess', _28 => _28[projectName]])) {
@@ -1217,10 +1220,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1217
1220
  options.name ??= `${projectName}-${options.format}`;
1218
1221
  options.target ??= DEFAULT_TARGET;
1219
1222
  const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1220
- if (!await _node.hfs.isFile(packageJsonPath)) {
1223
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1221
1224
  throw new Error("Cannot find package.json configuration");
1222
1225
  }
1223
- const packageJson = await _node.hfs.json(packageJsonPath);
1226
+ const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
1227
+ const packageJson = JSON.parse(packageJsonFile);
1224
1228
  const outExtension = getOutputExtensionMap(options, packageJson.type);
1225
1229
  const env = getEnv("esbuild", options);
1226
1230
  const result = {
@@ -1299,14 +1303,15 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1299
1303
  return result;
1300
1304
  }, "resolveOptions");
1301
1305
  async function generatePackageJson(context2) {
1302
- if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1306
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1303
1307
  _chunkARUOVAUXjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1304
1308
  const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Write package.json file");
1305
1309
  const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1306
- if (!await _node.hfs.isFile(packageJsonPath)) {
1310
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1307
1311
  throw new Error("Cannot find package.json configuration");
1308
1312
  }
1309
- let packageJson = await _node.hfs.json(_chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1313
+ const packageJsonFile = await _promises2.default.readFile(_chunkARUOVAUXjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1314
+ let packageJson = JSON.parse(packageJsonFile);
1310
1315
  if (!packageJson) {
1311
1316
  throw new Error("Cannot find package.json configuration file");
1312
1317
  }
@@ -1379,7 +1384,7 @@ async function executeEsBuild(context2) {
1379
1384
  const result = await esbuild2.build(context2.options);
1380
1385
  if (result.metafile) {
1381
1386
  const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
1382
- await _node.hfs.write(metafilePath, JSON.stringify(result.metafile));
1387
+ await _promises2.default.writeFile(metafilePath, JSON.stringify(result.metafile));
1383
1388
  }
1384
1389
  stopwatch();
1385
1390
  return context2;
@@ -1436,7 +1441,10 @@ async function dependencyCheck(options) {
1436
1441
  _chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1437
1442
  async function cleanOutputPath(context2) {
1438
1443
  if (context2.options.clean !== false && context2.options.outdir) {
1439
- await clean(context2.options.name, context2.options.outdir, context2.options.config);
1444
+ _chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1445
+ const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1446
+ await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1447
+ stopwatch();
1440
1448
  }
1441
1449
  return context2;
1442
1450
  }
@@ -1576,17 +1584,18 @@ var executor_default7 = _chunkARUOVAUXjs.withRunExecutor.call(void 0, "Size-Limi
1576
1584
 
1577
1585
 
1578
1586
 
1587
+
1579
1588
  var _tsdown = require('tsdown');
1580
1589
 
1581
1590
  // ../tsdown/src/clean.ts
1582
1591
 
1583
- async function clean2(name = "ESBuild", directory, config) {
1584
- _chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1585
- const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${name} output clean`);
1586
- await _node.hfs.deleteAll(directory);
1587
- stopwatch();
1592
+ async function cleanDirectories2(name = "TSDown", directory, config) {
1593
+ await _promises.rm.call(void 0, directory, {
1594
+ recursive: true,
1595
+ force: true
1596
+ });
1588
1597
  }
1589
- _chunk3GQAWCBQjs.__name.call(void 0, clean2, "clean");
1598
+ _chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories2, "cleanDirectories");
1590
1599
 
1591
1600
  // ../tsdown/src/config.ts
1592
1601
  var DEFAULT_BUILD_OPTIONS2 = {
@@ -1624,10 +1633,11 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1624
1633
  exitOnError: true
1625
1634
  });
1626
1635
  const projectJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1627
- if (!await _node.hfs.isFile(projectJsonPath)) {
1636
+ if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1628
1637
  throw new Error("Cannot find project.json configuration");
1629
1638
  }
1630
- const projectJson = await _node.hfs.json(projectJsonPath);
1639
+ const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
1640
+ const projectJson = JSON.parse(projectJsonFile);
1631
1641
  const projectName = projectJson.name;
1632
1642
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1633
1643
  if (!_optionalChain([projectConfigurations, 'optionalAccess', _60 => _60.projects, 'optionalAccess', _61 => _61[projectName]])) {
@@ -1637,7 +1647,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1637
1647
  options.name ??= `${projectName}-${options.format}`;
1638
1648
  options.target ??= DEFAULT_TARGET;
1639
1649
  const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1640
- if (!await _node.hfs.isFile(packageJsonPath)) {
1650
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1641
1651
  throw new Error("Cannot find package.json configuration");
1642
1652
  }
1643
1653
  const env = getEnv("tsdown", options);
@@ -1692,17 +1702,18 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1692
1702
  return result;
1693
1703
  }, "resolveOptions");
1694
1704
  async function generatePackageJson2(options) {
1695
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1705
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1696
1706
  _chunkARUOVAUXjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1697
1707
  const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, "Write package.json file");
1698
1708
  const packageJsonPath = _chunkARUOVAUXjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1699
- if (!await _node.hfs.isFile(packageJsonPath)) {
1709
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1700
1710
  throw new Error("Cannot find package.json configuration");
1701
1711
  }
1702
- let packageJson = await _node.hfs.json(_chunkARUOVAUXjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
1703
- if (!packageJson) {
1712
+ const packageJsonFile = await _promises2.default.readFile(_chunkARUOVAUXjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1713
+ if (!packageJsonFile) {
1704
1714
  throw new Error("Cannot find package.json configuration file");
1705
1715
  }
1716
+ let packageJson = JSON.parse(packageJsonFile);
1706
1717
  packageJson = await addPackageDependencies(options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
1707
1718
  packageJson = await addWorkspacePackageJsonFields(options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
1708
1719
  packageJson.exports ??= {};
@@ -1770,7 +1781,10 @@ async function reportResults2(options) {
1770
1781
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults2, "reportResults");
1771
1782
  async function cleanOutputPath2(options) {
1772
1783
  if (options.clean !== false && options.outdir) {
1773
- await clean2(options.name, options.outdir, options.config);
1784
+ _chunkARUOVAUXjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1785
+ const stopwatch = _chunkARUOVAUXjs.getStopwatch.call(void 0, `${options.name} output clean`);
1786
+ await cleanDirectories2(options.name, options.outdir, options.config);
1787
+ stopwatch();
1774
1788
  }
1775
1789
  return options;
1776
1790
  }
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunk2VDQN4UVjs = require('./chunk-2VDQN4UV.js');
4
+ var _chunkQQEMEXKDjs = require('./chunk-QQEMEXKD.js');
5
5
  require('./chunk-ARUOVAUX.js');
6
6
  require('./chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
- exports.initGenerator = _chunk2VDQN4UVjs.initGenerator;
9
+ exports.initGenerator = _chunkQQEMEXKDjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-IWQYYN5V.mjs";
4
+ } from "./chunk-36JBFVDO.mjs";
5
5
  import "./chunk-MZ27JZT5.mjs";
6
6
  import "./chunk-XUV4U54K.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ require('./chunk-IILCY4K6.js');
5
5
  require('./chunk-N2YKXZ5R.js');
6
6
 
7
7
 
8
- var _chunk2VDQN4UVjs = require('./chunk-2VDQN4UV.js');
8
+ var _chunkQQEMEXKDjs = require('./chunk-QQEMEXKD.js');
9
9
  require('./chunk-GUQOEBFW.js');
10
10
 
11
11
 
@@ -20,4 +20,4 @@ require('./chunk-3GQAWCBQ.js');
20
20
 
21
21
 
22
22
 
23
- exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk2VDQN4UVjs.initGenerator; exports.withTerraformExecutor = _chunk5SJJD7T2js.withTerraformExecutor;
23
+ exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkQQEMEXKDjs.initGenerator; exports.withTerraformExecutor = _chunk5SJJD7T2js.withTerraformExecutor;
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import "./chunk-JSGMKYAJ.mjs";
5
5
  import "./chunk-23KFTIT2.mjs";
6
6
  import {
7
7
  initGenerator
8
- } from "./chunk-IWQYYN5V.mjs";
8
+ } from "./chunk-36JBFVDO.mjs";
9
9
  import "./chunk-CA7S5MOH.mjs";
10
10
  import {
11
11
  base_terraform_executor_untyped_default
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2VDQN4UVjs = require('../../../chunk-2VDQN4UV.js');
4
+ var _chunkQQEMEXKDjs = require('../../../chunk-QQEMEXKD.js');
5
5
  require('../../../chunk-ARUOVAUX.js');
6
6
  require('../../../chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunk2VDQN4UVjs.init_default; exports.initGenerator = _chunk2VDQN4UVjs.initGenerator;
10
+ exports.default = _chunkQQEMEXKDjs.init_default; exports.initGenerator = _chunkQQEMEXKDjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initGenerator,
3
3
  init_default
4
- } from "../../../chunk-IWQYYN5V.mjs";
4
+ } from "../../../chunk-36JBFVDO.mjs";
5
5
  import "../../../chunk-MZ27JZT5.mjs";
6
6
  import "../../../chunk-XUV4U54K.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/terraform-tools",
3
- "version": "0.54.3",
3
+ "version": "0.54.4",
4
4
  "description": "Tools for managing Terraform infrastructure within a Nx workspace.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -123,7 +123,7 @@
123
123
  "nx": { "optional": false }
124
124
  },
125
125
  "dependencies": {
126
- "@storm-software/workspace-tools": "1.243.2",
126
+ "@storm-software/workspace-tools": "1.243.3",
127
127
  "shelljs": "^0.8.5",
128
128
  "tslib": "^2.6.3"
129
129
  },