@storm-software/workspace-tools 1.292.24 → 1.292.26

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-IPWUJVZZ.mjs → chunk-6TYMSSXV.mjs} +1 -1
  4. package/dist/{chunk-JHJLQ2O7.mjs → chunk-CDBRCMR4.mjs} +1 -1
  5. package/dist/{chunk-D2ENLOCH.mjs → chunk-IDYJQV74.mjs} +58 -33
  6. package/dist/{chunk-WH72XZPS.mjs → chunk-K5XMGL6Y.mjs} +1 -1
  7. package/dist/{chunk-QUHBEE5D.mjs → chunk-TMUZX6IO.mjs} +1 -1
  8. package/dist/{chunk-O2FPRXPD.js → chunk-YYBWK3LE.js} +65 -40
  9. package/dist/{chunk-KCVIHYZQ.mjs → chunk-ZM7BQH6Q.mjs} +1 -1
  10. package/dist/executors.js +2 -2
  11. package/dist/executors.mjs +4 -4
  12. package/dist/generators.js +6 -6
  13. package/dist/generators.mjs +10 -10
  14. package/dist/index.js +8 -8
  15. package/dist/index.mjs +13 -13
  16. package/dist/src/base/base-executor.mjs +1 -1
  17. package/dist/src/base/base-executor.untyped.mjs +1 -1
  18. package/dist/src/base/base-generator.mjs +1 -1
  19. package/dist/src/base/base-generator.untyped.mjs +1 -1
  20. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  21. package/dist/src/base/index.mjs +1 -1
  22. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  23. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  24. package/dist/src/executors/cargo-build/executor.mjs +1 -1
  25. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  26. package/dist/src/executors/cargo-check/executor.mjs +1 -1
  27. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  28. package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
  29. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  30. package/dist/src/executors/cargo-doc/executor.mjs +1 -1
  31. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  32. package/dist/src/executors/cargo-format/executor.mjs +1 -1
  33. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  34. package/dist/src/executors/cargo-publish/executor.mjs +1 -1
  35. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  36. package/dist/src/executors/clean-package/executor.mjs +1 -1
  37. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  38. package/dist/src/executors/esbuild/executor.mjs +1 -1
  39. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  40. package/dist/src/executors/npm-publish/executor.mjs +1 -1
  41. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  42. package/dist/src/executors/size-limit/executor.mjs +1 -1
  43. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  44. package/dist/src/executors/tsdown/executor.mjs +1 -1
  45. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  46. package/dist/src/executors/typia/executor.mjs +1 -1
  47. package/dist/src/executors/typia/untyped.mjs +1 -1
  48. package/dist/src/executors/unbuild/executor.mjs +1 -1
  49. package/dist/src/executors/unbuild/untyped.mjs +1 -1
  50. package/dist/src/generators/browser-library/generator.mjs +2 -2
  51. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  52. package/dist/src/generators/config-schema/generator.mjs +1 -1
  53. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  54. package/dist/src/generators/init/init.mjs +1 -1
  55. package/dist/src/generators/init/untyped.mjs +1 -1
  56. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  57. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  58. package/dist/src/generators/node-library/generator.mjs +2 -2
  59. package/dist/src/generators/node-library/untyped.mjs +1 -1
  60. package/dist/src/generators/preset/generator.mjs +2 -2
  61. package/dist/src/generators/preset/untyped.mjs +1 -1
  62. package/dist/src/plugins/rust/cargo-toml.d.mts +27 -3
  63. package/dist/src/plugins/rust/cargo-toml.d.ts +27 -3
  64. package/dist/src/plugins/rust/cargo-toml.js +2 -4
  65. package/dist/src/plugins/rust/cargo-toml.mjs +2 -4
  66. package/dist/src/plugins/rust/index.d.mts +1 -1
  67. package/dist/src/plugins/rust/index.d.ts +1 -1
  68. package/dist/src/plugins/rust/index.js +2 -4
  69. package/dist/src/plugins/rust/index.mjs +2 -4
  70. package/dist/src/plugins/typescript/index.mjs +1 -1
  71. package/dist/src/plugins/typescript/tsdown.mjs +1 -1
  72. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  73. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  74. package/dist/src/release/index.mjs +1 -1
  75. package/dist/src/release/js-version-actions.mjs +1 -1
  76. package/dist/src/release/rust-version-actions.mjs +1 -1
  77. package/dist/src/types.mjs +1 -1
  78. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  79. package/dist/src/utils/cargo.mjs +1 -1
  80. package/dist/src/utils/create-cli-options.mjs +1 -1
  81. package/dist/src/utils/get-project-configurations.mjs +1 -1
  82. package/dist/src/utils/index.mjs +1 -1
  83. package/dist/src/utils/lock-file.mjs +1 -1
  84. package/dist/src/utils/nx-json.mjs +1 -1
  85. package/dist/src/utils/package-helpers.mjs +1 -1
  86. package/dist/src/utils/plugin-helpers.mjs +1 -1
  87. package/dist/src/utils/project-tags.mjs +1 -1
  88. package/dist/src/utils/registry-helpers.mjs +1 -1
  89. package/dist/src/utils/typia-transform.mjs +1 -1
  90. package/dist/src/utils/versions.mjs +1 -1
  91. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -2,6 +2,53 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.292.25](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.25) (11/12/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **workspace-tools:** Improved `rust` Nx plugin logging
10
+ ([bd839c5a4](https://github.com/storm-software/storm-ops/commit/bd839c5a4))
11
+ - **monorepo:** Update workspace package dependencies
12
+ ([2f7e4c39e](https://github.com/storm-software/storm-ops/commit/2f7e4c39e))
13
+ - **monorepo:** Update README markdown files
14
+ ([b8f258457](https://github.com/storm-software/storm-ops/commit/b8f258457))
15
+
16
+ ### Updated Dependencies
17
+
18
+ - Updated **testing-tools** to **v1.119.25**
19
+ - Updated **config-tools** to **v1.188.25**
20
+ - Updated **pnpm-tools** to **v0.6.25**
21
+ - Updated **npm-tools** to **v0.5.25**
22
+ - Updated **prettier** to **v0.57.25**
23
+ - Updated **esbuild** to **v0.53.25**
24
+ - Updated **unbuild** to **v0.57.25**
25
+ - Updated **config** to **v1.134.25**
26
+ - Updated **tsdown** to **v0.45.25**
27
+
28
+ ## [1.292.24](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.24) (11/10/2025)
29
+
30
+ ### Miscellaneous
31
+
32
+ - **monorepo:** Regenerate README markdown files
33
+ ([5eb9b8129](https://github.com/storm-software/storm-ops/commit/5eb9b8129))
34
+
35
+ ### Features
36
+
37
+ - **storm-config:** Added the `from` method to `WorkspaceConfig`
38
+ ([94a5e30f6](https://github.com/storm-software/storm-ops/commit/94a5e30f6))
39
+
40
+ ### Updated Dependencies
41
+
42
+ - Updated **testing-tools** to **v1.119.24**
43
+ - Updated **config-tools** to **v1.188.24**
44
+ - Updated **pnpm-tools** to **v0.6.24**
45
+ - Updated **npm-tools** to **v0.5.24**
46
+ - Updated **prettier** to **v0.57.24**
47
+ - Updated **esbuild** to **v0.53.24**
48
+ - Updated **unbuild** to **v0.57.24**
49
+ - Updated **config** to **v1.134.24**
50
+ - Updated **tsdown** to **v0.45.24**
51
+
5
52
  ## [1.292.23](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.23) (11/09/2025)
6
53
 
7
54
  ### 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
- [![Version](https://img.shields.io/badge/version-1.292.22-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.292.24-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__ddff3f80acdb8654ef4815831fcbcdde/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__21d011a8c8956eb8b1103334669f4dc3/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);
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-JGFRV7ZL.mjs";
8
8
  import {
9
9
  __dirname
10
- } from "./chunk-IPWUJVZZ.mjs";
10
+ } from "./chunk-6TYMSSXV.mjs";
11
11
 
12
12
  // src/generators/preset/generator.ts
13
13
  import {
@@ -16,6 +16,7 @@ import {
16
16
  createNodesFromFiles,
17
17
  joinPathFragments,
18
18
  readJsonFile,
19
+ validateDependency,
19
20
  workspaceRoot
20
21
  } from "@nx/devkit";
21
22
  import defu from "defu";
@@ -30,7 +31,6 @@ var DefaultCargoPluginProfileMap = {
30
31
  development: "dev",
31
32
  production: "prod"
32
33
  };
33
- var DEFAULT_ERROR_MESSAGE = "An error occurred in the Storm Rust Nx plugin.";
34
34
  var createNodesV2 = [
35
35
  "*/**/Cargo.toml",
36
36
  async (configFiles, options, context) => {
@@ -315,9 +315,11 @@ var createNodesV2 = [
315
315
  externalNodes
316
316
  };
317
317
  } catch (e) {
318
- console.error(DEFAULT_ERROR_MESSAGE);
318
+ console.error("An error occurred in the Storm Rust Nx plugin.");
319
319
  console.error(e);
320
- throw new Error(DEFAULT_ERROR_MESSAGE, { cause: e });
320
+ throw new Error("An error occurred in the Storm Rust Nx plugin.", {
321
+ cause: e
322
+ });
321
323
  }
322
324
  },
323
325
  configFiles,
@@ -326,54 +328,77 @@ var createNodesV2 = [
326
328
  );
327
329
  }
328
330
  ];
329
- var createDependencies = (_, context) => {
330
- const metadata = cargoMetadata();
331
- if (!metadata) {
332
- return [];
333
- }
334
- const { packages: cargoPackages } = metadata;
335
- const dependencies = [];
336
- for (const pkg of cargoPackages) {
337
- if (context.projects[pkg.name]) {
338
- for (const deps of pkg.dependencies) {
339
- if (!cargoPackages.find((p) => p.name === deps.name)) {
340
- console.debug(
341
- `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
342
- );
343
- continue;
344
- }
345
- if (context.projects[deps.name]) {
346
- dependencies.push(
347
- createDependency(pkg, deps.name, DependencyType.static)
348
- );
349
- } else {
350
- const externalDepName = `cargo:${deps.name}`;
351
- if (externalDepName in (context.externalNodes ?? {})) {
331
+ var createDependencies = (options, context) => {
332
+ try {
333
+ console.debug(
334
+ `[storm-software/rust]: Creating dependencies using cargo metadata.`
335
+ );
336
+ const metadata = cargoMetadata();
337
+ if (!metadata?.packages) {
338
+ console.debug(
339
+ `[storm-software/rust]: Unable to find cargo metadata. Skipping dependency creation.`
340
+ );
341
+ return [];
342
+ }
343
+ const dependencies = [];
344
+ for (const pkg of metadata.packages) {
345
+ if (context.projects[pkg.name]) {
346
+ for (const deps of pkg.dependencies) {
347
+ if (!metadata.packages.find((p) => p.name === deps.name)) {
348
+ console.debug(
349
+ `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
350
+ );
351
+ continue;
352
+ }
353
+ if (context.projects[deps.name]) {
352
354
  dependencies.push(
353
- createDependency(pkg, externalDepName, DependencyType.static)
355
+ createDependency(context, pkg, deps.name, DependencyType.static)
354
356
  );
357
+ } else {
358
+ const externalDepName = `cargo:${deps.name}`;
359
+ if (externalDepName in (context.externalNodes ?? {})) {
360
+ dependencies.push(
361
+ createDependency(
362
+ context,
363
+ pkg,
364
+ externalDepName,
365
+ DependencyType.static
366
+ )
367
+ );
368
+ }
355
369
  }
356
370
  }
357
371
  }
358
372
  }
373
+ return dependencies;
374
+ } catch (e) {
375
+ console.error(
376
+ "An error occurred creating dependencies in the Storm Rust Nx plugin."
377
+ );
378
+ console.error(e);
379
+ throw new Error(
380
+ "An error occurred creating dependencies in the Storm Rust Nx plugin.",
381
+ {
382
+ cause: e
383
+ }
384
+ );
359
385
  }
360
- return dependencies;
361
386
  };
362
- function createDependency(pkg, depName, type) {
363
- const target = pkg.manifest_path.replace(/\\/g, "/");
364
- return {
387
+ function createDependency(context, pkg, depName, type) {
388
+ const dependency = {
365
389
  type,
366
390
  source: pkg.name,
367
391
  target: depName,
368
- sourceFile: target.replace(`${workspaceRoot.replace(/\\/g, "/")}/`, "")
392
+ sourceFile: pkg.manifest_path.replace(/\\/g, "/").replace(`${workspaceRoot.replace(/\\/g, "/")}/`, "")
369
393
  };
394
+ validateDependency(dependency, context);
395
+ return dependency;
370
396
  }
371
397
 
372
398
  export {
373
399
  name,
374
400
  description,
375
401
  DefaultCargoPluginProfileMap,
376
- DEFAULT_ERROR_MESSAGE,
377
402
  createNodesV2,
378
403
  createDependencies
379
404
  };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-C26A6BXG.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-IPWUJVZZ.mjs";
13
+ } from "./chunk-6TYMSSXV.mjs";
14
14
 
15
15
  // src/generators/neutral-library/generator.ts
16
16
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-C26A6BXG.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-IPWUJVZZ.mjs";
13
+ } from "./chunk-6TYMSSXV.mjs";
14
14
 
15
15
  // src/generators/browser-library/generator.ts
16
16
  import {
@@ -17,6 +17,7 @@ var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
17
17
 
18
18
 
19
19
 
20
+
20
21
  var _devkit = require('@nx/devkit');
21
22
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
22
23
  var _fs = require('fs');
@@ -30,17 +31,16 @@ var DefaultCargoPluginProfileMap = {
30
31
  development: "dev",
31
32
  production: "prod"
32
33
  };
33
- var DEFAULT_ERROR_MESSAGE = "An error occurred in the Storm Rust Nx plugin.";
34
34
  var createNodesV2 = [
35
35
  "*/**/Cargo.toml",
36
36
  async (configFiles, options, context) => {
37
37
  return await _devkit.createNodesFromFiles.call(void 0,
38
38
  (configFile, options2, context2) => {
39
39
  try {
40
- const profiles = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _2 => _2.profiles]), () => ( {}));
41
- const includeApps = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _3 => _3.includeApps]), () => ( true));
42
- const toolchain = _optionalChain([options2, 'optionalAccess', _4 => _4.toolchain]);
43
- const skipDocs = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _5 => _5.skipDocs]), () => ( false));
40
+ const profiles = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _ => _.profiles]), () => ( {}));
41
+ const includeApps = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _2 => _2.includeApps]), () => ( true));
42
+ const toolchain = _optionalChain([options2, 'optionalAccess', _3 => _3.toolchain]);
43
+ const skipDocs = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _4 => _4.skipDocs]), () => ( false));
44
44
  const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
