@storm-software/terraform-tools 0.66.263 → 0.66.265
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 +36 -0
- package/README.md +1 -1
- package/dist/{chunk-TRYUETGL.mjs → chunk-LTNNOKZZ.mjs} +31 -21
- package/dist/{chunk-THH4HSU5.js → chunk-TJMO7T74.js} +78 -68
- package/dist/{chunk-O67GNKWY.mjs → chunk-UB6ZNCMG.mjs} +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/terraform-executor.mjs +1 -1
- package/dist/src/executors/apply/executor.mjs +1 -1
- package/dist/src/executors/destroy/executor.mjs +1 -1
- package/dist/src/executors/output/executor.mjs +1 -1
- package/dist/src/executors/plan/executor.mjs +1 -1
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.66.265](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.265) (06/30/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update repository packages' dependencies ([6f81fb5b5](https://github.com/storm-software/storm-ops/commit/6f81fb5b5))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.19**
|
|
14
|
+
- Updated **config-tools** to **v1.190.82**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.62**
|
|
16
|
+
|
|
17
|
+
## [0.66.264](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.264) (06/29/2026)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **workspace-tools:** Resolve issue applying the cargo project name parameter ([f927214be](https://github.com/storm-software/storm-ops/commit/f927214be))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated **config** to **v1.138.18**
|
|
26
|
+
- Updated **config-tools** to **v1.190.81**
|
|
27
|
+
- Updated **workspace-tools** to **v1.296.61**
|
|
28
|
+
|
|
29
|
+
## [0.66.263](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.263) (06/28/2026)
|
|
30
|
+
|
|
31
|
+
### Miscellaneous
|
|
32
|
+
|
|
33
|
+
- **monorepo:** Upgrade workspace packages' dependencies ([fcc009e9d](https://github.com/storm-software/storm-ops/commit/fcc009e9d))
|
|
34
|
+
|
|
35
|
+
### Updated Dependencies
|
|
36
|
+
|
|
37
|
+
- Updated **config** to **v1.138.17**
|
|
38
|
+
- Updated **config-tools** to **v1.190.80**
|
|
39
|
+
- Updated **workspace-tools** to **v1.296.60**
|
|
40
|
+
|
|
5
41
|
## [0.66.262](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.262) (06/28/2026)
|
|
6
42
|
|
|
7
43
|
### 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 -->
|
|
@@ -24,17 +24,29 @@ import {
|
|
|
24
24
|
} from "./chunk-ABYTODGS.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__dirname
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UB6ZNCMG.mjs";
|
|
28
28
|
|
|
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
|
|
|
@@ -292,7 +313,7 @@ import { stripIndents } from "@nx/devkit";
|
|
|
292
313
|
import { relative as relative3 } from "path";
|
|
293
314
|
|
|
294
315
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
295
|
-
import { CopyAssetsHandler } from "@nx/js/
|
|
316
|
+
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
296
317
|
import { glob } from "glob";
|
|
297
318
|
import { readFile, writeFile } from "node:fs/promises";
|
|
298
319
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
@@ -364,9 +385,9 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
364
385
|
};
|
|
365
386
|
|
|
366
387
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
367
|
-
import { calculateProjectBuildableDependencies } from "@nx/js/
|
|
388
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
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
|
);
|
|
@@ -1833,14 +1854,12 @@ import {
|
|
|
1833
1854
|
updateJson,
|
|
1834
1855
|
writeJson
|
|
1835
1856
|
} from "@nx/devkit";
|
|
1836
|
-
import { determineProjectNameAndRootOptions } from "@nx/devkit/
|
|
1857
|
+
import { determineProjectNameAndRootOptions } from "@nx/devkit/internal";
|
|
1837
1858
|
import {
|
|
1838
1859
|
addTsConfigPath,
|
|
1839
1860
|
getRelativePathToRootTsConfig,
|
|
1840
1861
|
tsConfigBaseOptions
|
|
1841
1862
|
} from "@nx/js";
|
|
1842
|
-
import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
1843
|
-
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
1844
1863
|
|
|
1845
1864
|
// ../workspace-tools/src/utils/versions.ts
|
|
1846
1865
|
var typesNodeVersion = "20.9.0";
|
|
@@ -1852,12 +1871,6 @@ var pnpmVersion = "8.10.2";
|
|
|
1852
1871
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
1853
1872
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
1854
1873
|
const tasks = [];
|
|
1855
|
-
tasks.push(
|
|
1856
|
-
await jsInitGenerator(tree, {
|
|
1857
|
-
...normalized,
|
|
1858
|
-
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
1859
|
-
})
|
|
1860
|
-
);
|
|
1861
1874
|
tasks.push(
|
|
1862
1875
|
addDependenciesToPackageJson(
|
|
1863
1876
|
tree,
|
|
@@ -1869,9 +1882,6 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1869
1882
|
}
|
|
1870
1883
|
)
|
|
1871
1884
|
);
|
|
1872
|
-
if (normalized.publishable) {
|
|
1873
|
-
tasks.push(await setupVerdaccio(tree, { ...normalized, skipFormat: true }));
|
|
1874
|
-
}
|
|
1875
1885
|
const projectConfig = {
|
|
1876
1886
|
root: normalized.directory,
|
|
1877
1887
|
projectType: "library",
|
|
@@ -3019,7 +3029,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3019
3029
|
});
|
|
3020
3030
|
|
|
3021
3031
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
3022
|
-
import JsVersionActions from "@nx/js/src/release/version-actions
|
|
3032
|
+
import JsVersionActions from "@nx/js/src/release/version-actions";
|
|
3023
3033
|
|
|
3024
3034
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
3025
3035
|
import {
|
|
@@ -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
|
|
|
@@ -289,7 +310,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
|
|
|
289
310
|
|
|
290
311
|
|
|
291
312
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
292
|
-
var
|
|
313
|
+
var _internal = require('@nx/js/internal');
|
|
293
314
|
var _glob = require('glob');
|
|
294
315
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
295
316
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
@@ -323,7 +344,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
323
344
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkA6WNSDR7js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
324
345
|
config
|
|
325
346
|
);
|
|
326
|
-
const assetHandler = new (0,
|
|
347
|
+
const assetHandler = new (0, _internal.CopyAssetsHandler)({
|
|
327
348
|
projectDir: projectRoot,
|
|
328
349
|
rootDir: config.workspaceRoot,
|
|
329
350
|
outputDir: outputPath,
|
|
@@ -361,7 +382,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
361
382
|
};
|
|
362
383
|
|
|
363
384
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
364
|
-
|
|
385
|
+
|
|
365
386
|
|
|
366
387
|
|
|
367
388
|
|
|
@@ -383,7 +404,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
383
404
|
"The Build process failed because the project graph is not available. Please run the build command again."
|
|
384
405
|
);
|
|
385
406
|
}
|
|
386
|
-
const projectDependencies =
|
|
407
|
+
const projectDependencies = _internal.calculateProjectBuildableDependencies.call(void 0,
|
|
387
408
|
void 0,
|
|
388
409
|
projectGraph,
|
|
389
410
|
workspaceRoot2,
|
|
@@ -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);
|
|
@@ -1830,14 +1851,12 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1830
1851
|
|
|
1831
1852
|
|
|
1832
1853
|
|
|
1833
|
-
var
|
|
1854
|
+
var _internal3 = require('@nx/devkit/internal');
|
|
1834
1855
|
|
|
1835
1856
|
|
|
1836
1857
|
|
|
1837
1858
|
|
|
1838
1859
|
var _js = require('@nx/js');
|
|
1839
|
-
var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
|
|
1840
|
-
var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
|
|
1841
1860
|
|
|
1842
1861
|
// ../workspace-tools/src/utils/versions.ts
|
|
1843
1862
|
var typesNodeVersion = "20.9.0";
|
|
@@ -1849,12 +1868,6 @@ var pnpmVersion = "8.10.2";
|
|
|
1849
1868
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
1850
1869
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
1851
1870
|
const tasks = [];
|
|
1852
|
-
tasks.push(
|
|
1853
|
-
await _init2.default.call(void 0, tree, {
|
|
1854
|
-
...normalized,
|
|
1855
|
-
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
1856
|
-
})
|
|
1857
|
-
);
|
|
1858
1871
|
tasks.push(
|
|
1859
1872
|
_devkit.addDependenciesToPackageJson.call(void 0,
|
|
1860
1873
|
tree,
|
|
@@ -1866,9 +1879,6 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1866
1879
|
}
|
|
1867
1880
|
)
|
|
1868
1881
|
);
|
|
1869
|
-
if (normalized.publishable) {
|
|
1870
|
-
tasks.push(await _generator2.default.call(void 0, tree, { ...normalized, skipFormat: true }));
|
|
1871
|
-
}
|
|
1872
1882
|
const projectConfig = {
|
|
1873
1883
|
root: normalized.directory,
|
|
1874
1884
|
projectType: "library",
|
|
@@ -1923,15 +1933,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1923
1933
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
1924
1934
|
let repository = {
|
|
1925
1935
|
type: "github",
|
|
1926
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
1936
|
+
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
1937
|
};
|
|
1928
1938
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
1929
1939
|
if (tree.exists("package.json")) {
|
|
1930
1940
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
1931
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1941
|
+
if (_optionalChain([packageJson, 'optionalAccess', _133 => _133.repository])) {
|
|
1932
1942
|
repository = packageJson.repository;
|
|
1933
1943
|
}
|
|
1934
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1944
|
+
if (_optionalChain([packageJson, 'optionalAccess', _134 => _134.description])) {
|
|
1935
1945
|
description = packageJson.description;
|
|
1936
1946
|
}
|
|
1937
1947
|
}
|
|
@@ -1986,9 +1996,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1986
1996
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
1987
1997
|
...json,
|
|
1988
1998
|
pnpm: {
|
|
1989
|
-
..._optionalChain([json, 'optionalAccess',
|
|
1999
|
+
..._optionalChain([json, 'optionalAccess', _135 => _135.pnpm]),
|
|
1990
2000
|
overrides: {
|
|
1991
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2001
|
+
..._optionalChain([json, 'optionalAccess', _136 => _136.pnpm, 'optionalAccess', _137 => _137.overrides]),
|
|
1992
2002
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1993
2003
|
}
|
|
1994
2004
|
}
|
|
@@ -2006,10 +2016,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2006
2016
|
]);
|
|
2007
2017
|
if (tree.exists("package.json")) {
|
|
2008
2018
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2009
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2019
|
+
if (_optionalChain([packageJson, 'optionalAccess', _138 => _138.repository])) {
|
|
2010
2020
|
repository = packageJson.repository;
|
|
2011
2021
|
}
|
|
2012
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2022
|
+
if (_optionalChain([packageJson, 'optionalAccess', _139 => _139.description])) {
|
|
2013
2023
|
description = packageJson.description;
|
|
2014
2024
|
}
|
|
2015
2025
|
}
|
|
@@ -2046,22 +2056,22 @@ function getOutputPath(options) {
|
|
|
2046
2056
|
function createProjectTsConfigJson(tree, options) {
|
|
2047
2057
|
const tsconfig = {
|
|
2048
2058
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2049
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2059
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _140 => _140.tsconfigOptions]), () => ( {})),
|
|
2050
2060
|
compilerOptions: {
|
|
2051
2061
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2052
2062
|
outDir: _chunkA6WNSDR7js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2053
2063
|
noEmit: true,
|
|
2054
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2064
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.compilerOptions]), () => ( {}))
|
|
2055
2065
|
},
|
|
2056
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2066
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.tsconfigOptions, 'optionalAccess', _144 => _144.files]), () => ( []))],
|
|
2057
2067
|
include: [
|
|
2058
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2068
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _145 => _145.tsconfigOptions, 'optionalAccess', _146 => _146.include]), () => ( [])),
|
|
2059
2069
|
"src/**/*.ts",
|
|
2060
2070
|
"src/**/*.js",
|
|
2061
2071
|
"bin/**/*"
|
|
2062
2072
|
],
|
|
2063
2073
|
exclude: [
|
|
2064
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2074
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _147 => _147.tsconfigOptions, 'optionalAccess', _148 => _148.exclude]), () => ( [])),
|
|
2065
2075
|
"jest.config.ts",
|
|
2066
2076
|
"src/**/*.spec.ts",
|
|
2067
2077
|
"src/**/*.test.ts"
|
|
@@ -2071,8 +2081,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2071
2081
|
}
|
|
2072
2082
|
async function normalizeOptions(tree, options, config) {
|
|
2073
2083
|
let importPath = options.importPath;
|
|
2074
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2075
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2084
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _149 => _149.namespace])) {
|
|
2085
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _150 => _150.namespace])}/${options.name}`;
|
|
2076
2086
|
}
|
|
2077
2087
|
if (options.publishable) {
|
|
2078
2088
|
if (!importPath) {
|
|
@@ -2092,7 +2102,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2092
2102
|
names: projectNames,
|
|
2093
2103
|
projectRoot,
|
|
2094
2104
|
importPath: normalizedImportPath
|
|
2095
|
-
} = await
|
|
2105
|
+
} = await _internal3.determineProjectNameAndRootOptions.call(void 0, tree, {
|
|
2096
2106
|
name: options.name,
|
|
2097
2107
|
projectType: "library",
|
|
2098
2108
|
directory: options.directory,
|
|
@@ -2237,7 +2247,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2237
2247
|
);
|
|
2238
2248
|
}
|
|
2239
2249
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2240
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2250
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _151 => _151.workspaceRoot]), () => ( _chunkA6WNSDR7js.findWorkspaceRoot.call(void 0, ))),
|
|
2241
2251
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2242
2252
|
);
|
|
2243
2253
|
_chunkA6WNSDR7js.writeTrace.call(void 0,
|
|
@@ -3016,7 +3026,7 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
|
|
|
3016
3026
|
});
|
|
3017
3027
|
|
|
3018
3028
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
3019
|
-
var
|
|
3029
|
+
var _versionactions = require('@nx/js/src/release/version-actions'); var _versionactions2 = _interopRequireDefault(_versionactions);
|
|
3020
3030
|
|
|
3021
3031
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
3022
3032
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bd21b723d209f27c53f0884dec23a71c/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
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 _chunkTJMO7T74js = require('./chunk-TJMO7T74.js');
|
|
5
5
|
require('./chunk-A6WNSDR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.initGenerator =
|
|
8
|
+
exports.initGenerator = _chunkTJMO7T74js.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 _chunkTJMO7T74js = require('./chunk-TJMO7T74.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 = _chunkTJMO7T74js.initGenerator; exports.withTerraformExecutor = _chunkPPWYTBXHjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "./chunk-MH7PQUPL.mjs";
|
|
|
5
5
|
import "./chunk-23KFTIT2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LTNNOKZZ.mjs";
|
|
9
9
|
import "./chunk-CA7S5MOH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
base_terraform_executor_untyped_default
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
withTerraformExecutor
|
|
16
16
|
} from "./chunk-NEH3N2A3.mjs";
|
|
17
17
|
import "./chunk-ABYTODGS.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UB6ZNCMG.mjs";
|
|
19
19
|
export {
|
|
20
20
|
base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
|
|
21
21
|
initGenerator,
|
package/dist/src/base/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
withTerraformExecutor
|
|
7
7
|
} from "../../chunk-NEH3N2A3.mjs";
|
|
8
8
|
import "../../chunk-ABYTODGS.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-UB6ZNCMG.mjs";
|
|
10
10
|
export {
|
|
11
11
|
base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
|
|
12
12
|
withTerraformExecutor
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTJMO7T74js = require('../../../chunk-TJMO7T74.js');
|
|
5
5
|
require('../../../chunk-A6WNSDR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkTJMO7T74js.init_default; exports.initGenerator = _chunkTJMO7T74js.initGenerator;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
initGenerator,
|
|
3
3
|
init_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-LTNNOKZZ.mjs";
|
|
5
5
|
import "../../../chunk-ABYTODGS.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-UB6ZNCMG.mjs";
|
|
7
7
|
export {
|
|
8
8
|
init_default as default,
|
|
9
9
|
initGenerator
|
package/dist/tsup.config.mjs
CHANGED
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.265",
|
|
4
4
|
"description": "Tools for managing Terraform infrastructure within a Nx workspace.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iac",
|
|
@@ -112,15 +112,15 @@
|
|
|
112
112
|
"module": "dist/index.mjs",
|
|
113
113
|
"typings": "dist/index.d.ts",
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@nx/devkit": "
|
|
116
|
-
"@storm-software/config": "1.138.
|
|
117
|
-
"@storm-software/config-tools": "1.190.
|
|
118
|
-
"@storm-software/workspace-tools": "1.296.
|
|
115
|
+
"@nx/devkit": "23.0.1",
|
|
116
|
+
"@storm-software/config": "^1.138.19",
|
|
117
|
+
"@storm-software/config-tools": "^1.190.82",
|
|
118
|
+
"@storm-software/workspace-tools": "^1.296.62",
|
|
119
119
|
"shelljs": "^0.8.5"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@types/node": "^25.9.4",
|
|
123
|
-
"nx": "
|
|
123
|
+
"nx": "23.0.1",
|
|
124
124
|
"tsup": "8.4.0",
|
|
125
125
|
"untyped": "^2.0.0"
|
|
126
126
|
},
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
130
|
"executors": "./executors.json",
|
|
131
131
|
"generators": "./generators.json",
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "3fe24e50009c66cd4ff8b417a44f904740d0283a"
|
|
133
133
|
}
|