@storm-software/workspace-tools 1.292.23 → 1.292.25

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 (88) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +2 -1
  3. package/dist/{chunk-IPWUJVZZ.mjs → chunk-6TYMSSXV.mjs} +1 -1
  4. package/dist/{chunk-O2FPRXPD.js → chunk-A6N326FN.js} +54 -36
  5. package/dist/{chunk-JHJLQ2O7.mjs → chunk-CDBRCMR4.mjs} +1 -1
  6. package/dist/{chunk-WH72XZPS.mjs → chunk-K5XMGL6Y.mjs} +1 -1
  7. package/dist/{chunk-D2ENLOCH.mjs → chunk-LF2APRG7.mjs} +47 -29
  8. package/dist/{chunk-QUHBEE5D.mjs → chunk-TMUZX6IO.mjs} +1 -1
  9. package/dist/{chunk-KCVIHYZQ.mjs → chunk-ZM7BQH6Q.mjs} +1 -1
  10. package/dist/executors.mjs +1 -1
  11. package/dist/generators.mjs +5 -5
  12. package/dist/index.mjs +5 -5
  13. package/dist/src/base/base-executor.mjs +1 -1
  14. package/dist/src/base/base-executor.untyped.mjs +1 -1
  15. package/dist/src/base/base-generator.mjs +1 -1
  16. package/dist/src/base/base-generator.untyped.mjs +1 -1
  17. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  18. package/dist/src/base/index.mjs +1 -1
  19. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  20. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  21. package/dist/src/executors/cargo-build/executor.mjs +1 -1
  22. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  23. package/dist/src/executors/cargo-check/executor.mjs +1 -1
  24. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  25. package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
  26. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  27. package/dist/src/executors/cargo-doc/executor.mjs +1 -1
  28. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  29. package/dist/src/executors/cargo-format/executor.mjs +1 -1
  30. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  31. package/dist/src/executors/cargo-publish/executor.mjs +1 -1
  32. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  33. package/dist/src/executors/clean-package/executor.mjs +1 -1
  34. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  35. package/dist/src/executors/esbuild/executor.mjs +1 -1
  36. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  37. package/dist/src/executors/npm-publish/executor.mjs +1 -1
  38. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  39. package/dist/src/executors/size-limit/executor.mjs +1 -1
  40. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  41. package/dist/src/executors/tsdown/executor.mjs +1 -1
  42. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  43. package/dist/src/executors/typia/executor.mjs +1 -1
  44. package/dist/src/executors/typia/untyped.mjs +1 -1
  45. package/dist/src/executors/unbuild/executor.mjs +1 -1
  46. package/dist/src/executors/unbuild/untyped.mjs +1 -1
  47. package/dist/src/generators/browser-library/generator.mjs +2 -2
  48. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  49. package/dist/src/generators/config-schema/generator.mjs +1 -1
  50. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  51. package/dist/src/generators/init/init.mjs +1 -1
  52. package/dist/src/generators/init/untyped.mjs +1 -1
  53. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  54. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  55. package/dist/src/generators/node-library/generator.mjs +2 -2
  56. package/dist/src/generators/node-library/untyped.mjs +1 -1
  57. package/dist/src/generators/preset/generator.mjs +2 -2
  58. package/dist/src/generators/preset/untyped.mjs +1 -1
  59. package/dist/src/plugins/rust/cargo-toml.d.mts +2 -3
  60. package/dist/src/plugins/rust/cargo-toml.d.ts +2 -3
  61. package/dist/src/plugins/rust/cargo-toml.js +2 -4
  62. package/dist/src/plugins/rust/cargo-toml.mjs +2 -4
  63. package/dist/src/plugins/rust/index.d.mts +1 -1
  64. package/dist/src/plugins/rust/index.d.ts +1 -1
  65. package/dist/src/plugins/rust/index.js +2 -4
  66. package/dist/src/plugins/rust/index.mjs +2 -4
  67. package/dist/src/plugins/typescript/index.mjs +1 -1
  68. package/dist/src/plugins/typescript/tsdown.mjs +1 -1
  69. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  70. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  71. package/dist/src/release/index.mjs +1 -1
  72. package/dist/src/release/js-version-actions.mjs +1 -1
  73. package/dist/src/release/rust-version-actions.mjs +1 -1
  74. package/dist/src/types.mjs +1 -1
  75. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  76. package/dist/src/utils/cargo.mjs +1 -1
  77. package/dist/src/utils/create-cli-options.mjs +1 -1
  78. package/dist/src/utils/get-project-configurations.mjs +1 -1
  79. package/dist/src/utils/index.mjs +1 -1
  80. package/dist/src/utils/lock-file.mjs +1 -1
  81. package/dist/src/utils/nx-json.mjs +1 -1
  82. package/dist/src/utils/package-helpers.mjs +1 -1
  83. package/dist/src/utils/plugin-helpers.mjs +1 -1
  84. package/dist/src/utils/project-tags.mjs +1 -1
  85. package/dist/src/utils/registry-helpers.mjs +1 -1
  86. package/dist/src/utils/typia-transform.mjs +1 -1
  87. package/dist/src/utils/versions.mjs +1 -1
  88. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -2,6 +2,49 @@