45
45
  if (!metadata) {
46
46
  return {};
@@ -295,7 +295,7 @@ var createNodesV2 = [
295
295
  for (const dep of cargoPackage.dependencies) {
296
296
  if (_chunkLJDV7HFTjs.isExternal.call(void 0, dep, context2.workspaceRoot)) {
297
297
  const externalDepName = `cargo:${dep.name}`;
298
- if (!_optionalChain([externalNodes, 'optionalAccess', _6 => _6[externalDepName]])) {
298
+ if (!_optionalChain([externalNodes, 'optionalAccess', _5 => _5[externalDepName]])) {
299
299
  externalNodes[externalDepName] = {
300
300
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
301
301
  type: "cargo",
@@ -303,7 +303,7 @@ var createNodesV2 = [
303
303
  name: externalDepName,
304
304
  data: {
305
305
  packageName: dep.name,
306
- version: _nullishCoalesce(_optionalChain([cargoPackageMap, 'access', _7 => _7.get, 'call', _8 => _8(dep.name), 'optionalAccess', _9 => _9.version]), () => ( "0.0.0"))
306
+ version: _nullishCoalesce(_optionalChain([cargoPackageMap, 'access', _6 => _6.get, 'call', _7 => _7(dep.name), 'optionalAccess', _8 => _8.version]), () => ( "0.0.0"))
307
307
  }
308
308
  };
309
309
  }
@@ -315,9 +315,11 @@ var createNodesV2 = [
315
315
  externalNodes
316
316
  };
317
317
  } catch (e) {
318
- console.error(DEFAULT_ERROR_MESSAGE);
318
+ console.error("An error occurred in the Storm Rust Nx plugin.");
319
319
  console.error(e);
320
- throw new Error(DEFAULT_ERROR_MESSAGE, { cause: e });
320
+ throw new Error("An error occurred in the Storm Rust Nx plugin.", {
321
+ cause: e
322
+ });
321
323
  }
322
324
  },
323
325
  configFiles,
@@ -326,47 +328,71 @@ var createNodesV2 = [
326
328
  );
327
329
  }
328
330
  ];
329
- var createDependencies = (_, context) => {
330
- const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
331
- if (!metadata) {
332
- return [];
333
- }
334
- const { packages: cargoPackages } = metadata;
335
- const dependencies = [];
336
- for (const pkg of cargoPackages) {
337
- if (context.projects[pkg.name]) {
338
- for (const deps of pkg.dependencies) {
339
- if (!cargoPackages.find((p) => p.name === deps.name)) {
340
- console.debug(
341
- `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
342
- );
343
- continue;
344
- }
345
- if (context.projects[deps.name]) {
346
- dependencies.push(
347
- createDependency(pkg, deps.name, _projectgraph.DependencyType.static)
348
- );
349
- } else {
350
- const externalDepName = `cargo:${deps.name}`;
351
- if (externalDepName in (_nullishCoalesce(context.externalNodes, () => ( {})))) {
331
+ var createDependencies = (options, context) => {
332
+ try {
333
+ console.debug(
334
+ `[storm-software/rust]: Creating dependencies using cargo metadata.`
335
+ );
336
+ const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
337
+ if (!_optionalChain([metadata, 'optionalAccess', _9 => _9.packages])) {
338
+ console.debug(
339
+ `[storm-software/rust]: Unable to find cargo metadata. Skipping dependency creation.`
340
+ );
341
+ return [];
342
+ }
343
+ const dependencies = [];
344
+ for (const pkg of metadata.packages) {
345
+ if (context.projects[pkg.name]) {
346
+ for (const deps of pkg.dependencies) {
347
+ if (!metadata.packages.find((p) => p.name === deps.name)) {
348
+ console.debug(
349
+ `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
350
+ );
351
+ continue;
352
+ }
353
+ if (context.projects[deps.name]) {
352
354
  dependencies.push(
353
- createDependency(pkg, externalDepName, _projectgraph.DependencyType.static)
355
+ createDependency(context, pkg, deps.name, _projectgraph.DependencyType.static)
354
356
  );
357
+ } else {
358
+ const externalDepName = `cargo:${deps.name}`;
359
+ if (externalDepName in (_nullishCoalesce(context.externalNodes, () => ( {})))) {
360
+ dependencies.push(
361
+ createDependency(
362
+ context,
363
+ pkg,
364
+ externalDepName,
365
+ _projectgraph.DependencyType.static
366
+ )
367
+ );
368
+ }
355
369
  }
356
370
  }
357
371
  }
358
372
  }
373
+ return dependencies;
374
+ } catch (e) {
375
+ console.error(
376
+ "An error occurred creating dependencies in the Storm Rust Nx plugin."
377
+ );
378
+ console.error(e);
379
+ throw new Error(
380
+ "An error occurred creating dependencies in the Storm Rust Nx plugin.",
381
+ {
382
+ cause: e
383
+ }
384
+ );
359
385
  }
360
- return dependencies;
361
386
  };
362
- function createDependency(pkg, depName, type) {
363
- const target = pkg.manifest_path.replace(/\\/g, "/");
364
- return {
387
+ function createDependency(context, pkg, depName, type) {
388
+ const dependency = {
365
389
  type,
366
390
  source: pkg.name,
367
391
  target: depName,
368
- sourceFile: target.replace(`${_devkit.workspaceRoot.replace(/\\/g, "/")}/`, "")
392
+ sourceFile: pkg.manifest_path.replace(/\\/g, "/").replace(`${_devkit.workspaceRoot.replace(/\\/g, "/")}/`, "")
369
393
  };
394
+ _devkit.validateDependency.call(void 0, dependency, context);
395
+ return dependency;
370
396
  }
371
397
 
372
398
 
@@ -375,5 +401,4 @@ function createDependency(pkg, depName, type) {
375
401
 
376
402
 
377
403
 
378
-
379
- exports.name = name; exports.description = description; exports.DefaultCargoPluginProfileMap = DefaultCargoPluginProfileMap; exports.DEFAULT_ERROR_MESSAGE = DEFAULT_ERROR_MESSAGE; exports.createNodesV2 = createNodesV2; exports.createDependencies = createDependencies;
404
+ exports.name = name; exports.description = description; exports.DefaultCargoPluginProfileMap = DefaultCargoPluginProfileMap; exports.createNodesV2 = createNodesV2; exports.createDependencies = createDependencies;
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-C26A6BXG.mjs";
14
14
  import {
15
15
  __dirname
16
- } from "./chunk-IPWUJVZZ.mjs";
16
+ } from "./chunk-6TYMSSXV.mjs";
17
17
 
18
18
  // src/generators/node-library/generator.ts
19
19
  import {
package/dist/executors.js CHANGED
@@ -14,10 +14,10 @@ var _chunkMYFQ64WEjs = require('./chunk-MYFQ64WE.js');
14
14
  require('./chunk-FSYURQ5X.js');
15
15
 
16
16
 
17
- var _chunkEECJXHDAjs = require('./chunk-EECJXHDA.js');
17
+ var _chunk5C7DI3NFjs = require('./chunk-5C7DI3NF.js');
18
18
 
19
19
 
20
- var _chunk5C7DI3NFjs = require('./chunk-5C7DI3NF.js');
20
+ var _chunkEECJXHDAjs = require('./chunk-EECJXHDA.js');
21
21
 
22
22
 
23
23
  var _chunkVWQYDQYVjs = require('./chunk-VWQYDQYV.js');
@@ -12,12 +12,12 @@ import {
12
12
  esbuildExecutorFn
13
13
  } from "./chunk-NXWRHUNL.mjs";
14
14
  import "./chunk-F3NQOV2M.mjs";
15
- import {
16
- LARGE_BUFFER
17
- } from "./chunk-OOR7HG4P.mjs";
18
15
  import {
19
16
  sizeLimitExecutorFn
20
17
  } from "./chunk-IIDQ2ITD.mjs";
18
+ import {
19
+ LARGE_BUFFER
20
+ } from "./chunk-OOR7HG4P.mjs";
21
21
  import {
22
22
  cargoClippyExecutor
23
23
  } from "./chunk-BC7TUSC7.mjs";
@@ -46,7 +46,7 @@ import "./chunk-NOTQLVZP.mjs";
46
46
  import "./chunk-V44DYGWX.mjs";
47
47
  import "./chunk-VGJEUOUN.mjs";
48
48
  import "./chunk-C26A6BXG.mjs";
49
- import "./chunk-IPWUJVZZ.mjs";
49
+ import "./chunk-6TYMSSXV.mjs";
50
50
  export {
51
51
  LARGE_BUFFER,
52
52
  cargoBuildExecutor,
@@ -1,12 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-C3TC7AUW.js');
2
2
 
3
3
 
4
- var _chunkJ3WZEN2Ujs = require('./chunk-J3WZEN2U.js');
5
-
6
-
7
- var _chunkMBO4Z5AVjs = require('./chunk-MBO4Z5AV.js');
8
-
9
-
10
4
  var _chunkOKSECMVKjs = require('./chunk-OKSECMVK.js');
11
5
 
12
6
 
@@ -16,7 +10,13 @@ var _chunkT5BI42AOjs = require('./chunk-T5BI42AO.js');
16
10
  var _chunkYMZQ7GGXjs = require('./chunk-YMZQ7GGX.js');
17
11
 
18
12
 
13
+ var _chunkJ3WZEN2Ujs = require('./chunk-J3WZEN2U.js');
14
+
15
+
19
16
  var _chunk6A7OOTO2js = require('./chunk-6A7OOTO2.js');
17
+
18
+
19
+ var _chunkMBO4Z5AVjs = require('./chunk-MBO4Z5AV.js');
20
20
  require('./chunk-4HV5G4DT.js');
21
21
  require('./chunk-SZWM7COV.js');
22
22
  require('./chunk-AX3RSZT7.js');
@@ -1,22 +1,22 @@
1
1
  import "./chunk-SAIDGUHG.mjs";
2
- import {
3
- presetGeneratorFn
4
- } from "./chunk-JHJLQ2O7.mjs";
5
- import {
6
- configSchemaGeneratorFn
7
- } from "./chunk-REKF65PT.mjs";
8
2
  import {
9
3
  initGenerator
10
4
  } from "./chunk-437WGH2M.mjs";
11
5
  import {
12
6
  neutralLibraryGeneratorFn
13
- } from "./chunk-WH72XZPS.mjs";
7
+ } from "./chunk-K5XMGL6Y.mjs";
14
8
  import {
15
9
  nodeLibraryGeneratorFn
16
- } from "./chunk-KCVIHYZQ.mjs";
10
+ } from "./chunk-ZM7BQH6Q.mjs";
11
+ import {
12
+ presetGeneratorFn
13
+ } from "./chunk-CDBRCMR4.mjs";
17
14
  import {
18
15
  browserLibraryGeneratorFn
19
- } from "./chunk-QUHBEE5D.mjs";
16
+ } from "./chunk-TMUZX6IO.mjs";
17
+ import {
18
+ configSchemaGeneratorFn
19
+ } from "./chunk-REKF65PT.mjs";
20
20
  import "./chunk-HP36FVRU.mjs";
21
21
  import "./chunk-QC5ON3X4.mjs";
22
22
  import "./chunk-F66XEAID.mjs";
@@ -26,7 +26,7 @@ import "./chunk-NOTQLVZP.mjs";
26
26
  import "./chunk-V44DYGWX.mjs";
27
27
  import "./chunk-VGJEUOUN.mjs";
28
28
  import "./chunk-C26A6BXG.mjs";
29
- import "./chunk-IPWUJVZZ.mjs";
29
+ import "./chunk-6TYMSSXV.mjs";
30
30
  export {
31
31
  browserLibraryGeneratorFn,
32
32
  configSchemaGeneratorFn,
package/dist/index.js CHANGED
@@ -71,10 +71,10 @@ var _chunkMYFQ64WEjs = require('./chunk-MYFQ64WE.js');
71
71
  require('./chunk-FSYURQ5X.js');
72
72
 
73
73
 
74
- var _chunkEECJXHDAjs = require('./chunk-EECJXHDA.js');
74
+ var _chunk5C7DI3NFjs = require('./chunk-5C7DI3NF.js');
75
75
 
76
76
 
77
- var _chunk5C7DI3NFjs = require('./chunk-5C7DI3NF.js');
77
+ var _chunkEECJXHDAjs = require('./chunk-EECJXHDA.js');
78
78
 
79
79
 
80
80
  var _chunkVWQYDQYVjs = require('./chunk-VWQYDQYV.js');
@@ -113,12 +113,6 @@ require('./chunk-JWFGGMYQ.js');
113
113
  require('./chunk-C3TC7AUW.js');
114
114
 
115
115
 
116
- var _chunkJ3WZEN2Ujs = require('./chunk-J3WZEN2U.js');
117
-
118
-
119
- var _chunkMBO4Z5AVjs = require('./chunk-MBO4Z5AV.js');
120
-
121
-
122
116
  var _chunkOKSECMVKjs = require('./chunk-OKSECMVK.js');
123
117
 
124
118
 
@@ -128,9 +122,15 @@ var _chunkT5BI42AOjs = require('./chunk-T5BI42AO.js');
128
122
  var _chunkYMZQ7GGXjs = require('./chunk-YMZQ7GGX.js');
129
123
 
130
124
 
125
+ var _chunkJ3WZEN2Ujs = require('./chunk-J3WZEN2U.js');
126
+
127
+
131
128
  var _chunk6A7OOTO2js = require('./chunk-6A7OOTO2.js');
132
129
 
133
130
 
131
+ var _chunkMBO4Z5AVjs = require('./chunk-MBO4Z5AV.js');
132
+
133
+
134
134
 
135
135
 
136
136
 
package/dist/index.mjs CHANGED
@@ -69,12 +69,12 @@ import {
69
69
  esbuildExecutorFn
70
70
  } from "./chunk-NXWRHUNL.mjs";
71
71
  import "./chunk-F3NQOV2M.mjs";
72
- import {
73
- LARGE_BUFFER
74
- } from "./chunk-OOR7HG4P.mjs";
75
72
  import {
76
73
  sizeLimitExecutorFn
77
74
  } from "./chunk-IIDQ2ITD.mjs";
75
+ import {
76
+ LARGE_BUFFER
77
+ } from "./chunk-OOR7HG4P.mjs";
78
78
  import {
79
79
  cargoClippyExecutor
80
80
  } from "./chunk-BC7TUSC7.mjs";
@@ -111,24 +111,24 @@ import {
111
111
  } from "./chunk-6PVCCKX4.mjs";
112
112
  import "./chunk-X2SLQ73Q.mjs";
113
113
  import "./chunk-SAIDGUHG.mjs";
114
- import {
115
- presetGeneratorFn
116
- } from "./chunk-JHJLQ2O7.mjs";
117
- import {
118
- configSchemaGeneratorFn
119
- } from "./chunk-REKF65PT.mjs";
120
114
  import {
121
115
  initGenerator
122
116
  } from "./chunk-437WGH2M.mjs";
123
117
  import {
124
118
  neutralLibraryGeneratorFn
125
- } from "./chunk-WH72XZPS.mjs";
119
+ } from "./chunk-K5XMGL6Y.mjs";
126
120
  import {
127
121
  nodeLibraryGeneratorFn
128
- } from "./chunk-KCVIHYZQ.mjs";
122
+ } from "./chunk-ZM7BQH6Q.mjs";
123
+ import {
124
+ presetGeneratorFn
125
+ } from "./chunk-CDBRCMR4.mjs";
129
126
  import {
130
127
  browserLibraryGeneratorFn
131
- } from "./chunk-QUHBEE5D.mjs";
128
+ } from "./chunk-TMUZX6IO.mjs";
129
+ import {
130
+ configSchemaGeneratorFn
131
+ } from "./chunk-REKF65PT.mjs";
132
132
  import {
133
133
  createProjectTsConfigJson,
134
134
  getOutputPath,
@@ -190,7 +190,7 @@ import "./chunk-C26A6BXG.mjs";
190
190
  import {
191
191
  base_generator_untyped_default
192
192
  } from "./chunk-34LSWMWV.mjs";
193
- import "./chunk-IPWUJVZZ.mjs";
193
+ import "./chunk-6TYMSSXV.mjs";
194
194
  export {
195
195
  INVALID_CARGO_ARGS,
196
196
  LARGE_BUFFER,
@@ -6,7 +6,7 @@ import "../../chunk-NOTQLVZP.mjs";
6
6
  import "../../chunk-V44DYGWX.mjs";
7
7
  import "../../chunk-VGJEUOUN.mjs";
8
8
  import "../../chunk-C26A6BXG.mjs";
9
- import "../../chunk-IPWUJVZZ.mjs";
9
+ import "../../chunk-6TYMSSXV.mjs";
10
10
  export {
11
11
  withRunExecutor
12
12
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  base_executor_untyped_default
3
3
  } from "../../chunk-DGC5L3Z7.mjs";
4
- import "../../chunk-IPWUJVZZ.mjs";
4
+ import "../../chunk-6TYMSSXV.mjs";
5
5
  export {
6
6
  base_executor_untyped_default as default
7
7
  };
@@ -6,7 +6,7 @@ import "../../chunk-NOTQLVZP.mjs";
6
6
  import "../../chunk-V44DYGWX.mjs";
7
7
  import "../../chunk-VGJEUOUN.mjs";
8
8
  import "../../chunk-C26A6BXG.mjs";
9
- import "../../chunk-IPWUJVZZ.mjs";
9
+ import "../../chunk-6TYMSSXV.mjs";
10
10
  export {
11
11
  withRunGenerator
12
12
  };