@storm-software/terraform-tools 0.66.263 → 0.66.264
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-THH4HSU5.js → chunk-7K3RGYTD.js} +71 -50
- package/dist/{chunk-TRYUETGL.mjs → chunk-YW3RUQVA.mjs} +26 -5
- 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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.66.263](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.263) (06/28/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Upgrade workspace packages' dependencies ([fcc009e9d](https://github.com/storm-software/storm-ops/commit/fcc009e9d))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.17**
|
|
14
|
+
- Updated **config-tools** to **v1.190.80**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.60**
|
|
16
|
+
|
|
5
17
|
## [0.66.262](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.262) (06/28/2026)
|
|
6
18
|
|
|
7
19
|
### Updated Dependencies
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -26,12 +26,24 @@ var _chunkA6WNSDR7js = require('./chunk-A6WNSDR7.js');
|
|
|
26
26
|
// src/generators/init/init.ts
|
|
27
27
|
var _devkit = require('@nx/devkit');
|
|
28
28
|
|
|
29
|
+
// ../config-tools/src/utilities/toml.ts
|
|
30
|
+
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
31
|
+
function parseCargoToml(cargoString) {
|
|
32
|
+
if (!cargoString) {
|
|
33
|
+
throw new Error("Cargo.toml is empty");
|
|
34
|
+
}
|
|
35
|
+
return _jtoml2.default.parse(cargoString, {
|
|
36
|
+
x: { comment: true }
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
// ../workspace-tools/src/utils/cargo.ts
|
|
30
41
|
|
|
31
42
|
|
|
32
43
|
|
|
33
44
|
|
|
34
45
|
var _child_process = require('child_process');
|
|
46
|
+
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
35
47
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
36
48
|
var INVALID_CARGO_ARGS = [
|
|
37
49
|
"allFeatures",
|
|
@@ -65,8 +77,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
65
77
|
args.push(`--${key}`, String(value));
|
|
66
78
|
}
|
|
67
79
|
}
|
|
68
|
-
if (context.projectName) {
|
|
69
|
-
|
|
80
|
+
if (context.projectName && _optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) && _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'optionalAccess', _5 => _5.projects, 'access', _6 => _6[context.projectName]]) && _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'optionalAccess', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root]) && _optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'optionalAccess', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.root, 'access', _15 => _15.includes, 'call', _16 => _16("Cargo.toml")])) {
|
|
81
|
+
const cargoToml = parseCargoToml(
|
|
82
|
+
_fs.readFileSync.call(void 0,
|
|
83
|
+
_devkit.joinPathFragments.call(void 0,
|
|
84
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
85
|
+
"Cargo.toml"
|
|
86
|
+
),
|
|
87
|
+
"utf-8"
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
args.push("-p", cargoToml.package.name);
|
|
70
91
|
}
|
|
71
92
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
72
93
|
args.push("--all-features");
|
|
@@ -89,10 +110,10 @@ async function cargoCommand(workspaceRoot2, ...args) {
|
|
|
89
110
|
}
|
|
90
111
|
function cargoCommandSync(args = "", options) {
|
|
91
112
|
const normalizedOptions = {
|
|
92
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
113
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.stdio]), () => ( "inherit")),
|
|
93
114
|
env: {
|
|
94
115
|
...process.env,
|
|
95
|
-
..._optionalChain([options, 'optionalAccess',
|
|
116
|
+
..._optionalChain([options, 'optionalAccess', _18 => _18.env])
|
|
96
117
|
}
|
|
97
118
|
};
|
|
98
119
|
try {
|
|
@@ -125,7 +146,7 @@ function cargoMetadata() {
|
|
|
125
146
|
}
|
|
126
147
|
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
127
148
|
const metadata = cargoMetadata();
|
|
128
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
149
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _19 => _19.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
129
150
|
return new Promise((resolve2) => {
|
|
130
151
|
if (process.env.VERCEL) {
|
|
131
152
|
return resolve2({ success: true });
|
|
@@ -256,7 +277,7 @@ var executor_default5 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
|
256
277
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
257
278
|
|
|
258
279
|
|
|
259
|
-
|
|
280
|
+
|
|
260
281
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
261
282
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
262
283
|
|
|
@@ -394,7 +415,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
394
415
|
);
|
|
395
416
|
const localPackages = [];
|
|
396
417
|
for (const project of projectDependencies.dependencies.filter(
|
|
397
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
418
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _20 => _20.node, 'access', _21 => _21.data, 'optionalAccess', _22 => _22.root]) !== projectRoot && _optionalChain([dep, 'access', _23 => _23.node, 'access', _24 => _24.data, 'optionalAccess', _25 => _25.root]) !== workspaceRoot2
|
|
398
419
|
)) {
|
|
399
420
|
const projectNode = project.node;
|
|
400
421
|
if (projectNode.data.root) {
|
|
@@ -426,13 +447,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
426
447
|
const projectJson = JSON.parse(projectJsonFile);
|
|
427
448
|
const projectName2 = projectJson.name;
|
|
428
449
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
429
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
450
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _26 => _26.projects, 'optionalAccess', _27 => _27[projectName2]])) {
|
|
430
451
|
throw new Error(
|
|
431
452
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
432
453
|
);
|
|
433
454
|
}
|
|
434
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
435
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
455
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _28 => _28.projects, 'optionalAccess', _29 => _29[projectName2], 'access', _30 => _30.implicitDependencies, 'optionalAccess', _31 => _31.reduce, 'call', _32 => _32((ret, dep) => {
|
|
456
|
+
if (_optionalChain([projectConfigurations, 'access', _33 => _33.projects, 'optionalAccess', _34 => _34[dep]])) {
|
|
436
457
|
const depPackageJsonPath = _chunkA6WNSDR7js.joinPaths.call(void 0,
|
|
437
458
|
workspaceRoot2,
|
|
438
459
|
projectConfigurations.projects[dep].root,
|
|
@@ -452,13 +473,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
452
473
|
return ret;
|
|
453
474
|
}, [])]);
|
|
454
475
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
455
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
476
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36(localPackage.name)]) && _optionalChain([packageJson, 'access', _37 => _37.devDependencies, 'optionalAccess', _38 => _38[localPackage.name]]) === void 0) {
|
|
456
477
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
457
478
|
}
|
|
458
479
|
return ret;
|
|
459
480
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
460
481
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
461
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
482
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40(localPackage.name)]) && _optionalChain([packageJson, 'access', _41 => _41.dependencies, 'optionalAccess', _42 => _42[localPackage.name]]) === void 0) {
|
|
462
483
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
463
484
|
}
|
|
464
485
|
return ret;
|
|
@@ -560,7 +581,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
560
581
|
|
|
561
582
|
// ../esbuild/src/assets.ts
|
|
562
583
|
async function copyBuildAssets(context) {
|
|
563
|
-
if (!_optionalChain([context, 'access',
|
|
584
|
+
if (!_optionalChain([context, 'access', _43 => _43.result, 'optionalAccess', _44 => _44.errors, 'access', _45 => _45.length]) && _optionalChain([context, 'access', _46 => _46.options, 'access', _47 => _47.assets, 'optionalAccess', _48 => _48.length])) {
|
|
564
585
|
_chunkA6WNSDR7js.writeDebug.call(void 0,
|
|
565
586
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
566
587
|
context.workspaceConfig
|
|
@@ -666,7 +687,7 @@ async function resolveContext(userOptions) {
|
|
|
666
687
|
const projectJson = JSON.parse(projectJsonFile);
|
|
667
688
|
const projectName = projectJson.name || userOptions.name;
|
|
668
689
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
669
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
690
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _49 => _49.projects, 'optionalAccess', _50 => _50[projectName]])) {
|
|
670
691
|
throw new Error(
|
|
671
692
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
672
693
|
);
|
|
@@ -894,7 +915,7 @@ async function executeTsup(context) {
|
|
|
894
915
|
|
|
895
916
|
// ../esbuild/src/build.ts
|
|
896
917
|
async function reportResults(context) {
|
|
897
|
-
if (_optionalChain([context, 'access',
|
|
918
|
+
if (_optionalChain([context, 'access', _51 => _51.result, 'optionalAccess', _52 => _52.errors, 'access', _53 => _53.length]) === 0) {
|
|
898
919
|
if (context.result.warnings.length > 0) {
|
|
899
920
|
_chunkA6WNSDR7js.writeWarning.call(void 0,
|
|
900
921
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -905,7 +926,7 @@ async function reportResults(context) {
|
|
|
905
926
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
906
927
|
context.workspaceConfig
|
|
907
928
|
);
|
|
908
|
-
} else if (_optionalChain([context, 'access',
|
|
929
|
+
} else if (_optionalChain([context, 'access', _54 => _54.result, 'optionalAccess', _55 => _55.errors]) && _optionalChain([context, 'access', _56 => _56.result, 'optionalAccess', _57 => _57.errors, 'access', _58 => _58.length]) > 0) {
|
|
909
930
|
_chunkA6WNSDR7js.writeError.call(void 0,
|
|
910
931
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
911
932
|
context.workspaceConfig
|
|
@@ -958,7 +979,7 @@ async function build2(options) {
|
|
|
958
979
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
959
980
|
async function esbuildExecutorFn(options, context, config) {
|
|
960
981
|
_chunkA6WNSDR7js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
961
|
-
if (!_optionalChain([context, 'access',
|
|
982
|
+
if (!_optionalChain([context, 'access', _59 => _59.projectsConfigurations, 'optionalAccess', _60 => _60.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context.projectName], 'optionalAccess', _64 => _64.root])) {
|
|
962
983
|
throw new Error(
|
|
963
984
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
964
985
|
);
|
|
@@ -967,10 +988,10 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
967
988
|
...options,
|
|
968
989
|
projectRoot: (
|
|
969
990
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
970
|
-
_optionalChain([context, 'access',
|
|
991
|
+
_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'optionalAccess', _67 => _67[context.projectName], 'access', _68 => _68.root])
|
|
971
992
|
),
|
|
972
993
|
name: context.projectName,
|
|
973
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
994
|
+
sourceRoot: _optionalChain([context, 'access', _69 => _69.projectsConfigurations, 'access', _70 => _70.projects, 'optionalAccess', _71 => _71[context.projectName], 'optionalAccess', _72 => _72.sourceRoot]),
|
|
974
995
|
format: options.format,
|
|
975
996
|
platform: options.platform
|
|
976
997
|
});
|
|
@@ -1009,12 +1030,12 @@ async function napiExecutor(options, context, config) {
|
|
|
1009
1030
|
const { NapiCli } = await jiti.import(
|
|
1010
1031
|
jiti.esmResolve("@napi-rs/cli")
|
|
1011
1032
|
);
|
|
1012
|
-
if (!_optionalChain([context, 'access',
|
|
1033
|
+
if (!_optionalChain([context, 'access', _73 => _73.projectGraph, 'optionalAccess', _74 => _74.nodes, 'access', _75 => _75[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
1013
1034
|
throw new Error(
|
|
1014
1035
|
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
1015
1036
|
);
|
|
1016
1037
|
}
|
|
1017
|
-
const projectRoot = _optionalChain([context, 'access',
|
|
1038
|
+
const projectRoot = _optionalChain([context, 'access', _76 => _76.projectGraph, 'optionalAccess', _77 => _77.nodes, 'access', _78 => _78[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _79 => _79.data, 'access', _80 => _80.root]);
|
|
1018
1039
|
const packageJson = _chunkA6WNSDR7js.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1019
1040
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1020
1041
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
@@ -1022,7 +1043,7 @@ async function napiExecutor(options, context, config) {
|
|
|
1022
1043
|
const napi = new NapiCli();
|
|
1023
1044
|
const normalizedOptions = { ...options };
|
|
1024
1045
|
const metadata = cargoMetadata();
|
|
1025
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess',
|
|
1046
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _81 => _81.target_directory]) || _chunkA6WNSDR7js.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1026
1047
|
normalizedOptions.outputDir = options.outputPath;
|
|
1027
1048
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
1028
1049
|
if (options.cwd) {
|
|
@@ -1231,15 +1252,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1231
1252
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1232
1253
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1233
1254
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
1234
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
1255
|
+
if (!_optionalChain([context, 'optionalAccess', _82 => _82.projectName]) || !_optionalChain([context, 'access', _83 => _83.projectsConfigurations, 'optionalAccess', _84 => _84.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1235
1256
|
throw new Error(
|
|
1236
1257
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1237
1258
|
);
|
|
1238
1259
|
}
|
|
1239
1260
|
_chunkA6WNSDR7js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1240
1261
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1241
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
1242
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
1262
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'access', _87 => _87[context.projectName], 'optionalAccess', _88 => _88.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1263
|
+
_nullishCoalesce(_optionalChain([context, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context.projectName], 'optionalAccess', _92 => _92.root]), () => ( "./")),
|
|
1243
1264
|
"src"
|
|
1244
1265
|
)))
|
|
1245
1266
|
}).then((result) => {
|
|
@@ -1337,7 +1358,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1337
1358
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1338
1359
|
const projectName = projectJson.name;
|
|
1339
1360
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1340
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1361
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _93 => _93.projects, 'optionalAccess', _94 => _94[projectName]])) {
|
|
1341
1362
|
throw new Error(
|
|
1342
1363
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
1343
1364
|
);
|
|
@@ -1558,7 +1579,7 @@ async function build3(options) {
|
|
|
1558
1579
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1559
1580
|
async function tsdownExecutorFn(options, context, config) {
|
|
1560
1581
|
_chunkA6WNSDR7js.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1561
|
-
if (!_optionalChain([context, 'access',
|
|
1582
|
+
if (!_optionalChain([context, 'access', _95 => _95.projectsConfigurations, 'optionalAccess', _96 => _96.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _97 => _97.projectsConfigurations, 'access', _98 => _98.projects, 'access', _99 => _99[context.projectName], 'optionalAccess', _100 => _100.root])) {
|
|
1562
1583
|
throw new Error(
|
|
1563
1584
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1564
1585
|
);
|
|
@@ -1567,10 +1588,10 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1567
1588
|
...options,
|
|
1568
1589
|
projectRoot: (
|
|
1569
1590
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1570
|
-
_optionalChain([context, 'access',
|
|
1591
|
+
_optionalChain([context, 'access', _101 => _101.projectsConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[context.projectName], 'access', _104 => _104.root])
|
|
1571
1592
|
),
|
|
1572
1593
|
name: context.projectName,
|
|
1573
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
1594
|
+
sourceRoot: _optionalChain([context, 'access', _105 => _105.projectsConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[context.projectName], 'optionalAccess', _108 => _108.sourceRoot]),
|
|
1574
1595
|
format: options.format,
|
|
1575
1596
|
platform: options.platform
|
|
1576
1597
|
});
|
|
@@ -1638,7 +1659,7 @@ var executor_default10 = _chunkA6WNSDR7js.withRunExecutor.call(void 0,
|
|
|
1638
1659
|
|
|
1639
1660
|
async function unbuildExecutorFn(options, context, config) {
|
|
1640
1661
|
_chunkA6WNSDR7js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1641
|
-
if (!_optionalChain([context, 'access',
|
|
1662
|
+
if (!_optionalChain([context, 'access', _109 => _109.projectsConfigurations, 'optionalAccess', _110 => _110.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1642
1663
|
throw new Error(
|
|
1643
1664
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
1644
1665
|
);
|
|
@@ -1755,7 +1776,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1755
1776
|
);
|
|
1756
1777
|
config = await _chunkA6WNSDR7js.getConfig.call(void 0, workspaceRoot2);
|
|
1757
1778
|
}
|
|
1758
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1779
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _111 => _111.hooks, 'optionalAccess', _112 => _112.applyDefaultOptions])) {
|
|
1759
1780
|
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1760
1781
|
options = await Promise.resolve(
|
|
1761
1782
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1772,7 +1793,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1772
1793
|
{ workspaceRoot: tree.root, config },
|
|
1773
1794
|
_chunkA6WNSDR7js.applyWorkspaceBaseTokens
|
|
1774
1795
|
);
|
|
1775
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1796
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _113 => _113.hooks, 'optionalAccess', _114 => _114.preProcess])) {
|
|
1776
1797
|
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1777
1798
|
await Promise.resolve(
|
|
1778
1799
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1783,15 +1804,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1783
1804
|
generatorFn(tree, tokenized, config)
|
|
1784
1805
|
);
|
|
1785
1806
|
if (result) {
|
|
1786
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1807
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _115 => _115.error, 'optionalAccess', _116 => _116.message]) && typeof _optionalChain([result, 'optionalAccess', _117 => _117.error, 'optionalAccess', _118 => _118.message]) === "string" && _optionalChain([result, 'optionalAccess', _119 => _119.error, 'optionalAccess', _120 => _120.name]) && typeof _optionalChain([result, 'optionalAccess', _121 => _121.error, 'optionalAccess', _122 => _122.name]) === "string") {
|
|
1787
1808
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1788
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1809
|
+
cause: _optionalChain([result, 'optionalAccess', _123 => _123.error])
|
|
1789
1810
|
});
|
|
1790
1811
|
} else if (result.success && result.data) {
|
|
1791
1812
|
return result;
|
|
1792
1813
|
}
|
|
1793
1814
|
}
|
|
1794
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1815
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _124 => _124.hooks, 'optionalAccess', _125 => _125.postProcess])) {
|
|
1795
1816
|
_chunkA6WNSDR7js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1796
1817
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1797
1818
|
_chunkA6WNSDR7js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -1923,15 +1944,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1923
1944
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1924
1945
|
let repository = {
|
|
1925
1946
|
type: "github",
|
|
1926
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
1947
|
+
url: _optionalChain([config, 'optionalAccess', _126 => _126.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _127 => _127.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _128 => _128.organization]) : _optionalChain([config, 'optionalAccess', _129 => _129.organization, 'optionalAccess', _130 => _130.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _131 => _131.namespace]) || _optionalChain([config, 'optionalAccess', _132 => _132.name]) || "repository"}.git`
|
|
1927
1948
|
};
|
|
1928
1949
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1929
1950
|
if (tree.exists("package.json")) {
|
|
1930
1951
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
1931
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1952
|
+
if (_optionalChain([packageJson, 'optionalAccess', _133 => _133.repository])) {
|
|
1932
1953
|
repository = packageJson.repository;
|
|
1933
1954
|
}
|
|
1934
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1955
|
+
if (_optionalChain([packageJson, 'optionalAccess', _134 => _134.description])) {
|
|
1935
1956
|
description = packageJson.description;
|
|
1936
1957
|
}
|
|
1937
1958
|
}
|
|
@@ -1986,9 +2007,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1986
2007
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
1987
2008
|
...json,
|
|
1988
2009
|
pnpm: {
|
|
1989
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2010
|
+
..._optionalChain([json, 'optionalAccess', _135 => _135.pnpm]),
|
|
1990
2011
|
overrides: {
|
|
1991
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2012
|
+
..._optionalChain([json, 'optionalAccess', _136 => _136.pnpm, 'optionalAccess', _137 => _137.overrides]),
|
|
1992
2013
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1993
2014
|
}
|
|
1994
2015
|
}
|
|
@@ -2006,10 +2027,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2006
2027
|
]);
|
|
2007
2028
|
if (tree.exists("package.json")) {
|
|
2008
2029
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2009
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2030
|
+
if (_optionalChain([packageJson, 'optionalAccess', _138 => _138.repository])) {
|
|
2010
2031
|
repository = packageJson.repository;
|
|
2011
2032
|
}
|
|
2012
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2033
|
+
if (_optionalChain([packageJson, 'optionalAccess', _139 => _139.description])) {
|
|
2013
2034
|
description = packageJson.description;
|
|
2014
2035
|
}
|
|
2015
2036
|
}
|
|
@@ -2046,22 +2067,22 @@ function getOutputPath(options) {
|
|
|
2046
2067
|
function createProjectTsConfigJson(tree, options) {
|
|
2047
2068
|
const tsconfig = {
|
|
2048
2069
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2049
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2070
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _140 => _140.tsconfigOptions]), () => ( {})),
|
|
2050
2071
|
compilerOptions: {
|
|
2051
2072
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2052
2073
|
outDir: _chunkA6WNSDR7js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2053
2074
|
noEmit: true,
|
|
2054
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2075
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.compilerOptions]), () => ( {}))
|
|
2055
2076
|
},
|
|
2056
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2077
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.tsconfigOptions, 'optionalAccess', _144 => _144.files]), () => ( []))],
|
|
2057
2078
|
include: [
|
|
2058
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2079
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _145 => _145.tsconfigOptions, 'optionalAccess', _146 => _146.include]), () => ( [])),
|
|
2059
2080
|
"src/**/*.ts",
|
|
2060
2081
|
"src/**/*.js",
|
|
2061
2082
|
"bin/**/*"
|
|
2062
2083
|
],
|
|
2063
2084
|
exclude: [
|
|
2064
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2085
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _147 => _147.tsconfigOptions, 'optionalAccess', _148 => _148.exclude]), () => ( [])),
|
|
2065
2086
|
"jest.config.ts",
|
|
2066
2087
|
"src/**/*.spec.ts",
|
|
2067
2088
|
"src/**/*.test.ts"
|
|
@@ -2071,8 +2092,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2071
2092
|
}
|
|
2072
2093
|
async function normalizeOptions(tree, options, config) {
|
|
2073
2094
|
let importPath = options.importPath;
|
|
2074
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2075
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2095
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _149 => _149.namespace])) {
|
|
2096
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _150 => _150.namespace])}/${options.name}`;
|
|
2076
2097
|
}
|
|
2077
2098
|
if (options.publishable) {
|
|
2078
2099
|
if (!importPath) {
|
|
@@ -2237,7 +2258,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2237
2258
|
);
|
|
2238
2259
|
}
|
|
2239
2260
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2240
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2261
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _151 => _151.workspaceRoot]), () => ( _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, ))),
|
|
2241
2262
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2242
2263
|
);
|
|
2243
2264
|
_chunkA6WNSDR7js.writeTrace.call(void 0,
|
|
@@ -29,12 +29,24 @@ import {
|
|
|
29
29
|
// src/generators/init/init.ts
|
|
30
30
|
import { formatFiles as formatFiles8 } from "@nx/devkit";
|
|
31
31
|
|
|
32
|
+
// ../config-tools/src/utilities/toml.ts
|
|
33
|
+
import TOML from "@ltd/j-toml";
|
|
34
|
+
function parseCargoToml(cargoString) {
|
|
35
|
+
if (!cargoString) {
|
|
36
|
+
throw new Error("Cargo.toml is empty");
|
|
37
|
+
}
|
|
38
|
+
return TOML.parse(cargoString, {
|
|
39
|
+
x: { comment: true }
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
// ../workspace-tools/src/utils/cargo.ts
|
|
33
44
|
import { joinPathFragments } from "@nx/devkit";
|
|
34
45
|
import {
|
|
35
46
|
execSync,
|
|
36
47
|
spawn
|
|
37
48
|
} from "node:child_process";
|
|
49
|
+
import { readFileSync } from "node:fs";
|
|
38
50
|
import { relative as relative2 } from "node:path";
|
|
39
51
|
var INVALID_CARGO_ARGS = [
|
|
40
52
|
"allFeatures",
|
|
@@ -68,8 +80,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
68
80
|
args.push(`--${key}`, String(value));
|
|
69
81
|
}
|
|
70
82
|
}
|
|
71
|
-
if (context.projectName) {
|
|
72
|
-
|
|
83
|
+
if (context.projectName && context.projectsConfigurations?.projects && context.projectsConfigurations?.projects[context.projectName] && context.projectsConfigurations?.projects[context.projectName]?.root && context.projectsConfigurations?.projects[context.projectName]?.root.includes("Cargo.toml")) {
|
|
84
|
+
const cargoToml = parseCargoToml(
|
|
85
|
+
readFileSync(
|
|
86
|
+
joinPathFragments(
|
|
87
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
88
|
+
"Cargo.toml"
|
|
89
|
+
),
|
|
90
|
+
"utf-8"
|
|
91
|
+
)
|
|
92
|
+
);
|
|
93
|
+
args.push("-p", cargoToml.package.name);
|
|
73
94
|
}
|
|
74
95
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
75
96
|
args.push("--all-features");
|
|
@@ -259,7 +280,7 @@ var executor_default5 = withRunExecutor(
|
|
|
259
280
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
260
281
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
261
282
|
import { execSync as execSync2 } from "node:child_process";
|
|
262
|
-
import { readFileSync } from "node:fs";
|
|
283
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
263
284
|
import https from "node:https";
|
|
264
285
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
265
286
|
|
|
@@ -366,7 +387,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
366
387
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
367
388
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
368
389
|
import { Glob } from "glob";
|
|
369
|
-
import { existsSync, readFileSync as
|
|
390
|
+
import { existsSync, readFileSync as readFileSync3 } from "node:fs";
|
|
370
391
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
371
392
|
import {
|
|
372
393
|
createProjectGraphAsync,
|
|
@@ -442,7 +463,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
442
463
|
"package.json"
|
|
443
464
|
);
|
|
444
465
|
if (existsSync(depPackageJsonPath)) {
|
|
445
|
-
const depPackageJsonContent =
|
|
466
|
+
const depPackageJsonContent = readFileSync3(
|
|
446
467
|
depPackageJsonPath,
|
|
447
468
|
"utf8"
|
|
448
469
|
);
|
package/dist/generators.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7K3RGYTDjs = require('./chunk-7K3RGYTD.js');
|
|
5
5
|
require('./chunk-A6WNSDR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.initGenerator =
|
|
8
|
+
exports.initGenerator = _chunk7K3RGYTDjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ require('./chunk-BGDEJKQP.js');
|
|
|
5
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7K3RGYTDjs = require('./chunk-7K3RGYTD.js');
|
|
9
9
|
require('./chunk-GUQOEBFW.js');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-A6WNSDR7.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator =
|
|
22
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk7K3RGYTDjs.initGenerator; exports.withTerraformExecutor = _chunkPPWYTBXHjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7K3RGYTDjs = require('../../../chunk-7K3RGYTD.js');
|
|
5
5
|
require('../../../chunk-A6WNSDR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunk7K3RGYTDjs.init_default; exports.initGenerator = _chunk7K3RGYTDjs.initGenerator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/terraform-tools",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.264",
|
|
4
4
|
"description": "Tools for managing Terraform infrastructure within a Nx workspace.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iac",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"typings": "dist/index.d.ts",
|
|
114
114
|
"dependencies": {
|
|
115
115
|
"@nx/devkit": "22.7.5",
|
|
116
|
-
"@storm-software/config": "1.138.
|
|
117
|
-
"@storm-software/config-tools": "1.190.
|
|
118
|
-
"@storm-software/workspace-tools": "1.296.
|
|
116
|
+
"@storm-software/config": "1.138.18",
|
|
117
|
+
"@storm-software/config-tools": "1.190.81",
|
|
118
|
+
"@storm-software/workspace-tools": "1.296.61",
|
|
119
119
|
"shelljs": "^0.8.5"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
130
|
"executors": "./executors.json",
|
|
131
131
|
"generators": "./generators.json",
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "61f91d519ffe77bde1a06627ba2d7dcda4c7ce20"
|
|
133
133
|
}
|