2
2
 
3
3
  # Changelog for Storm Ops - Workspace Tools
4
4
 
5
+ ## [1.292.24](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.24) (11/10/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([5eb9b8129](https://github.com/storm-software/storm-ops/commit/5eb9b8129))
11
+
12
+ ### Features
13
+
14
+ - **storm-config:** Added the `from` method to `WorkspaceConfig`
15
+ ([94a5e30f6](https://github.com/storm-software/storm-ops/commit/94a5e30f6))
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated **testing-tools** to **v1.119.24**
20
+ - Updated **config-tools** to **v1.188.24**
21
+ - Updated **pnpm-tools** to **v0.6.24**
22
+ - Updated **npm-tools** to **v0.5.24**
23
+ - Updated **prettier** to **v0.57.24**
24
+ - Updated **esbuild** to **v0.53.24**
25
+ - Updated **unbuild** to **v0.57.24**
26
+ - Updated **config** to **v1.134.24**
27
+ - Updated **tsdown** to **v0.45.24**
28
+
29
+ ## [1.292.23](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.23) (11/09/2025)
30
+
31
+ ### Miscellaneous
32
+
33
+ - **monorepo:** Regenerate README markdown files
34
+ ([e9e2cd674](https://github.com/storm-software/storm-ops/commit/e9e2cd674))
35
+
36
+ ### Updated Dependencies
37
+
38
+ - Updated **testing-tools** to **v1.119.23**
39
+ - Updated **config-tools** to **v1.188.23**
40
+ - Updated **pnpm-tools** to **v0.6.23**
41
+ - Updated **npm-tools** to **v0.5.23**
42
+ - Updated **prettier** to **v0.57.23**
43
+ - Updated **esbuild** to **v0.53.23**
44
+ - Updated **unbuild** to **v0.57.23**
45
+ - Updated **config** to **v1.134.23**
46
+ - Updated **tsdown** to **v0.45.23**
47
+
5
48
  ## [1.292.22](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.292.22) (11/08/2025)
6
49
 
7
50
  ### 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.21-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.23-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 -->
@@ -40,6 +40,7 @@ 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
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Workspace Tools](#storm-workspace-tools)
@@ -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);
@@ -30,17 +30,16 @@ var DefaultCargoPluginProfileMap = {
30
30
  development: "dev",
31
31
  production: "prod"
32
32
  };
33
- var DEFAULT_ERROR_MESSAGE = "An error occurred in the Storm Rust Nx plugin.";
34
33
  var createNodesV2 = [
35
34
  "*/**/Cargo.toml",
36
35
  async (configFiles, options, context) => {
37
36
  return await _devkit.createNodesFromFiles.call(void 0,
38
37
  (configFile, options2, context2) => {
39
38
  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));
39
+ const profiles = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _ => _.profiles]), () => ( {}));
40
+ const includeApps = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _2 => _2.includeApps]), () => ( true));
41
+ const toolchain = _optionalChain([options2, 'optionalAccess', _3 => _3.toolchain]);
42
+ const skipDocs = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _4 => _4.skipDocs]), () => ( false));
44
43
  const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
