@storm-software/terraform-tools 0.66.26 → 0.66.28
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 +28 -0
- package/README.md +1 -2
- package/dist/{chunk-3R4ZSDE2.js → chunk-RNGLEU7R.js} +30 -30
- package/dist/{chunk-3VSDG2ML.mjs → chunk-ZH7TPK7T.mjs} +35 -35
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- 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,34 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.66.27](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.27) (11/12/2025)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([ce28ea33d](https://github.com/storm-software/storm-ops/commit/ce28ea33d))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **workspace-tools** to **v1.292.27**
|
|
15
|
+
- Updated **config-tools** to **v1.188.27**
|
|
16
|
+
- Updated **config** to **v1.134.27**
|
|
17
|
+
|
|
18
|
+
## [0.66.26](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.26) (11/12/2025)
|
|
19
|
+
|
|
20
|
+
### Miscellaneous
|
|
21
|
+
|
|
22
|
+
- **monorepo:** Update workspace `Cargo.lock` file
|
|
23
|
+
([cf76a171f](https://github.com/storm-software/storm-ops/commit/cf76a171f))
|
|
24
|
+
- **monorepo:** Regenerate README markdown files
|
|
25
|
+
([a27c96498](https://github.com/storm-software/storm-ops/commit/a27c96498))
|
|
26
|
+
|
|
27
|
+
### Updated Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated **workspace-tools** to **v1.292.26**
|
|
30
|
+
- Updated **config-tools** to **v1.188.26**
|
|
31
|
+
- Updated **config** to **v1.134.26**
|
|
32
|
+
|
|
5
33
|
## [0.66.25](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.25) (11/12/2025)
|
|
6
34
|
|
|
7
35
|
### 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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Terraform Tools](#storm-terraform-tools)
|
|
@@ -76,10 +76,10 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
76
76
|
}
|
|
77
77
|
return args;
|
|
78
78
|
};
|
|
79
|
-
async function cargoCommand(...args) {
|
|
79
|
+
async function cargoCommand(workspaceRoot2, ...args) {
|
|
80
80
|
console.log(`> cargo ${args.join(" ")}`);
|
|
81
81
|
args.push("--color", "always");
|
|
82
|
-
return await Promise.resolve(runProcess("cargo", ...args));
|
|
82
|
+
return await Promise.resolve(runProcess(workspaceRoot2, "cargo", ...args));
|
|
83
83
|
}
|
|
84
84
|
function cargoCommandSync(args = "", options) {
|
|
85
85
|
const normalizedOptions = {
|
|
@@ -117,9 +117,9 @@ function cargoMetadata() {
|
|
|
117
117
|
}
|
|
118
118
|
return JSON.parse(output2.output);
|
|
119
119
|
}
|
|
120
|
-
function runProcess(processCmd, ...args) {
|
|
120
|
+
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
121
121
|
const metadata = cargoMetadata();
|
|
122
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _4 => _4.target_directory]), () => ( _devkit.joinPathFragments.call(void 0,
|
|
122
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _4 => _4.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
123
123
|
return new Promise((resolve2) => {
|
|
124
124
|
if (process.env.VERCEL) {
|
|
125
125
|
return resolve2({ success: true });
|
|
@@ -142,7 +142,7 @@ function runProcess(processCmd, ...args) {
|
|
|
142
142
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
143
143
|
async function cargoBuildExecutor(options, context) {
|
|
144
144
|
const command = buildCargoCommand("build", options, context);
|
|
145
|
-
return await cargoCommand(...command);
|
|
145
|
+
return await cargoCommand(context.root, ...command);
|
|
146
146
|
}
|
|
147
147
|
var executor_default = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
148
148
|
"Cargo - Build",
|
|
@@ -162,7 +162,7 @@ var executor_default = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
162
162
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
163
163
|
async function cargoCheckExecutor(options, context) {
|
|
164
164
|
const command = buildCargoCommand("check", options, context);
|
|
165
|
-
return await cargoCommand(...command);
|
|
165
|
+
return await cargoCommand(context.root, ...command);
|
|
166
166
|
}
|
|
167
167
|
var executor_default2 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
168
168
|
"Cargo - Check",
|
|
@@ -181,7 +181,7 @@ var executor_default2 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
181
181
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
182
182
|
async function cargoClippyExecutor(options, context) {
|
|
183
183
|
const command = buildCargoCommand("clippy", options, context);
|
|
184
|
-
return await cargoCommand(...command);
|
|
184
|
+
return await cargoCommand(context.root, ...command);
|
|
185
185
|
}
|
|
186
186
|
var executor_default3 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
187
187
|
"Cargo - Clippy",
|
|
@@ -204,7 +204,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
204
204
|
opts["no-deps"] = opts.noDeps;
|
|
205
205
|
delete opts.noDeps;
|
|
206
206
|
const command = buildCargoCommand("doc", options, context);
|
|
207
|
-
return await cargoCommand(...command);
|
|
207
|
+
return await cargoCommand(context.root, ...command);
|
|
208
208
|
}
|
|
209
209
|
var executor_default4 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
210
210
|
"Cargo - Doc",
|
|
@@ -230,7 +230,7 @@ var executor_default4 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
|
230
230
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
231
231
|
async function cargoFormatExecutor(options, context) {
|
|
232
232
|
const command = buildCargoCommand("fmt", options, context);
|
|
233
|
-
return await cargoCommand(...command);
|
|
233
|
+
return await cargoCommand(context.root, ...command);
|
|
234
234
|
}
|
|
235
235
|
var executor_default5 = _chunkYDAVIV5Rjs.withRunExecutor.call(void 0,
|
|
236
236
|
"Cargo - Format",
|
|
@@ -360,7 +360,7 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
363
|
-
var addPackageDependencies = async (
|
|
363
|
+
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
364
364
|
let projectGraph;
|
|
365
365
|
try {
|
|
366
366
|
projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
@@ -376,7 +376,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
376
376
|
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0,
|
|
377
377
|
void 0,
|
|
378
378
|
projectGraph,
|
|
379
|
-
|
|
379
|
+
workspaceRoot2,
|
|
380
380
|
projectName,
|
|
381
381
|
process.env.NX_TASK_TARGET_TARGET || "build",
|
|
382
382
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
@@ -384,12 +384,12 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
384
384
|
);
|
|
385
385
|
const localPackages = [];
|
|
386
386
|
for (const project of projectDependencies.dependencies.filter(
|
|
387
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _5 => _5.node, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.root]) !== projectRoot && _optionalChain([dep, 'access', _8 => _8.node, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.root]) !==
|
|
387
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _5 => _5.node, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.root]) !== projectRoot && _optionalChain([dep, 'access', _8 => _8.node, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.root]) !== workspaceRoot2
|
|
388
388
|
)) {
|
|
389
389
|
const projectNode = project.node;
|
|
390
390
|
if (projectNode.data.root) {
|
|
391
391
|
const projectPackageJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
392
|
-
|
|
392
|
+
workspaceRoot2,
|
|
393
393
|
projectNode.data.root,
|
|
394
394
|
"package.json"
|
|
395
395
|
);
|
|
@@ -424,7 +424,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
424
424
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[projectName2], 'access', _15 => _15.implicitDependencies, 'optionalAccess', _16 => _16.reduce, 'call', _17 => _17((ret, dep) => {
|
|
425
425
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
426
426
|
const depPackageJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
427
|
-
|
|
427
|
+
workspaceRoot2,
|
|
428
428
|
projectConfigurations.projects[dep].root,
|
|
429
429
|
"package.json"
|
|
430
430
|
);
|
|
@@ -459,9 +459,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
459
459
|
return packageJson;
|
|
460
460
|
};
|
|
461
461
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
462
|
-
const
|
|
462
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkYDAVIV5Rjs.findWorkspaceRoot.call(void 0, );
|
|
463
463
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
464
|
-
_chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
464
|
+
_chunkYDAVIV5Rjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
|
|
465
465
|
"utf8"
|
|
466
466
|
);
|
|
467
467
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -632,12 +632,12 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
632
632
|
// ../esbuild/src/context.ts
|
|
633
633
|
async function resolveContext(userOptions) {
|
|
634
634
|
const projectRoot = userOptions.projectRoot;
|
|
635
|
-
const
|
|
636
|
-
if (!
|
|
635
|
+
const workspaceRoot2 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
636
|
+
if (!workspaceRoot2) {
|
|
637
637
|
throw new Error("Cannot find Nx workspace root");
|
|
638
638
|
}
|
|
639
639
|
const workspaceConfig = await _chunkYDAVIV5Rjs.getWorkspaceConfig.call(void 0, true, {
|
|
640
|
-
workspaceRoot:
|
|
640
|
+
workspaceRoot: workspaceRoot2.dir
|
|
641
641
|
});
|
|
642
642
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
643
643
|
const stopwatch = _chunkYDAVIV5Rjs.getStopwatch.call(void 0, "Build options resolution");
|
|
@@ -645,7 +645,7 @@ async function resolveContext(userOptions) {
|
|
|
645
645
|
exitOnError: true
|
|
646
646
|
});
|
|
647
647
|
const projectJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
648
|
-
|
|
648
|
+
workspaceRoot2.dir,
|
|
649
649
|
projectRoot,
|
|
650
650
|
"project.json"
|
|
651
651
|
);
|
|
@@ -664,7 +664,7 @@ async function resolveContext(userOptions) {
|
|
|
664
664
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
665
665
|
options.name ??= projectName;
|
|
666
666
|
const packageJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
667
|
-
|
|
667
|
+
workspaceRoot2.dir,
|
|
668
668
|
options.projectRoot,
|
|
669
669
|
"package.json"
|
|
670
670
|
);
|
|
@@ -675,7 +675,7 @@ async function resolveContext(userOptions) {
|
|
|
675
675
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
676
676
|
const resolvedOptions = {
|
|
677
677
|
...options,
|
|
678
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
678
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkYDAVIV5Rjs.joinPaths.call(void 0, workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
679
679
|
metafile: userOptions.mode === "development",
|
|
680
680
|
clean: false,
|
|
681
681
|
env,
|
|
@@ -1175,12 +1175,12 @@ function toTSDownFormat(format4) {
|
|
|
1175
1175
|
// ../tsdown/src/build.ts
|
|
1176
1176
|
var resolveOptions = async (userOptions) => {
|
|
1177
1177
|
const options = getDefaultOptions(userOptions);
|
|
1178
|
-
const
|
|
1179
|
-
if (!
|
|
1178
|
+
const workspaceRoot2 = _chunkYDAVIV5Rjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1179
|
+
if (!workspaceRoot2) {
|
|
1180
1180
|
throw new Error("Cannot find Nx workspace root");
|
|
1181
1181
|
}
|
|
1182
1182
|
const workspaceConfig = await _chunkYDAVIV5Rjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1183
|
-
workspaceRoot:
|
|
1183
|
+
workspaceRoot: workspaceRoot2
|
|
1184
1184
|
});
|
|
1185
1185
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1186
1186
|
const stopwatch = _chunkYDAVIV5Rjs.getStopwatch.call(void 0, "Build options resolution");
|
|
@@ -1188,7 +1188,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1188
1188
|
exitOnError: true
|
|
1189
1189
|
});
|
|
1190
1190
|
const projectJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
1191
|
-
|
|
1191
|
+
workspaceRoot2,
|
|
1192
1192
|
options.projectRoot,
|
|
1193
1193
|
"project.json"
|
|
1194
1194
|
);
|
|
@@ -1205,7 +1205,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1205
1205
|
);
|
|
1206
1206
|
}
|
|
1207
1207
|
const packageJsonPath = _chunkYDAVIV5Rjs.joinPaths.call(void 0,
|
|
1208
|
-
|
|
1208
|
+
workspaceRoot2,
|
|
1209
1209
|
options.projectRoot,
|
|
1210
1210
|
"package.json"
|
|
1211
1211
|
);
|
|
@@ -1606,14 +1606,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1606
1606
|
_chunkYDAVIV5Rjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1607
1607
|
|
|
1608
1608
|
`, config);
|
|
1609
|
-
const
|
|
1609
|
+
const workspaceRoot2 = _chunkYDAVIV5Rjs.findWorkspaceRoot.call(void 0, );
|
|
1610
1610
|
if (!generatorOptions.skipReadingConfig) {
|
|
1611
1611
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0,
|
|
1612
1612
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1613
|
-
- workspaceRoot: ${
|
|
1613
|
+
- workspaceRoot: ${workspaceRoot2}`,
|
|
1614
1614
|
config
|
|
1615
1615
|
);
|
|
1616
|
-
config = await _chunkYDAVIV5Rjs.getConfig.call(void 0,
|
|
1616
|
+
config = await _chunkYDAVIV5Rjs.getConfig.call(void 0, workspaceRoot2);
|
|
1617
1617
|
}
|
|
1618
1618
|
if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.applyDefaultOptions])) {
|
|
1619
1619
|
_chunkYDAVIV5Rjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { formatFiles as formatFiles8 } from "@nx/devkit";
|
|
27
27
|
|
|
28
28
|
// ../workspace-tools/src/utils/cargo.ts
|
|
29
|
-
import { joinPathFragments
|
|
29
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
30
30
|
import {
|
|
31
31
|
execSync,
|
|
32
32
|
spawn
|
|
@@ -79,10 +79,10 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
79
79
|
}
|
|
80
80
|
return args;
|
|
81
81
|
};
|
|
82
|
-
async function cargoCommand(...args) {
|
|
82
|
+
async function cargoCommand(workspaceRoot2, ...args) {
|
|
83
83
|
console.log(`> cargo ${args.join(" ")}`);
|
|
84
84
|
args.push("--color", "always");
|
|
85
|
-
return await Promise.resolve(runProcess("cargo", ...args));
|
|
85
|
+
return await Promise.resolve(runProcess(workspaceRoot2, "cargo", ...args));
|
|
86
86
|
}
|
|
87
87
|
function cargoCommandSync(args = "", options) {
|
|
88
88
|
const normalizedOptions = {
|
|
@@ -120,9 +120,9 @@ function cargoMetadata() {
|
|
|
120
120
|
}
|
|
121
121
|
return JSON.parse(output2.output);
|
|
122
122
|
}
|
|
123
|
-
function runProcess(processCmd, ...args) {
|
|
123
|
+
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
124
124
|
const metadata = cargoMetadata();
|
|
125
|
-
const targetDir = metadata?.target_directory ?? joinPathFragments(
|
|
125
|
+
const targetDir = metadata?.target_directory ?? joinPathFragments(workspaceRoot2, "dist");
|
|
126
126
|
return new Promise((resolve2) => {
|
|
127
127
|
if (process.env.VERCEL) {
|
|
128
128
|
return resolve2({ success: true });
|
|
@@ -145,7 +145,7 @@ function runProcess(processCmd, ...args) {
|
|
|
145
145
|
// ../workspace-tools/src/executors/cargo-build/executor.ts
|
|
146
146
|
async function cargoBuildExecutor(options, context) {
|
|
147
147
|
const command = buildCargoCommand("build", options, context);
|
|
148
|
-
return await cargoCommand(...command);
|
|
148
|
+
return await cargoCommand(context.root, ...command);
|
|
149
149
|
}
|
|
150
150
|
var executor_default = withRunExecutor(
|
|
151
151
|
"Cargo - Build",
|
|
@@ -165,7 +165,7 @@ var executor_default = withRunExecutor(
|
|
|
165
165
|
// ../workspace-tools/src/executors/cargo-check/executor.ts
|
|
166
166
|
async function cargoCheckExecutor(options, context) {
|
|
167
167
|
const command = buildCargoCommand("check", options, context);
|
|
168
|
-
return await cargoCommand(...command);
|
|
168
|
+
return await cargoCommand(context.root, ...command);
|
|
169
169
|
}
|
|
170
170
|
var executor_default2 = withRunExecutor(
|
|
171
171
|
"Cargo - Check",
|
|
@@ -184,7 +184,7 @@ var executor_default2 = withRunExecutor(
|
|
|
184
184
|
// ../workspace-tools/src/executors/cargo-clippy/executor.ts
|
|
185
185
|
async function cargoClippyExecutor(options, context) {
|
|
186
186
|
const command = buildCargoCommand("clippy", options, context);
|
|
187
|
-
return await cargoCommand(...command);
|
|
187
|
+
return await cargoCommand(context.root, ...command);
|
|
188
188
|
}
|
|
189
189
|
var executor_default3 = withRunExecutor(
|
|
190
190
|
"Cargo - Clippy",
|
|
@@ -207,7 +207,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
207
207
|
opts["no-deps"] = opts.noDeps;
|
|
208
208
|
delete opts.noDeps;
|
|
209
209
|
const command = buildCargoCommand("doc", options, context);
|
|
210
|
-
return await cargoCommand(...command);
|
|
210
|
+
return await cargoCommand(context.root, ...command);
|
|
211
211
|
}
|
|
212
212
|
var executor_default4 = withRunExecutor(
|
|
213
213
|
"Cargo - Doc",
|
|
@@ -233,7 +233,7 @@ var executor_default4 = withRunExecutor(
|
|
|
233
233
|
// ../workspace-tools/src/executors/cargo-format/executor.ts
|
|
234
234
|
async function cargoFormatExecutor(options, context) {
|
|
235
235
|
const command = buildCargoCommand("fmt", options, context);
|
|
236
|
-
return await cargoCommand(...command);
|
|
236
|
+
return await cargoCommand(context.root, ...command);
|
|
237
237
|
}
|
|
238
238
|
var executor_default5 = withRunExecutor(
|
|
239
239
|
"Cargo - Format",
|
|
@@ -363,7 +363,7 @@ import {
|
|
|
363
363
|
readCachedProjectGraph,
|
|
364
364
|
readProjectsConfigurationFromProjectGraph
|
|
365
365
|
} from "nx/src/project-graph/project-graph";
|
|
366
|
-
var addPackageDependencies = async (
|
|
366
|
+
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
367
367
|
let projectGraph;
|
|
368
368
|
try {
|
|
369
369
|
projectGraph = readCachedProjectGraph();
|
|
@@ -379,7 +379,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
379
379
|
const projectDependencies = calculateProjectBuildableDependencies(
|
|
380
380
|
void 0,
|
|
381
381
|
projectGraph,
|
|
382
|
-
|
|
382
|
+
workspaceRoot2,
|
|
383
383
|
projectName,
|
|
384
384
|
process.env.NX_TASK_TARGET_TARGET || "build",
|
|
385
385
|
process.env.NX_TASK_TARGET_CONFIGURATION || "production",
|
|
@@ -387,12 +387,12 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
387
387
|
);
|
|
388
388
|
const localPackages = [];
|
|
389
389
|
for (const project of projectDependencies.dependencies.filter(
|
|
390
|
-
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !==
|
|
390
|
+
(dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot2
|
|
391
391
|
)) {
|
|
392
392
|
const projectNode = project.node;
|
|
393
393
|
if (projectNode.data.root) {
|
|
394
394
|
const projectPackageJsonPath = joinPaths(
|
|
395
|
-
|
|
395
|
+
workspaceRoot2,
|
|
396
396
|
projectNode.data.root,
|
|
397
397
|
"package.json"
|
|
398
398
|
);
|
|
@@ -427,7 +427,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
427
427
|
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
428
428
|
if (projectConfigurations.projects?.[dep]) {
|
|
429
429
|
const depPackageJsonPath = joinPaths(
|
|
430
|
-
|
|
430
|
+
workspaceRoot2,
|
|
431
431
|
projectConfigurations.projects[dep].root,
|
|
432
432
|
"package.json"
|
|
433
433
|
);
|
|
@@ -462,9 +462,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
462
462
|
return packageJson;
|
|
463
463
|
};
|
|
464
464
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
465
|
-
const
|
|
465
|
+
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
466
466
|
const workspacePackageJsonContent = await readFile2(
|
|
467
|
-
joinPaths(
|
|
467
|
+
joinPaths(workspaceRoot2, "package.json"),
|
|
468
468
|
"utf8"
|
|
469
469
|
);
|
|
470
470
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -635,12 +635,12 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
635
635
|
// ../esbuild/src/context.ts
|
|
636
636
|
async function resolveContext(userOptions) {
|
|
637
637
|
const projectRoot = userOptions.projectRoot;
|
|
638
|
-
const
|
|
639
|
-
if (!
|
|
638
|
+
const workspaceRoot2 = findWorkspaceRoot2(projectRoot);
|
|
639
|
+
if (!workspaceRoot2) {
|
|
640
640
|
throw new Error("Cannot find Nx workspace root");
|
|
641
641
|
}
|
|
642
642
|
const workspaceConfig = await getWorkspaceConfig(true, {
|
|
643
|
-
workspaceRoot:
|
|
643
|
+
workspaceRoot: workspaceRoot2.dir
|
|
644
644
|
});
|
|
645
645
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
646
646
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -648,7 +648,7 @@ async function resolveContext(userOptions) {
|
|
|
648
648
|
exitOnError: true
|
|
649
649
|
});
|
|
650
650
|
const projectJsonPath = joinPaths(
|
|
651
|
-
|
|
651
|
+
workspaceRoot2.dir,
|
|
652
652
|
projectRoot,
|
|
653
653
|
"project.json"
|
|
654
654
|
);
|
|
@@ -667,7 +667,7 @@ async function resolveContext(userOptions) {
|
|
|
667
667
|
const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
668
668
|
options.name ??= projectName;
|
|
669
669
|
const packageJsonPath = joinPaths(
|
|
670
|
-
|
|
670
|
+
workspaceRoot2.dir,
|
|
671
671
|
options.projectRoot,
|
|
672
672
|
"package.json"
|
|
673
673
|
);
|
|
@@ -678,7 +678,7 @@ async function resolveContext(userOptions) {
|
|
|
678
678
|
const define = defu(options.define ?? {}, env ?? {});
|
|
679
679
|
const resolvedOptions = {
|
|
680
680
|
...options,
|
|
681
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(
|
|
681
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot2.dir, projectRoot, "tsconfig.json"),
|
|
682
682
|
metafile: userOptions.mode === "development",
|
|
683
683
|
clean: false,
|
|
684
684
|
env,
|
|
@@ -1178,12 +1178,12 @@ function toTSDownFormat(format4) {
|
|
|
1178
1178
|
// ../tsdown/src/build.ts
|
|
1179
1179
|
var resolveOptions = async (userOptions) => {
|
|
1180
1180
|
const options = getDefaultOptions(userOptions);
|
|
1181
|
-
const
|
|
1182
|
-
if (!
|
|
1181
|
+
const workspaceRoot2 = findWorkspaceRoot(options.projectRoot);
|
|
1182
|
+
if (!workspaceRoot2) {
|
|
1183
1183
|
throw new Error("Cannot find Nx workspace root");
|
|
1184
1184
|
}
|
|
1185
1185
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
1186
|
-
workspaceRoot:
|
|
1186
|
+
workspaceRoot: workspaceRoot2
|
|
1187
1187
|
});
|
|
1188
1188
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
1189
1189
|
const stopwatch = getStopwatch("Build options resolution");
|
|
@@ -1191,7 +1191,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1191
1191
|
exitOnError: true
|
|
1192
1192
|
});
|
|
1193
1193
|
const projectJsonPath = joinPaths(
|
|
1194
|
-
|
|
1194
|
+
workspaceRoot2,
|
|
1195
1195
|
options.projectRoot,
|
|
1196
1196
|
"project.json"
|
|
1197
1197
|
);
|
|
@@ -1208,7 +1208,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1208
1208
|
);
|
|
1209
1209
|
}
|
|
1210
1210
|
const packageJsonPath = joinPaths(
|
|
1211
|
-
|
|
1211
|
+
workspaceRoot2,
|
|
1212
1212
|
options.projectRoot,
|
|
1213
1213
|
"package.json"
|
|
1214
1214
|
);
|
|
@@ -1609,14 +1609,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1609
1609
|
writeInfo(`\u26A1 Running the ${name} generator...
|
|
1610
1610
|
|
|
1611
1611
|
`, config);
|
|
1612
|
-
const
|
|
1612
|
+
const workspaceRoot2 = findWorkspaceRoot();
|
|
1613
1613
|
if (!generatorOptions.skipReadingConfig) {
|
|
1614
1614
|
writeDebug(
|
|
1615
1615
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1616
|
-
- workspaceRoot: ${
|
|
1616
|
+
- workspaceRoot: ${workspaceRoot2}`,
|
|
1617
1617
|
config
|
|
1618
1618
|
);
|
|
1619
|
-
config = await getConfig(
|
|
1619
|
+
config = await getConfig(workspaceRoot2);
|
|
1620
1620
|
}
|
|
1621
1621
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
1622
1622
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
@@ -2901,7 +2901,7 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
|
|
|
2901
2901
|
import {
|
|
2902
2902
|
output,
|
|
2903
2903
|
readJsonFile as readJsonFile2,
|
|
2904
|
-
workspaceRoot
|
|
2904
|
+
workspaceRoot
|
|
2905
2905
|
} from "@nx/devkit";
|
|
2906
2906
|
import { existsSync as existsSync9 } from "node:fs";
|
|
2907
2907
|
import { join as join2 } from "node:path";
|
|
@@ -2920,9 +2920,9 @@ import {
|
|
|
2920
2920
|
var YARN_LOCK_FILE = "yarn.lock";
|
|
2921
2921
|
var NPM_LOCK_FILE = "package-lock.json";
|
|
2922
2922
|
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
2923
|
-
var YARN_LOCK_PATH = join2(
|
|
2924
|
-
var NPM_LOCK_PATH = join2(
|
|
2925
|
-
var PNPM_LOCK_PATH = join2(
|
|
2923
|
+
var YARN_LOCK_PATH = join2(workspaceRoot, YARN_LOCK_FILE);
|
|
2924
|
+
var NPM_LOCK_PATH = join2(workspaceRoot, NPM_LOCK_FILE);
|
|
2925
|
+
var PNPM_LOCK_PATH = join2(workspaceRoot, PNPM_LOCK_FILE);
|
|
2926
2926
|
|
|
2927
2927
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
2928
2928
|
import {
|
package/dist/executors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";require('./chunk-E7SPQEPH.js');
|
|
2
2
|
require('./chunk-Y4UTAL3Q.js');
|
|
3
|
-
require('./chunk-CLOQAFSP.js');
|
|
4
3
|
require('./chunk-4KZE37RJ.js');
|
|
4
|
+
require('./chunk-CLOQAFSP.js');
|
|
5
5
|
require('./chunk-UTU6JZAG.js');
|
|
6
6
|
require('./chunk-OJPLIJFJ.js');
|
|
7
7
|
require('./chunk-YDAVIV5R.js');
|
package/dist/executors.mjs
CHANGED
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 _chunkRNGLEU7Rjs = require('./chunk-RNGLEU7R.js');
|
|
5
5
|
require('./chunk-YDAVIV5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.initGenerator =
|
|
8
|
+
exports.initGenerator = _chunkRNGLEU7Rjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-E7SPQEPH.js');
|
|
2
2
|
require('./chunk-Y4UTAL3Q.js');
|
|
3
|
-
require('./chunk-CLOQAFSP.js');
|
|
4
3
|
require('./chunk-4KZE37RJ.js');
|
|
4
|
+
require('./chunk-CLOQAFSP.js');
|
|
5
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRNGLEU7Rjs = require('./chunk-RNGLEU7R.js');
|
|
9
9
|
require('./chunk-GUQOEBFW.js');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-YDAVIV5R.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 = _chunkRNGLEU7Rjs.initGenerator; exports.withTerraformExecutor = _chunkOJPLIJFJjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./chunk-HYHKZPRR.mjs";
|
|
2
2
|
import "./chunk-RJHUDWTG.mjs";
|
|
3
|
-
import "./chunk-MLCA6E37.mjs";
|
|
4
3
|
import "./chunk-5WM6Y5TA.mjs";
|
|
4
|
+
import "./chunk-MLCA6E37.mjs";
|
|
5
5
|
import "./chunk-23KFTIT2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZH7TPK7T.mjs";
|
|
9
9
|
import "./chunk-CA7S5MOH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
base_terraform_executor_untyped_default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRNGLEU7Rjs = require('../../../chunk-RNGLEU7R.js');
|
|
5
5
|
require('../../../chunk-YDAVIV5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkRNGLEU7Rjs.init_default; exports.initGenerator = _chunkRNGLEU7Rjs.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.28",
|
|
4
4
|
"description": "Tools for managing Terraform infrastructure within a Nx workspace.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
],
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@nx/devkit": "^22.0.3",
|
|
117
|
-
"@storm-software/config": "1.134.
|
|
118
|
-
"@storm-software/config-tools": "1.188.
|
|
119
|
-
"@storm-software/workspace-tools": "1.292.
|
|
117
|
+
"@storm-software/config": "1.134.27",
|
|
118
|
+
"@storm-software/config-tools": "1.188.27",
|
|
119
|
+
"@storm-software/workspace-tools": "1.292.27",
|
|
120
120
|
"tsup": "8.4.0",
|
|
121
121
|
"untyped": "1.5.2"
|
|
122
122
|
},
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"publishConfig": { "access": "public" },
|
|
136
136
|
"executors": "./executors.json",
|
|
137
137
|
"generators": "./generators.json",
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "fb8e2634c4a094f22dce9c0bb87a38be0e569cc0"
|
|
139
139
|
}
|