@storm-software/terraform-tools 0.62.6 → 0.62.7
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 +9 -0
- package/README.md +1 -1
- package/dist/{chunk-FZN35W4X.js → chunk-A6YND2BU.js} +2 -2
- package/dist/{chunk-6AKHBMSA.js → chunk-AAJDFJYK.js} +2 -2
- package/dist/{chunk-ET3UGY2L.mjs → chunk-C5VKA26O.mjs} +1 -1
- package/dist/{chunk-WYONVDTO.mjs → chunk-CKIMQIWP.mjs} +6 -4
- package/dist/chunk-EP2PXXBJ.mjs +10 -0
- package/dist/{chunk-N3EQIDHT.js → chunk-OBJXBSXN.js} +2 -2
- package/dist/{chunk-EOCIL5BE.mjs → chunk-OVEZ53VK.mjs} +1 -1
- package/dist/{chunk-L4WE6GUL.mjs → chunk-R2LPQYBA.mjs} +1 -1
- package/dist/{chunk-NBKNLXBU.mjs → chunk-TFRWPS5M.mjs} +8 -121
- package/dist/{chunk-V2SHLAIZ.mjs → chunk-TXJ44D5O.mjs} +1 -1
- package/dist/{chunk-PD7YZBRS.js → chunk-VDAWVSN6.js} +113 -228
- package/dist/{chunk-UHFIUDKJ.js → chunk-VDGQVQKE.js} +2 -2
- package/dist/{chunk-XZU22PSP.js → chunk-VFJBGAJA.js} +2 -2
- package/dist/{chunk-2NXAAPRN.js → chunk-WFAKWGXA.js} +6 -4
- package/dist/{chunk-5MZLXAHB.mjs → chunk-Z235AGW2.mjs} +1 -1
- package/dist/executors.js +6 -7
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -4
- package/dist/generators.mjs +3 -3
- package/dist/index.js +8 -9
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-terraform-executor.untyped.js +0 -1
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +3 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/terraform-executor.js +3 -4
- package/dist/src/base/terraform-executor.mjs +3 -3
- package/dist/src/executors/apply/executor.js +4 -5
- package/dist/src/executors/apply/executor.mjs +4 -4
- package/dist/src/executors/destroy/executor.js +4 -5
- package/dist/src/executors/destroy/executor.mjs +4 -4
- package/dist/src/executors/output/executor.js +4 -5
- package/dist/src/executors/output/executor.mjs +4 -4
- package/dist/src/executors/plan/executor.js +4 -5
- package/dist/src/executors/plan/executor.mjs +4 -4
- package/dist/src/generators/init/init.js +3 -4
- package/dist/src/generators/init/init.mjs +3 -3
- package/dist/tsup.config.js +1 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-3RG5ZIWI.js +0 -10
- package/dist/chunk-URGPIQOV.mjs +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.62.6](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.62.6) (2025-08-11)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update to TypeScript v5.9.2
|
|
10
|
+
([cf34d601f](https://github.com/storm-software/storm-ops/commit/cf34d601f))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([5b9ffe718](https://github.com/storm-software/storm-ops/commit/5b9ffe718))
|
|
13
|
+
|
|
5
14
|
## [0.62.5](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.62.5) (2025-08-09)
|
|
6
15
|
|
|
7
16
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWFAKWGXAjs = require('./chunk-WFAKWGXA.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/run.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -24,7 +24,7 @@ var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => (
|
|
|
24
24
|
// src/base/terraform-executor.ts
|
|
25
25
|
var _shelljs = require('shelljs');
|
|
26
26
|
var withTerraformExecutor = (command, executorOptions = {}) => async (_options, context) => {
|
|
27
|
-
return
|
|
27
|
+
return _chunkWFAKWGXAjs.withRunExecutor.call(void 0,
|
|
28
28
|
`Terraform \`${command}\` Command Executor`,
|
|
29
29
|
async (options, context2, config) => {
|
|
30
30
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA6YND2BUjs = require('./chunk-A6YND2BU.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkA6YND2BUjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1400,7 +1400,7 @@ var getConfigEnv = () => {
|
|
|
1400
1400
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1401
1401
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1402
1402
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1403
|
-
configFile: process.env[`${prefix}
|
|
1403
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1404
1404
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1405
1405
|
directories: {
|
|
1406
1406
|
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
@@ -1463,7 +1463,7 @@ var getConfigEnv = () => {
|
|
|
1463
1463
|
config.licensing = `${config.homepage}/docs`;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
const serializedConfig = process.env[`${prefix}
|
|
1466
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1467
1467
|
if (serializedConfig) {
|
|
1468
1468
|
const parsed = JSON.parse(serializedConfig);
|
|
1469
1469
|
config = {
|
|
@@ -1695,7 +1695,9 @@ var setConfigEnv = (config) => {
|
|
|
1695
1695
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1696
1696
|
}
|
|
1697
1697
|
if (config.configFile) {
|
|
1698
|
-
process.env[`${prefix}
|
|
1698
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
1699
|
+
config.configFile
|
|
1700
|
+
);
|
|
1699
1701
|
}
|
|
1700
1702
|
if (config.workspaceRoot) {
|
|
1701
1703
|
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
@@ -1799,7 +1801,7 @@ var setConfigEnv = (config) => {
|
|
|
1799
1801
|
config.skipConfigLogging
|
|
1800
1802
|
);
|
|
1801
1803
|
}
|
|
1802
|
-
process.env[`${prefix}
|
|
1804
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1803
1805
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
1804
1806
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1805
1807
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__297f17f1454f91c6953e15139a881a25/node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__dirname
|
|
10
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA6YND2BUjs = require('./chunk-A6YND2BU.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkA6YND2BUjs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -17,11 +17,10 @@ import {
|
|
|
17
17
|
writeSuccess,
|
|
18
18
|
writeTrace,
|
|
19
19
|
writeWarning
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CKIMQIWP.mjs";
|
|
21
21
|
import {
|
|
22
|
-
__dirname
|
|
23
|
-
|
|
24
|
-
} from "./chunk-URGPIQOV.mjs";
|
|
22
|
+
__dirname
|
|
23
|
+
} from "./chunk-EP2PXXBJ.mjs";
|
|
25
24
|
|
|
26
25
|
// src/generators/init/init.ts
|
|
27
26
|
import { formatFiles as formatFiles9 } from "@nx/devkit";
|
|
@@ -258,10 +257,6 @@ import { readFileSync } from "node:fs";
|
|
|
258
257
|
import https from "node:https";
|
|
259
258
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
260
259
|
|
|
261
|
-
// ../esbuild/src/build.ts
|
|
262
|
-
import * as esbuild from "esbuild";
|
|
263
|
-
import { globbySync } from "globby";
|
|
264
|
-
|
|
265
260
|
// ../build-tools/src/config.ts
|
|
266
261
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
267
262
|
*
|
|
@@ -837,88 +832,6 @@ async function generatePackageJson(context) {
|
|
|
837
832
|
return context;
|
|
838
833
|
}
|
|
839
834
|
|
|
840
|
-
// ../esbuild/src/plugins/deps-check.ts
|
|
841
|
-
import { builtinModules as builtinModules2 } from "node:module";
|
|
842
|
-
import path2 from "node:path";
|
|
843
|
-
var unusedIgnore = [
|
|
844
|
-
// these are our dev dependencies
|
|
845
|
-
/@types\/.*?/,
|
|
846
|
-
/@typescript-eslint.*?/,
|
|
847
|
-
/eslint.*?/,
|
|
848
|
-
"esbuild",
|
|
849
|
-
"husky",
|
|
850
|
-
"is-ci",
|
|
851
|
-
"lint-staged",
|
|
852
|
-
"prettier",
|
|
853
|
-
"typescript",
|
|
854
|
-
"ts-node",
|
|
855
|
-
"ts-jest",
|
|
856
|
-
"@swc/core",
|
|
857
|
-
"@swc/jest",
|
|
858
|
-
"jest",
|
|
859
|
-
// these are missing 3rd party deps
|
|
860
|
-
"spdx-exceptions",
|
|
861
|
-
"spdx-license-ids",
|
|
862
|
-
// type-only, so it is not detected
|
|
863
|
-
"ts-toolbelt",
|
|
864
|
-
// these are indirectly used by build
|
|
865
|
-
"buffer"
|
|
866
|
-
];
|
|
867
|
-
var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
868
|
-
var depsCheckPlugin = (bundle) => ({
|
|
869
|
-
name: "storm:deps-check",
|
|
870
|
-
setup(build3) {
|
|
871
|
-
const pkgJsonPath = path2.join(process.cwd(), "package.json");
|
|
872
|
-
const pkgContents = __require(pkgJsonPath);
|
|
873
|
-
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
874
|
-
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
875
|
-
const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
|
|
876
|
-
const dependencies = [
|
|
877
|
-
...regDependencies,
|
|
878
|
-
...bundle ? devDependencies : []
|
|
879
|
-
];
|
|
880
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
881
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
882
|
-
build3.onResolve({ filter: onlyPackages }, (args) => {
|
|
883
|
-
if (args.importer.includes(process.cwd())) {
|
|
884
|
-
if (args.path[0] === "@") {
|
|
885
|
-
const [org, pkg] = args.path.split("/");
|
|
886
|
-
collectedDependencies.add(`${org}/${pkg}`);
|
|
887
|
-
} else {
|
|
888
|
-
const [pkg] = args.path.split("/");
|
|
889
|
-
collectedDependencies.add(pkg);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
return { external: true };
|
|
893
|
-
});
|
|
894
|
-
build3.onEnd(() => {
|
|
895
|
-
const unusedDependencies = [...dependencies].filter((dep) => {
|
|
896
|
-
return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
|
|
897
|
-
});
|
|
898
|
-
const missingDependencies = [...collectedDependencies].filter((dep) => {
|
|
899
|
-
return !dependencies.includes(dep) && !builtinModules2.includes(dep);
|
|
900
|
-
});
|
|
901
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
902
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
903
|
-
});
|
|
904
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
905
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
906
|
-
});
|
|
907
|
-
writeWarning(
|
|
908
|
-
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
909
|
-
);
|
|
910
|
-
writeError(
|
|
911
|
-
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
912
|
-
);
|
|
913
|
-
if (filteredMissingDeps.length > 0) {
|
|
914
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
915
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
916
|
-
`);
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
});
|
|
921
|
-
|
|
922
835
|
// ../esbuild/src/tsup.ts
|
|
923
836
|
import { build as tsup } from "tsup";
|
|
924
837
|
async function executeTsup(context) {
|
|
@@ -959,32 +872,6 @@ async function reportResults(context) {
|
|
|
959
872
|
);
|
|
960
873
|
}
|
|
961
874
|
}
|
|
962
|
-
async function dependencyCheck(options) {
|
|
963
|
-
if (process.env.DEV === "true") {
|
|
964
|
-
return void 0;
|
|
965
|
-
}
|
|
966
|
-
if (process.env.CI && !process.env.BUILDKITE) {
|
|
967
|
-
return void 0;
|
|
968
|
-
}
|
|
969
|
-
const buildPromise = esbuild.build({
|
|
970
|
-
entryPoints: globbySync("**/*.{j,t}s", {
|
|
971
|
-
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
972
|
-
ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
|
|
973
|
-
gitignore: true
|
|
974
|
-
}),
|
|
975
|
-
logLevel: "silent",
|
|
976
|
-
// there will be errors
|
|
977
|
-
bundle: true,
|
|
978
|
-
// we bundle to get everything
|
|
979
|
-
write: false,
|
|
980
|
-
// no need to write for analysis
|
|
981
|
-
outdir: "out",
|
|
982
|
-
plugins: [depsCheckPlugin(options.bundle)]
|
|
983
|
-
});
|
|
984
|
-
await buildPromise.catch(() => {
|
|
985
|
-
});
|
|
986
|
-
return void 0;
|
|
987
|
-
}
|
|
988
875
|
async function cleanOutputPath(context) {
|
|
989
876
|
if (context.clean !== false && context.outputPath) {
|
|
990
877
|
writeDebug(
|
|
@@ -997,7 +884,7 @@ async function cleanOutputPath(context) {
|
|
|
997
884
|
}
|
|
998
885
|
return context;
|
|
999
886
|
}
|
|
1000
|
-
async function
|
|
887
|
+
async function build(options) {
|
|
1001
888
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1002
889
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
1003
890
|
try {
|
|
@@ -1008,7 +895,7 @@ async function build2(options) {
|
|
|
1008
895
|
const context = await resolveContext(options);
|
|
1009
896
|
await cleanOutputPath(context);
|
|
1010
897
|
await Promise.all([
|
|
1011
|
-
dependencyCheck(context.options),
|
|
898
|
+
// dependencyCheck(context.options),
|
|
1012
899
|
generatePackageJson(context),
|
|
1013
900
|
copyBuildAssets(context),
|
|
1014
901
|
executeTsup(context)
|
|
@@ -1033,7 +920,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
1033
920
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1034
921
|
);
|
|
1035
922
|
}
|
|
1036
|
-
await
|
|
923
|
+
await build({
|
|
1037
924
|
...options,
|
|
1038
925
|
projectRoot: context.projectsConfigurations.projects?.[context.projectName].root,
|
|
1039
926
|
name: context.projectName,
|
|
@@ -2017,7 +1904,7 @@ import {
|
|
|
2017
1904
|
joinPathFragments as joinPathFragments5,
|
|
2018
1905
|
updateJson as updateJson2
|
|
2019
1906
|
} from "@nx/devkit";
|
|
2020
|
-
import * as
|
|
1907
|
+
import * as path2 from "node:path";
|
|
2021
1908
|
async function presetGeneratorFn(tree, options) {
|
|
2022
1909
|
const projectRoot = ".";
|
|
2023
1910
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
@@ -2165,7 +2052,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2165
2052
|
};
|
|
2166
2053
|
return json;
|
|
2167
2054
|
});
|
|
2168
|
-
generateFiles4(tree,
|
|
2055
|
+
generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
|
|
2169
2056
|
...options,
|
|
2170
2057
|
pnpmVersion,
|
|
2171
2058
|
nodeVersion
|