45
44
  if (!metadata) {
46
45
  return {};
@@ -295,7 +294,7 @@ var createNodesV2 = [
295
294
  for (const dep of cargoPackage.dependencies) {
296
295
  if (_chunkLJDV7HFTjs.isExternal.call(void 0, dep, context2.workspaceRoot)) {
297
296
  const externalDepName = `cargo:${dep.name}`;
298
- if (!_optionalChain([externalNodes, 'optionalAccess', _6 => _6[externalDepName]])) {
297
+ if (!_optionalChain([externalNodes, 'optionalAccess', _5 => _5[externalDepName]])) {
299
298
  externalNodes[externalDepName] = {
300
299
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
301
300
  type: "cargo",
@@ -303,7 +302,7 @@ var createNodesV2 = [
303
302
  name: externalDepName,
304
303
  data: {
305
304
  packageName: dep.name,
306
- version: _nullishCoalesce(_optionalChain([cargoPackageMap, 'access', _7 => _7.get, 'call', _8 => _8(dep.name), 'optionalAccess', _9 => _9.version]), () => ( "0.0.0"))
305
+ version: _nullishCoalesce(_optionalChain([cargoPackageMap, 'access', _6 => _6.get, 'call', _7 => _7(dep.name), 'optionalAccess', _8 => _8.version]), () => ( "0.0.0"))
307
306
  }
308
307
  };
309
308
  }
@@ -315,9 +314,11 @@ var createNodesV2 = [
315
314
  externalNodes
316
315
  };
317
316
  } catch (e) {
318
- console.error(DEFAULT_ERROR_MESSAGE);
317
+ console.error("An error occurred in the Storm Rust Nx plugin.");
319
318
  console.error(e);
320
- throw new Error(DEFAULT_ERROR_MESSAGE, { cause: e });
319
+ throw new Error("An error occurred in the Storm Rust Nx plugin.", {
320
+ cause: e
321
+ });
321
322
  }
322
323
  },
323
324
  configFiles,
@@ -326,38 +327,56 @@ var createNodesV2 = [
326
327
  );
327
328
  }
328
329
  ];
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, () => ( {})))) {
330
+ var createDependencies = (options, context) => {
331
+ try {
332
+ console.debug(
333
+ `[storm-software/rust]: Creating dependencies using cargo metadata.`
334
+ );
335
+ const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
336
+ if (!_optionalChain([metadata, 'optionalAccess', _9 => _9.packages])) {
337
+ console.debug(
338
+ `[storm-software/rust]: Unable to find cargo metadata. Skipping dependency creation.`
339
+ );
340
+ return [];
341
+ }
342
+ const dependencies = [];
343
+ for (const pkg of metadata.packages) {
344
+ if (context.projects[pkg.name]) {
345
+ for (const deps of pkg.dependencies) {
346
+ if (!metadata.packages.find((p) => p.name === deps.name)) {
347
+ console.debug(
348
+ `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
349
+ );
350
+ continue;
351
+ }
352
+ if (context.projects[deps.name]) {
352
353
  dependencies.push(
353
- createDependency(pkg, externalDepName, _projectgraph.DependencyType.static)
354
+ createDependency(pkg, deps.name, _projectgraph.DependencyType.static)
354
355
  );
356
+ } else {
357
+ const externalDepName = `cargo:${deps.name}`;
358
+ if (externalDepName in (_nullishCoalesce(context.externalNodes, () => ( {})))) {
359
+ dependencies.push(
360
+ createDependency(pkg, externalDepName, _projectgraph.DependencyType.static)
361
+ );
362
+ }
355
363
  }
356
364
  }
357
365
  }
358
366
  }
367
+ return dependencies;
368
+ } catch (e) {
369
+ console.error(
370
+ "An error occurred creating dependencies in the Storm Rust Nx plugin."
371
+ );
372
+ console.error(e);
373
+ throw new Error(
374
+ "An error occurred creating dependencies in the Storm Rust Nx plugin.",
375
+ {
376
+ cause: e
377
+ }
378
+ );
359
379
  }
360
- return dependencies;
361
380
  };
362
381
  function createDependency(pkg, depName, type) {
363
382
  const target = pkg.manifest_path.replace(/\\/g, "/");
@@ -375,5 +394,4 @@ function createDependency(pkg, depName, type) {
375
394
 
376
395
 
377
396
 
378
-
379
- exports.name = name; exports.description = description; exports.DefaultCargoPluginProfileMap = DefaultCargoPluginProfileMap; exports.DEFAULT_ERROR_MESSAGE = DEFAULT_ERROR_MESSAGE; exports.createNodesV2 = createNodesV2; exports.createDependencies = createDependencies;
397
+ exports.name = name; exports.description = description; exports.DefaultCargoPluginProfileMap = DefaultCargoPluginProfileMap; exports.createNodesV2 = createNodesV2; exports.createDependencies = createDependencies;
@@ -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 {
@@ -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 {
@@ -30,7 +30,6 @@ var DefaultCargoPluginProfileMap = {
30
30
  development: "dev",
31
31
  production: "prod"
32
32
  };
33
- var DEFAULT_ERROR_MESSAGE = "An error occurred in the Storm Rust Nx plugin.";
34
33
  var createNodesV2 = [
35
34
  "*/**/Cargo.toml",
36
35
  async (configFiles, options, context) => {
@@ -315,9 +314,11 @@ var createNodesV2 = [
315
314
  externalNodes
316
315
  };
317
316
  } catch (e) {
318
- console.error(DEFAULT_ERROR_MESSAGE);
317
+ console.error("An error occurred in the Storm Rust Nx plugin.");
319
318
  console.error(e);
320
- throw new Error(DEFAULT_ERROR_MESSAGE, { cause: e });
319
+ throw new Error("An error occurred in the Storm Rust Nx plugin.", {
320
+ cause: e
321
+ });
321
322
  }
322
323
  },
323
324
  configFiles,
@@ -326,38 +327,56 @@ var createNodesV2 = [
326
327
  );
327
328
  }
328
329
  ];
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 ?? {})) {
330
+ var createDependencies = (options, context) => {
331
+ try {
332
+ console.debug(
333
+ `[storm-software/rust]: Creating dependencies using cargo metadata.`
334
+ );
335
+ const metadata = cargoMetadata();
336
+ if (!metadata?.packages) {
337
+ console.debug(
338
+ `[storm-software/rust]: Unable to find cargo metadata. Skipping dependency creation.`
339
+ );
340
+ return [];
341
+ }
342
+ const dependencies = [];
343
+ for (const pkg of metadata.packages) {
344
+ if (context.projects[pkg.name]) {
345
+ for (const deps of pkg.dependencies) {
346
+ if (!metadata.packages.find((p) => p.name === deps.name)) {
347
+ console.debug(
348
+ `[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
349
+ );
350
+ continue;
351
+ }
352
+ if (context.projects[deps.name]) {
352
353
  dependencies.push(
353
- createDependency(pkg, externalDepName, DependencyType.static)
354
+ createDependency(pkg, deps.name, DependencyType.static)
354
355
  );
356
+ } else {
357
+ const externalDepName = `cargo:${deps.name}`;
358
+ if (externalDepName in (context.externalNodes ?? {})) {
359
+ dependencies.push(
360
+ createDependency(pkg, externalDepName, DependencyType.static)
361
+ );
362
+ }
355
363
  }
356
364
  }
357
365
  }
358
366
  }
367
+ return dependencies;
368
+ } catch (e) {
369
+ console.error(
370
+ "An error occurred creating dependencies in the Storm Rust Nx plugin."
371
+ );
372
+ console.error(e);
373
+ throw new Error(
374
+ "An error occurred creating dependencies in the Storm Rust Nx plugin.",
375
+ {
376
+ cause: e
377
+ }
378
+ );
359
379
  }
360
- return dependencies;
361
380
  };
362
381
  function createDependency(pkg, depName, type) {
363
382
  const target = pkg.manifest_path.replace(/\\/g, "/");
@@ -373,7 +392,6 @@ export {
373
392
  name,
374
393
  description,
375
394
  DefaultCargoPluginProfileMap,
376
- DEFAULT_ERROR_MESSAGE,
377
395
  createNodesV2,
378
396
  createDependencies
379
397
  };
@@ -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 {
@@ -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 {
@@ -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,7 +1,7 @@
1
1
  import "./chunk-SAIDGUHG.mjs";
2
2
  import {
3
3
  presetGeneratorFn
4
- } from "./chunk-JHJLQ2O7.mjs";
4
+ } from "./chunk-CDBRCMR4.mjs";
5
5
  import {
6
6
  configSchemaGeneratorFn
7
7
  } from "./chunk-REKF65PT.mjs";
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-437WGH2M.mjs";
11
11
  import {
12
12
  neutralLibraryGeneratorFn
13
- } from "./chunk-WH72XZPS.mjs";
13
+ } from "./chunk-K5XMGL6Y.mjs";
14
14
  import {
15
15
  nodeLibraryGeneratorFn
16
- } from "./chunk-KCVIHYZQ.mjs";
16
+ } from "./chunk-ZM7BQH6Q.mjs";
17
17
  import {
18
18
  browserLibraryGeneratorFn
19
- } from "./chunk-QUHBEE5D.mjs";
19
+ } from "./chunk-TMUZX6IO.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.mjs CHANGED
@@ -113,7 +113,7 @@ import "./chunk-X2SLQ73Q.mjs";
113
113
  import "./chunk-SAIDGUHG.mjs";
114
114
  import {
115
115
  presetGeneratorFn
116
- } from "./chunk-JHJLQ2O7.mjs";
116
+ } from "./chunk-CDBRCMR4.mjs";
117
117
  import {
118
118
  configSchemaGeneratorFn
119
119
  } from "./chunk-REKF65PT.mjs";
