@storm-software/terraform-tools 0.54.3 → 0.54.5
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-IWQYYN5V.mjs → chunk-36JBFVDO.mjs} +58 -44
- package/dist/{chunk-2VDQN4UV.js → chunk-QQEMEXKD.js} +50 -36
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 0.54.5 (2025-01-28)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([812b4fba](https://github.com/storm-software/storm-ops/commit/812b4fba))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated workspace-tools to 1.244.0
|
|
10
|
+
- Updated workspace-tools to 1.244.0
|
|
11
|
+
|
|
12
|
+
## 0.54.4 (2025-01-28)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files ([f3649091](https://github.com/storm-software/storm-ops/commit/f3649091))
|
|
17
|
+
|
|
18
|
+
### 🧱 Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated workspace-tools to 1.243.3
|
|
21
|
+
- Updated workspace-tools to 1.243.3
|
|
22
|
+
|
|
1
23
|
## 0.54.3 (2025-01-28)
|
|
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 -->
|
|
@@ -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 {
|
|
696
|
-
async function
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
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(
|
|
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 (
|
|
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 (
|
|
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
|
|
957
|
-
await
|
|
958
|
+
const dtsContents = await fs3.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
959
|
+
await fs3.writeFile(`${bundlePath}.${ext}`, dtsContents);
|
|
958
960
|
} else {
|
|
959
|
-
await
|
|
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 (!
|
|
1210
|
+
if (!existsSync4(projectJsonPath)) {
|
|
1209
1211
|
throw new Error("Cannot find project.json configuration");
|
|
1210
1212
|
}
|
|
1211
|
-
const
|
|
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 (!
|
|
1224
|
+
if (!existsSync4(packageJsonPath)) {
|
|
1222
1225
|
throw new Error("Cannot find package.json configuration");
|
|
1223
1226
|
}
|
|
1224
|
-
const
|
|
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 &&
|
|
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 (!
|
|
1311
|
+
if (!existsSync4(packageJsonPath)) {
|
|
1308
1312
|
throw new Error("Cannot find package.json configuration");
|
|
1309
1313
|
}
|
|
1310
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
1538
|
+
import fs4 from "node:fs/promises";
|
|
1531
1539
|
|
|
1532
1540
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
1533
|
-
import { existsSync as
|
|
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 {
|
|
1584
|
-
async function
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
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(
|
|
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 (!
|
|
1637
|
+
if (!existsSync6(projectJsonPath)) {
|
|
1629
1638
|
throw new Error("Cannot find project.json configuration");
|
|
1630
1639
|
}
|
|
1631
|
-
const
|
|
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 (!
|
|
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 &&
|
|
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 (!
|
|
1710
|
+
if (!existsSync6(packageJsonPath)) {
|
|
1701
1711
|
throw new Error("Cannot find package.json configuration");
|
|
1702
1712
|
}
|
|
1703
|
-
|
|
1704
|
-
if (!
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
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,
|
|
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 (
|
|
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 (
|
|
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
|
|
956
|
-
await
|
|
957
|
+
const dtsContents = await _promises2.default.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
958
|
+
await _promises2.default.writeFile(`${bundlePath}.${ext}`, dtsContents);
|
|
957
959
|
} else {
|
|
958
|
-
await
|
|
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 (!
|
|
1209
|
+
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1208
1210
|
throw new Error("Cannot find project.json configuration");
|
|
1209
1211
|
}
|
|
1210
|
-
const
|
|
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 (!
|
|
1223
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1221
1224
|
throw new Error("Cannot find package.json configuration");
|
|
1222
1225
|
}
|
|
1223
|
-
const
|
|
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 &&
|
|
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 (!
|
|
1310
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1307
1311
|
throw new Error("Cannot find package.json configuration");
|
|
1308
1312
|
}
|
|
1309
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
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,
|
|
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 (!
|
|
1636
|
+
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1628
1637
|
throw new Error("Cannot find project.json configuration");
|
|
1629
1638
|
}
|
|
1630
|
-
const
|
|
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 (!
|
|
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 &&
|
|
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 (!
|
|
1709
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1700
1710
|
throw new Error("Cannot find package.json configuration");
|
|
1701
1711
|
}
|
|
1702
|
-
|
|
1703
|
-
if (!
|
|
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
|
-
|
|
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
|
}
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
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 =
|
|
9
|
+
exports.initGenerator = _chunkQQEMEXKDjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
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
|
|
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 =
|
|
23
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkQQEMEXKDjs.initGenerator; exports.withTerraformExecutor = _chunk5SJJD7T2js.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
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 =
|
|
10
|
+
exports.default = _chunkQQEMEXKDjs.init_default; exports.initGenerator = _chunkQQEMEXKDjs.initGenerator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/terraform-tools",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.5",
|
|
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.
|
|
126
|
+
"@storm-software/workspace-tools": "1.244.0",
|
|
127
127
|
"shelljs": "^0.8.5",
|
|
128
128
|
"tslib": "^2.6.3"
|
|
129
129
|
},
|