@@ -122,13 +122,13 @@ import {
122
122
  } from "./chunk-437WGH2M.mjs";
123
123
  import {
124
124
  neutralLibraryGeneratorFn
125
- } from "./chunk-WH72XZPS.mjs";
125
+ } from "./chunk-K5XMGL6Y.mjs";
126
126
  import {
127
127
  nodeLibraryGeneratorFn
128
- } from "./chunk-KCVIHYZQ.mjs";
128
+ } from "./chunk-ZM7BQH6Q.mjs";
129
129
  import {
130
130
  browserLibraryGeneratorFn
131
- } from "./chunk-QUHBEE5D.mjs";
131
+ } from "./chunk-TMUZX6IO.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
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  base_generator_untyped_default
3
3
  } from "../../chunk-34LSWMWV.mjs";
4
- import "../../chunk-IPWUJVZZ.mjs";
4
+ import "../../chunk-6TYMSSXV.mjs";
5
5
  export {
6
6
  base_generator_untyped_default as default
7
7
  };
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../chunk-7AN4JMFC.mjs";
4
4
  import "../../chunk-DGC5L3Z7.mjs";
5
- import "../../chunk-IPWUJVZZ.mjs";
5
+ import "../../chunk-6TYMSSXV.mjs";
6
6
  export {
7
7
  cargo_base_executor_untyped_default as default
8
8
  };
@@ -33,7 +33,7 @@ import "../../chunk-C26A6BXG.mjs";
33
33
  import {
34
34
  base_generator_untyped_default
35
35
  } from "../../chunk-34LSWMWV.mjs";
36
- import "../../chunk-IPWUJVZZ.mjs";
36
+ import "../../chunk-6TYMSSXV.mjs";
37
37
  export {
38
38
  base_executor_untyped_default as baseExecutorSchema,
39
39
  base_generator_untyped_default as baseGeneratorSchema,
@@ -2,7 +2,7 @@ import {
2
2
  typescript_build_executor_untyped_default
3
3
  } from "../../chunk-MXVEXRT2.mjs";
4
4
  import "../../chunk-DGC5L3Z7.mjs";
5
- import "../../chunk-IPWUJVZZ.mjs";
5
+ import "../../chunk-6TYMSSXV.mjs";
6
6
  export {
7
7
  typescript_build_executor_untyped_default as default
8
8
  };
@@ -2,7 +2,7 @@ import {
2
2
  typescript_library_generator_untyped_default
3
3
  } from "../../chunk-SW2E5MQJ.mjs";
4
4
  import "../../chunk-34LSWMWV.mjs";
5
- import "../../chunk-IPWUJVZZ.mjs";
5
+ import "../../chunk-6TYMSSXV.mjs";
6
6
  export {
7
7
  typescript_library_generator_untyped_default as default
8
8
  };
@@ -9,7 +9,7 @@ import "../../../chunk-NOTQLVZP.mjs";
9
9
  import "../../../chunk-V44DYGWX.mjs";
10
10
  import "../../../chunk-VGJEUOUN.mjs";
11
11
  import "../../../chunk-C26A6BXG.mjs";
12
- import "../../../chunk-IPWUJVZZ.mjs";
12
+ import "../../../chunk-6TYMSSXV.mjs";
13
13
  export {
14
14
  cargoBuildExecutor,
15
15
  executor_default as default
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../../chunk-7AN4JMFC.mjs";
4
4
  import "../../../chunk-DGC5L3Z7.mjs";
5
- import "../../../chunk-IPWUJVZZ.mjs";
5
+ import "../../../chunk-6TYMSSXV.mjs";
6
6
 
7
7
  // src/executors/cargo-build/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -9,7 +9,7 @@ import "../../../chunk-NOTQLVZP.mjs";
9
9
  import "../../../chunk-V44DYGWX.mjs";
10
10
  import "../../../chunk-VGJEUOUN.mjs";
11
11
  import "../../../chunk-C26A6BXG.mjs";
12
- import "../../../chunk-IPWUJVZZ.mjs";
12
+ import "../../../chunk-6TYMSSXV.mjs";
13
13
  export {
14
14
  cargoCheckExecutor,
15
15
  executor_default as default
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../../chunk-7AN4JMFC.mjs";
4
4
  import "../../../chunk-DGC5L3Z7.mjs";
5
- import "../../../chunk-IPWUJVZZ.mjs";
5
+ import "../../../chunk-6TYMSSXV.mjs";
6
6
 
7
7
  // src/executors/cargo-check/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -9,7 +9,7 @@ import "../../../chunk-NOTQLVZP.mjs";
9
9
  import "../../../chunk-V44DYGWX.mjs";
10
10
  import "../../../chunk-VGJEUOUN.mjs";
11
11
  import "../../../chunk-C26A6BXG.mjs";
12
- import "../../../chunk-IPWUJVZZ.mjs";
12
+ import "../../../chunk-6TYMSSXV.mjs";
13
13
  export {
14
14
  cargoClippyExecutor,
15
15
  executor_default as default
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../../chunk-7AN4JMFC.mjs";
4
4
  import "../../../chunk-DGC5L3Z7.mjs";
5
- import "../../../chunk-IPWUJVZZ.mjs";
5
+ import "../../../chunk-6TYMSSXV.mjs";
6
6
 
7
7
  // src/executors/cargo-clippy/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -9,7 +9,7 @@ import "../../../chunk-NOTQLVZP.mjs";
9
9
  import "../../../chunk-V44DYGWX.mjs";
10
10
  import "../../../chunk-VGJEUOUN.mjs";
11
11
  import "../../../chunk-C26A6BXG.mjs";
12
- import "../../../chunk-IPWUJVZZ.mjs";
12
+ import "../../../chunk-6TYMSSXV.mjs";
13
13
  export {
14
14
  cargoDocExecutor,
15
15
  executor_default as default
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../../chunk-7AN4JMFC.mjs";
4
4
  import "../../../chunk-DGC5L3Z7.mjs";
5
- import "../../../chunk-IPWUJVZZ.mjs";
5
+ import "../../../chunk-6TYMSSXV.mjs";
6
6
 
7
7
  // src/executors/cargo-doc/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -9,7 +9,7 @@ import "../../../chunk-NOTQLVZP.mjs";
9
9
  import "../../../chunk-V44DYGWX.mjs";
10
10
  import "../../../chunk-VGJEUOUN.mjs";
11
11
  import "../../../chunk-C26A6BXG.mjs";
12
- import "../../../chunk-IPWUJVZZ.mjs";
12
+ import "../../../chunk-6TYMSSXV.mjs";
13
13
  export {
14
14
  cargoFormatExecutor,
15
15
  executor_default as default
@@ -2,7 +2,7 @@ import {
2
2
  cargo_base_executor_untyped_default
3
3
  } from "../../../chunk-7AN4JMFC.mjs";
4
4
  import "../../../chunk-DGC5L3Z7.mjs";
5
- import "../../../chunk-IPWUJVZZ.mjs";
5
+ import "../../../chunk-6TYMSSXV.mjs";
6
6
 
7
7
  // src/executors/cargo-format/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";