@storm-software/workspace-tools 1.296.18 → 1.296.19

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 (147) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-27VV54AU.mjs +31 -0
  3. package/dist/chunk-2FWYS4LO.mjs +524 -0
  4. package/dist/{chunk-VZW75NWX.mjs → chunk-374AWLUE.mjs} +1 -1
  5. package/dist/chunk-3VN2GWX7.js +250 -0
  6. package/dist/chunk-4QZG36UZ.js +524 -0
  7. package/dist/{chunk-XIJ6Y5PY.mjs → chunk-4XFDXLL5.mjs} +1 -1
  8. package/dist/{chunk-TSQI7Z3D.mjs → chunk-5SX7BBOU.mjs} +0 -1
  9. package/dist/chunk-AD2DJUS6.js +93 -0
  10. package/dist/chunk-AZIYZ7G2.mjs +41 -0
  11. package/dist/chunk-B6CXZA7K.mjs +32 -0
  12. package/dist/chunk-D6XEM3XX.mjs +93 -0
  13. package/dist/chunk-DSUFN6ZC.mjs +253 -0
  14. package/dist/chunk-E5RTBBOT.mjs +32 -0
  15. package/dist/chunk-EC34LBD2.mjs +128 -0
  16. package/dist/chunk-FE7ZULOD.js +32 -0
  17. package/dist/{chunk-B2AJRGYN.mjs → chunk-HEEYGPP2.mjs} +1 -1
  18. package/dist/chunk-I2LXWNCS.js +41 -0
  19. package/dist/chunk-JEPLNTO7.js +79 -0
  20. package/dist/chunk-K6ADTQ4I.js +32 -0
  21. package/dist/chunk-KILRQ3CE.js +32 -0
  22. package/dist/chunk-O5EFCUR2.js +31 -0
  23. package/dist/chunk-OZRIT35E.mjs +82 -0
  24. package/dist/{chunk-II7J52FS.js → chunk-PEO7Z6CZ.js} +0 -1
  25. package/dist/{chunk-ZS6ZECJY.mjs → chunk-PIKWPSLP.mjs} +1 -1
  26. package/dist/{chunk-Y56KCTJM.mjs → chunk-QEWWRSPX.mjs} +1 -1
  27. package/dist/chunk-WIKTNOO2.js +128 -0
  28. package/dist/chunk-WNGTBFG5.mjs +32 -0
  29. package/dist/executors.js +2 -2
  30. package/dist/executors.mjs +2 -2
  31. package/dist/{generator-BKKfRfw5.d.mts → generator-9L9b-msK.d.mts} +1 -1
  32. package/dist/{generator-DX2foast.d.ts → generator-BT5Kf5x0.d.ts} +1 -1
  33. package/dist/{generator-DVJjzR9Q.d.mts → generator-BvhmWt7B.d.mts} +1 -1
  34. package/dist/{generator-DN9Th4ZG.d.ts → generator-C9QMvagl.d.ts} +1 -1
  35. package/dist/{generator-rIlu4Sq2.d.mts → generator-CkT060vy.d.mts} +1 -1
  36. package/dist/{generator-CPAEsIX9.d.ts → generator-Czm2JkrK.d.ts} +1 -1
  37. package/dist/{generator-Ce5Jjv19.d.mts → generator-DIEJD40Q.d.mts} +1 -1
  38. package/dist/{generator-B9nl4zZh.d.mts → generator-DdPUFIRV.d.mts} +1 -1
  39. package/dist/{generator-CKzlyVl8.d.ts → generator-DwHI-Bxg.d.ts} +1 -1
  40. package/dist/{generator-DMnwA7AM.d.ts → generator-GND3rM-I.d.ts} +1 -1
  41. package/dist/generators.d.mts +6 -6
  42. package/dist/generators.d.ts +6 -6
  43. package/dist/generators.mjs +5 -5
  44. package/dist/index.d.mts +6 -6
  45. package/dist/index.d.ts +6 -6
  46. package/dist/index.js +2 -2
  47. package/dist/index.mjs +6 -6
  48. package/dist/src/base/base-executor.d.mts +1 -1
  49. package/dist/src/base/base-executor.d.ts +1 -1
  50. package/dist/src/base/base-executor.mjs +1 -1
  51. package/dist/src/base/base-executor.untyped.mjs +1 -1
  52. package/dist/src/base/base-generator.d.mts +1 -1
  53. package/dist/src/base/base-generator.d.ts +1 -1
  54. package/dist/src/base/base-generator.mjs +1 -1
  55. package/dist/src/base/base-generator.untyped.mjs +1 -1
  56. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  57. package/dist/src/base/index.d.mts +1 -1
  58. package/dist/src/base/index.d.ts +1 -1
  59. package/dist/src/base/index.mjs +1 -1
  60. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  61. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  62. package/dist/src/executors/cargo-build/executor.mjs +1 -1
  63. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  64. package/dist/src/executors/cargo-check/executor.mjs +1 -1
  65. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  66. package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
  67. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  68. package/dist/src/executors/cargo-doc/executor.mjs +1 -1
  69. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  70. package/dist/src/executors/cargo-format/executor.mjs +1 -1
  71. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  72. package/dist/src/executors/cargo-publish/executor.mjs +1 -1
  73. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  74. package/dist/src/executors/clean-package/executor.mjs +1 -1
  75. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  76. package/dist/src/executors/esbuild/executor.mjs +1 -1
  77. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  78. package/dist/src/executors/napi/executor.mjs +1 -1
  79. package/dist/src/executors/napi/untyped.mjs +1 -1
  80. package/dist/src/executors/npm-publish/executor.mjs +1 -1
  81. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  82. package/dist/src/executors/size-limit/executor.mjs +1 -1
  83. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  84. package/dist/src/executors/tsdown/executor.js +2 -2
  85. package/dist/src/executors/tsdown/executor.mjs +2 -2
  86. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  87. package/dist/src/executors/typia/executor.mjs +1 -1
  88. package/dist/src/executors/typia/untyped.mjs +1 -1
  89. package/dist/src/executors/unbuild/executor.mjs +1 -1
  90. package/dist/src/executors/unbuild/untyped.mjs +1 -1
  91. package/dist/src/generators/browser-library/generator.d.mts +2 -2
  92. package/dist/src/generators/browser-library/generator.d.ts +2 -2
  93. package/dist/src/generators/browser-library/generator.mjs +2 -2
  94. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  95. package/dist/src/generators/config-schema/generator.d.mts +2 -2
  96. package/dist/src/generators/config-schema/generator.d.ts +2 -2
  97. package/dist/src/generators/config-schema/generator.mjs +1 -1
  98. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  99. package/dist/src/generators/init/init.mjs +1 -1
  100. package/dist/src/generators/init/untyped.mjs +1 -1
  101. package/dist/src/generators/neutral-library/generator.d.mts +2 -2
  102. package/dist/src/generators/neutral-library/generator.d.ts +2 -2
  103. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  104. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  105. package/dist/src/generators/node-library/generator.d.mts +2 -2
  106. package/dist/src/generators/node-library/generator.d.ts +2 -2
  107. package/dist/src/generators/node-library/generator.mjs +2 -2
  108. package/dist/src/generators/node-library/untyped.mjs +1 -1
  109. package/dist/src/generators/preset/generator.d.mts +2 -2
  110. package/dist/src/generators/preset/generator.d.ts +2 -2
  111. package/dist/src/generators/preset/generator.mjs +2 -2
  112. package/dist/src/generators/preset/untyped.mjs +1 -1
  113. package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
  114. package/dist/src/plugins/rust/index.mjs +1 -1
  115. package/dist/src/plugins/typescript/index.d.mts +1 -1
  116. package/dist/src/plugins/typescript/index.d.ts +1 -1
  117. package/dist/src/plugins/typescript/index.mjs +1 -1
  118. package/dist/src/plugins/typescript/tsdown.d.mts +1 -1
  119. package/dist/src/plugins/typescript/tsdown.d.ts +1 -1
  120. package/dist/src/plugins/typescript/tsdown.mjs +1 -1
  121. package/dist/src/plugins/typescript/tsup.d.mts +1 -1
  122. package/dist/src/plugins/typescript/tsup.d.ts +1 -1
  123. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  124. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  125. package/dist/src/release/index.mjs +1 -1
  126. package/dist/src/release/js-version-actions.mjs +1 -1
  127. package/dist/src/release/rust-version-actions.mjs +1 -1
  128. package/dist/src/types.d.mts +1 -1
  129. package/dist/src/types.d.ts +1 -1
  130. package/dist/src/types.mjs +1 -1
  131. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  132. package/dist/src/utils/cargo.mjs +1 -1
  133. package/dist/src/utils/create-cli-options.mjs +1 -1
  134. package/dist/src/utils/get-project-configurations.mjs +1 -1
  135. package/dist/src/utils/github.mjs +1 -1
  136. package/dist/src/utils/index.mjs +1 -1
  137. package/dist/src/utils/lock-file.mjs +1 -1
  138. package/dist/src/utils/nx-json.mjs +1 -1
  139. package/dist/src/utils/package-helpers.mjs +1 -1
  140. package/dist/src/utils/plugin-helpers.mjs +1 -1
  141. package/dist/src/utils/project-tags.mjs +1 -1
  142. package/dist/src/utils/registry-helpers.mjs +1 -1
  143. package/dist/src/utils/typia-transform.mjs +1 -1
  144. package/dist/src/utils/versions.mjs +1 -1
  145. package/dist/{types-DLXcfy35.d.mts → types-BlCH22NF.d.mts} +1 -1
  146. package/dist/{types-Bvfw-xMk.d.ts → types-DIIZf_cX.d.ts} +1 -1
  147. package/package.json +13 -13
@@ -0,0 +1,79 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+
4
+ var _chunk57OGFZNBjs = require('./chunk-57OGFZNB.js');
5
+
6
+
7
+ var _chunkZ4BX7YI2js = require('./chunk-Z4BX7YI2.js');
8
+
9
+
10
+ var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
11
+
12
+
13
+ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
14
+
15
+ // src/generators/node-library/generator.ts
16
+
17
+
18
+
19
+
20
+
21
+ var _devkit = require('@nx/devkit');
22
+ async function nodeLibraryGeneratorFn(tree, schema, config) {
23
+ const filesDir = _chunkCQDBLKPFjs.joinPaths.call(void 0,
24
+ __dirname,
25
+ "src",
26
+ "generators",
27
+ "node-library",
28
+ "files"
29
+ );
30
+ const tsLibraryGeneratorOptions = {
31
+ platform: "node",
32
+ devDependencies: {
33
+ "@types/node": _chunkSZWM7COVjs.typesNodeVersion
34
+ },
35
+ buildExecutor: "@storm-software/workspace-tools:unbuild",
36
+ ...schema,
37
+ directory: schema.directory,
38
+ description: schema.description
39
+ };
40
+ const options = await _chunk57OGFZNBjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
41
+ const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
42
+ _devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
43
+ ...schema,
44
+ dot: ".",
45
+ className,
46
+ name,
47
+ namespace: _nullishCoalesce(process.env.STORM_NAMESPACE, () => ( "storm-software")),
48
+ description: _nullishCoalesce(schema.description, () => ( "")),
49
+ propertyName,
50
+ js: !!options.js,
51
+ cliCommand: "nx",
52
+ strict: void 0,
53
+ tmpl: "",
54
+ offsetFromRoot: _devkit.offsetFromRoot.call(void 0, options.projectRoot),
55
+ buildable: options.bundler && options.bundler !== "none",
56
+ hasUnitTestRunner: options.unitTestRunner !== "none"
57
+ });
58
+ await _chunk57OGFZNBjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
59
+ await _devkit.formatFiles.call(void 0, tree);
60
+ return null;
61
+ }
62
+ var generator_default = _chunkZ4BX7YI2js.withRunGenerator.call(void 0,
63
+ "TypeScript Library Creator (NodeJs Platform)",
64
+ nodeLibraryGeneratorFn,
65
+ {
66
+ hooks: {
67
+ applyDefaultOptions: (options) => {
68
+ options.description ??= "A library used by Storm Software to support NodeJs applications";
69
+ options.platform ??= "node";
70
+ return options;
71
+ }
72
+ }
73
+ }
74
+ );
75
+
76
+
77
+
78
+
79
+ exports.nodeLibraryGeneratorFn = nodeLibraryGeneratorFn; exports.generator_default = generator_default;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
4
+
5
+
6
+
7
+ var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
8
+
9
+ // src/executors/cargo-format/executor.ts
10
+ async function cargoFormatExecutor(options, context) {
11
+ const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "fmt", options, context);
12
+ return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
15
+ "Cargo - Format",
16
+ cargoFormatExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoFormatExecutor = cargoFormatExecutor; exports.executor_default = executor_default;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
4
+
5
+
6
+
7
+ var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
8
+
9
+ // src/executors/cargo-build/executor.ts
10
+ async function cargoBuildExecutor(options, context) {
11
+ const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "build", options, context);
12
+ return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
15
+ "Cargo - Build",
16
+ cargoBuildExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoBuildExecutor = cargoBuildExecutor; exports.executor_default = executor_default;
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
4
+
5
+
6
+
7
+ var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
8
+
9
+ // src/executors/cargo-check/executor.ts
10
+ async function cargoCheckExecutor(options, context) {
11
+ const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "check", options, context);
12
+ return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
13
+ }
14
+ var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
15
+ "Cargo - Check",
16
+ cargoCheckExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.toolchain ??= "stable";
22
+ return options;
23
+ }
24
+ }
25
+ }
26
+ );
27
+
28
+
29
+
30
+
31
+ exports.cargoCheckExecutor = cargoCheckExecutor; exports.executor_default = executor_default;
@@ -0,0 +1,82 @@
1
+ import {
2
+ normalizeOptions,
3
+ typeScriptLibraryGeneratorFn
4
+ } from "./chunk-4VWDSVQJ.mjs";
5
+ import {
6
+ withRunGenerator
7
+ } from "./chunk-K4FLM47P.mjs";
8
+ import {
9
+ typesNodeVersion
10
+ } from "./chunk-QC5ON3X4.mjs";
11
+ import {
12
+ joinPaths
13
+ } from "./chunk-TBW5MCN6.mjs";
14
+ import {
15
+ __dirname
16
+ } from "./chunk-HEEYGPP2.mjs";
17
+
18
+ // src/generators/node-library/generator.ts
19
+ import {
20
+ formatFiles,
21
+ generateFiles,
22
+ names,
23
+ offsetFromRoot
24
+ } from "@nx/devkit";
25
+ async function nodeLibraryGeneratorFn(tree, schema, config) {
26
+ const filesDir = joinPaths(
27
+ __dirname,
28
+ "src",
29
+ "generators",
30
+ "node-library",
31
+ "files"
32
+ );
33
+ const tsLibraryGeneratorOptions = {
34
+ platform: "node",
35
+ devDependencies: {
36
+ "@types/node": typesNodeVersion
37
+ },
38
+ buildExecutor: "@storm-software/workspace-tools:unbuild",
39
+ ...schema,
40
+ directory: schema.directory,
41
+ description: schema.description
42
+ };
43
+ const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
44
+ const { className, name, propertyName } = names(options.name);
45
+ generateFiles(tree, filesDir, options.projectRoot, {
46
+ ...schema,
47
+ dot: ".",
48
+ className,
49
+ name,
50
+ namespace: process.env.STORM_NAMESPACE ?? "storm-software",
51
+ description: schema.description ?? "",
52
+ propertyName,
53
+ js: !!options.js,
54
+ cliCommand: "nx",
55
+ strict: void 0,
56
+ tmpl: "",
57
+ offsetFromRoot: offsetFromRoot(options.projectRoot),
58
+ buildable: options.bundler && options.bundler !== "none",
59
+ hasUnitTestRunner: options.unitTestRunner !== "none"
60
+ });
61
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
62
+ await formatFiles(tree);
63
+ return null;
64
+ }
65
+ var generator_default = withRunGenerator(
66
+ "TypeScript Library Creator (NodeJs Platform)",
67
+ nodeLibraryGeneratorFn,
68
+ {
69
+ hooks: {
70
+ applyDefaultOptions: (options) => {
71
+ options.description ??= "A library used by Storm Software to support NodeJs applications";
72
+ options.platform ??= "node";
73
+ return options;
74
+ }
75
+ }
76
+ }
77
+ );
78
+
79
+ export {
80
+ nodeLibraryGeneratorFn,
81
+ generator_default
82
+ };
@@ -126,7 +126,6 @@ var resolveOptions = async (userOptions) => {
126
126
  assets: [],
127
127
  dts: true,
128
128
  shims: true,
129
- silent: !debug,
130
129
  logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
131
130
  sourcemap: debug ? "inline" : false,
132
131
  clean: false,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-TBW5MCN6.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-B2AJRGYN.mjs";
13
+ } from "./chunk-HEEYGPP2.mjs";
14
14
 
15
15
  // src/generators/neutral-library/generator.ts
16
16
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-TBW5MCN6.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-B2AJRGYN.mjs";
13
+ } from "./chunk-HEEYGPP2.mjs";
14
14
 
15
15
  // src/generators/browser-library/generator.ts
16
16
  import {
@@ -0,0 +1,128 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkULCE72HVjs = require('./chunk-ULCE72HV.js');
4
+
5
+
6
+ var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
7
+
8
+
9
+ var _chunkEO6EDFUNjs = require('./chunk-EO6EDFUN.js');
10
+
11
+
12
+
13
+
14
+
15
+ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
16
+
17
+ // src/executors/napi/executor.ts
18
+ var _jiti = require('jiti');
19
+ var _fileutils = require('nx/src/utils/fileutils');
20
+ async function napiExecutor(options, context, config) {
21
+ const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
22
+ fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
23
+ config.workspaceRoot,
24
+ config.directories.cache || "node_modules/.cache/storm",
25
+ "jiti"
26
+ ),
27
+ interopDefault: true
28
+ });
29
+ const { NapiCli } = await jiti.import(
30
+ jiti.esmResolve("@napi-rs/cli")
31
+ );
32
+ if (!_optionalChain([context, 'access', _ => _.projectGraph, 'optionalAccess', _2 => _2.nodes, 'access', _3 => _3[_nullishCoalesce(context.projectName, () => ( ""))]])) {
33
+ throw new Error(
34
+ "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."
35
+ );
36
+ }
37
+ const projectRoot = _optionalChain([context, 'access', _4 => _4.projectGraph, 'optionalAccess', _5 => _5.nodes, 'access', _6 => _6[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _7 => _7.data, 'access', _8 => _8.root]);
38
+ const packageJson = _chunkCQDBLKPFjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
39
+ if (!_fileutils.fileExists.call(void 0, packageJson)) {
40
+ throw new Error(`Could not find package.json at ${packageJson}`);
41
+ }
42
+ const napi = new NapiCli();
43
+ const normalizedOptions = { ...options };
44
+ const metadata = _chunk32KQVUCFjs.cargoMetadata.call(void 0, );
45
+ normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _9 => _9.target_directory]) || _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
46
+ normalizedOptions.outputDir = options.outputPath;
47
+ normalizedOptions.packageJsonPath ??= packageJson;
48
+ if (options.cwd) {
49
+ normalizedOptions.cwd = _chunkCQDBLKPFjs.correctPaths.call(void 0, options.cwd);
50
+ } else {
51
+ const absoluteProjectRoot = _chunkCQDBLKPFjs.correctPaths.call(void 0,
52
+ _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot || ".")
53
+ );
54
+ normalizedOptions.cwd = absoluteProjectRoot;
55
+ if (normalizedOptions.outputDir) {
56
+ normalizedOptions.outputDir = _chunkCQDBLKPFjs.relative.call(void 0,
57
+ normalizedOptions.cwd,
58
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
59
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.outputDir) ? normalizedOptions.outputDir : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.outputDir)
60
+ )
61
+ );
62
+ }
63
+ if (normalizedOptions.packageJsonPath) {
64
+ normalizedOptions.packageJsonPath = _chunkCQDBLKPFjs.relative.call(void 0,
65
+ normalizedOptions.cwd,
66
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
67
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.packageJsonPath)
68
+ )
69
+ );
70
+ }
71
+ if (normalizedOptions.configPath) {
72
+ normalizedOptions.configPath = _chunkCQDBLKPFjs.relative.call(void 0,
73
+ normalizedOptions.cwd,
74
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
75
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.configPath) ? normalizedOptions.configPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.configPath)
76
+ )
77
+ );
78
+ }
79
+ if (normalizedOptions.manifestPath) {
80
+ normalizedOptions.manifestPath = _chunkCQDBLKPFjs.relative.call(void 0,
81
+ normalizedOptions.cwd,
82
+ _chunkCQDBLKPFjs.correctPaths.call(void 0,
83
+ _chunkCQDBLKPFjs.isAbsolute.call(void 0, normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : _chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, normalizedOptions.manifestPath)
84
+ )
85
+ );
86
+ }
87
+ }
88
+ if (process.env.VERCEL) {
89
+ return { success: true };
90
+ }
91
+ _chunkEO6EDFUNjs.writeDebug.call(void 0,
92
+ `Normalized Napi Options:
93
+ packageJsonPath: ${normalizedOptions.packageJsonPath}
94
+ outputDir: ${normalizedOptions.outputDir}
95
+ targetDir: ${normalizedOptions.targetDir}
96
+ manifestPath: ${normalizedOptions.manifestPath}
97
+ configPath: ${normalizedOptions.configPath}
98
+ cwd: ${normalizedOptions.cwd}`,
99
+ config
100
+ );
101
+ const { task } = await napi.build(normalizedOptions);
102
+ return { success: true, terminalOutput: await task };
103
+ }
104
+ var executor_default = _chunkULCE72HVjs.withRunExecutor.call(void 0,
105
+ "Napi - Build Bindings",
106
+ napiExecutor,
107
+ {
108
+ skipReadingConfig: false,
109
+ hooks: {
110
+ applyDefaultOptions: (options) => {
111
+ options.outputPath ??= "{sourceRoot}";
112
+ options.toolchain ??= "stable";
113
+ options.dtsCache ??= true;
114
+ options.platform ??= true;
115
+ options.constEnum ??= false;
116
+ options.verbose ??= false;
117
+ options.jsBinding ??= "binding.js";
118
+ options.dts ??= "binding.d.ts";
119
+ return options;
120
+ }
121
+ }
122
+ }
123
+ );
124
+
125
+
126
+
127
+
128
+ exports.napiExecutor = napiExecutor; exports.executor_default = executor_default;
@@ -0,0 +1,32 @@
1
+ import {
2
+ withRunExecutor
3
+ } from "./chunk-QJ74HYMK.mjs";
4
+ import {
5
+ buildCargoCommand,
6
+ cargoCommand
7
+ } from "./chunk-GKLFEOKK.mjs";
8
+
9
+ // src/executors/cargo-format/executor.ts
10
+ async function cargoFormatExecutor(options, context) {
11
+ const command = buildCargoCommand("fmt", options, context);
12
+ return await cargoCommand(context.root, ...command);
13
+ }
14
+ var executor_default = withRunExecutor(
15
+ "Cargo - Format",
16
+ cargoFormatExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/{projectRoot}/target";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+ export {
30
+ cargoFormatExecutor,
31
+ executor_default
32
+ };
package/dist/executors.js CHANGED
@@ -4,7 +4,7 @@
4
4
  var _chunkJONZUK7Ijs = require('./chunk-JONZUK7I.js');
5
5
 
6
6
 
7
- var _chunkII7J52FSjs = require('./chunk-II7J52FS.js');
7
+ var _chunkPEO7Z6CZjs = require('./chunk-PEO7Z6CZ.js');
8
8
 
9
9
 
10
10
  var _chunkKA2NWPQ7js = require('./chunk-KA2NWPQ7.js');
@@ -64,4 +64,4 @@ require('./chunk-CQDBLKPF.js');
64
64
 
65
65
 
66
66
 
67
- exports.LARGE_BUFFER = _chunk5TCWSV4Vjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkR2Y7NACDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkK4W6QXUXjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkT6WD65QQjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunk6RAUDACYjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkE6GFHHBRjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunk6INCVYHUjs.esbuildExecutorFn; exports.getRegistryVersion = _chunk6MLA6B6Djs.getRegistryVersion; exports.napiExecutor = _chunkNKYIUZLGjs.napiExecutor; exports.sizeLimitExecutorFn = _chunkJONZUK7Ijs.sizeLimitExecutorFn; exports.tsdownExecutorFn = _chunkII7J52FSjs.tsdownExecutorFn; exports.typiaExecutorFn = _chunkKA2NWPQ7js.typiaExecutorFn; exports.unbuildExecutorFn = _chunkMWLHM557js.unbuildExecutorFn;
67
+ exports.LARGE_BUFFER = _chunk5TCWSV4Vjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkR2Y7NACDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkK4W6QXUXjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkT6WD65QQjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunk6RAUDACYjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkE6GFHHBRjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunk6INCVYHUjs.esbuildExecutorFn; exports.getRegistryVersion = _chunk6MLA6B6Djs.getRegistryVersion; exports.napiExecutor = _chunkNKYIUZLGjs.napiExecutor; exports.sizeLimitExecutorFn = _chunkJONZUK7Ijs.sizeLimitExecutorFn; exports.tsdownExecutorFn = _chunkPEO7Z6CZjs.tsdownExecutorFn; exports.typiaExecutorFn = _chunkKA2NWPQ7js.typiaExecutorFn; exports.unbuildExecutorFn = _chunkMWLHM557js.unbuildExecutorFn;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-LNXSWBDU.mjs";
5
5
  import {
6
6
  tsdownExecutorFn
7
- } from "./chunk-TSQI7Z3D.mjs";
7
+ } from "./chunk-5SX7BBOU.mjs";
8
8
  import {
9
9
  typiaExecutorFn
10
10
  } from "./chunk-C46AMBI7.mjs";
@@ -50,7 +50,7 @@ import "./chunk-R5RFMU22.mjs";
50
50
  import "./chunk-LOPJYZWJ.mjs";
51
51
  import "./chunk-3J2CP54B.mjs";
52
52
  import "./chunk-TBW5MCN6.mjs";
53
- import "./chunk-B2AJRGYN.mjs";
53
+ import "./chunk-HEEYGPP2.mjs";
54
54
  export {
55
55
  LARGE_BUFFER,
56
56
  cargoBuildExecutor,
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-DLXcfy35.mjs';
1
+ import { c as BaseGeneratorResult } from './types-BlCH22NF.mjs';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-Bvfw-xMk.js';
1
+ import { c as BaseGeneratorResult } from './types-DIIZf_cX.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.js';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-DLXcfy35.mjs';
1
+ import { c as BaseGeneratorResult } from './types-BlCH22NF.mjs';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.mjs';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-Bvfw-xMk.js';
1
+ import { c as BaseGeneratorResult } from './types-DIIZf_cX.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.js';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-DLXcfy35.mjs';
1
+ import { c as BaseGeneratorResult } from './types-BlCH22NF.mjs';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.mjs';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-Bvfw-xMk.js';
1
+ import { c as BaseGeneratorResult } from './types-DIIZf_cX.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-DLXcfy35.mjs';
1
+ import { c as BaseGeneratorResult } from './types-BlCH22NF.mjs';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.mjs';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-DLXcfy35.mjs';
1
+ import { c as BaseGeneratorResult } from './types-BlCH22NF.mjs';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.mjs';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-Bvfw-xMk.js';
1
+ import { c as BaseGeneratorResult } from './types-DIIZf_cX.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.js';
@@ -1,4 +1,4 @@
1
- import { d as BaseGeneratorResult } from './types-Bvfw-xMk.js';
1
+ import { c as BaseGeneratorResult } from './types-DIIZf_cX.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4
  import { S as StormWorkspaceConfig } from './types-Dug-2iKz.js';
@@ -1,10 +1,10 @@
1
- export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-Ce5Jjv19.mjs';
2
- export { C as ConfigSchemaGeneratorSchema, M as ModuleSchema, c as configSchemaGeneratorFn } from './generator-B9nl4zZh.mjs';
1
+ export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-DIEJD40Q.mjs';
2
+ export { C as ConfigSchemaGeneratorSchema, M as ModuleSchema, c as configSchemaGeneratorFn } from './generator-DdPUFIRV.mjs';
3
3
  export { I as InitGeneratorSchema, i as initGenerator } from './init-6Nmtv8d5.mjs';
4
- export { N as NeutralLibraryGeneratorSchema, n as neutralLibraryGeneratorFn } from './generator-rIlu4Sq2.mjs';
5
- export { N as NodeLibraryGeneratorSchema, n as nodeLibraryGeneratorFn } from './generator-DVJjzR9Q.mjs';
6
- export { P as PresetGeneratorSchema, p as presetGeneratorFn } from './generator-BKKfRfw5.mjs';
7
- import './types-DLXcfy35.mjs';
4
+ export { N as NeutralLibraryGeneratorSchema, n as neutralLibraryGeneratorFn } from './generator-CkT060vy.mjs';
5
+ export { N as NodeLibraryGeneratorSchema, n as nodeLibraryGeneratorFn } from './generator-BvhmWt7B.mjs';
6
+ export { P as PresetGeneratorSchema, p as presetGeneratorFn } from './generator-9L9b-msK.mjs';
7
+ import './types-BlCH22NF.mjs';
8
8
  import './types-Dug-2iKz.mjs';
9
9
  import 'zod';
10
10
  import 'zod/v4/mini';
@@ -1,10 +1,10 @@
1
- export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-DX2foast.js';
2
- export { C as ConfigSchemaGeneratorSchema, M as ModuleSchema, c as configSchemaGeneratorFn } from './generator-CKzlyVl8.js';
1
+ export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-BT5Kf5x0.js';
2
+ export { C as ConfigSchemaGeneratorSchema, M as ModuleSchema, c as configSchemaGeneratorFn } from './generator-DwHI-Bxg.js';
3
3
  export { I as InitGeneratorSchema, i as initGenerator } from './init-6Nmtv8d5.js';
4
- export { N as NeutralLibraryGeneratorSchema, n as neutralLibraryGeneratorFn } from './generator-DMnwA7AM.js';
5
- export { N as NodeLibraryGeneratorSchema, n as nodeLibraryGeneratorFn } from './generator-DN9Th4ZG.js';
6
- export { P as PresetGeneratorSchema, p as presetGeneratorFn } from './generator-CPAEsIX9.js';
7
- import './types-Bvfw-xMk.js';
4
+ export { N as NeutralLibraryGeneratorSchema, n as neutralLibraryGeneratorFn } from './generator-GND3rM-I.js';
5
+ export { N as NodeLibraryGeneratorSchema, n as nodeLibraryGeneratorFn } from './generator-C9QMvagl.js';
6
+ export { P as PresetGeneratorSchema, p as presetGeneratorFn } from './generator-Czm2JkrK.js';
7
+ import './types-DIIZf_cX.js';
8
8
  import './types-Dug-2iKz.js';
9
9
  import 'zod';
10
10
  import 'zod/v4/mini';
@@ -1,13 +1,13 @@
1
1
  import "./chunk-SAIDGUHG.mjs";
2
2
  import {
3
3
  nodeLibraryGeneratorFn
4
- } from "./chunk-XIJ6Y5PY.mjs";
4
+ } from "./chunk-4XFDXLL5.mjs";
5
5
  import {
6
6
  presetGeneratorFn
7
- } from "./chunk-VZW75NWX.mjs";
7
+ } from "./chunk-374AWLUE.mjs";
8
8
  import {
9
9
  browserLibraryGeneratorFn
10
- } from "./chunk-Y56KCTJM.mjs";
10
+ } from "./chunk-QEWWRSPX.mjs";
11
11
  import {
12
12
  configSchemaGeneratorFn
13
13
  } from "./chunk-LTAD7HMO.mjs";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-437WGH2M.mjs";
17
17
  import {
18
18
  neutralLibraryGeneratorFn
19
- } from "./chunk-ZS6ZECJY.mjs";
19
+ } from "./chunk-PIKWPSLP.mjs";
20
20
  import "./chunk-4VWDSVQJ.mjs";
21
21
  import "./chunk-QC5ON3X4.mjs";
22
22
  import "./chunk-2GQSCZ3J.mjs";
@@ -26,7 +26,7 @@ import "./chunk-R5RFMU22.mjs";
26
26
  import "./chunk-LOPJYZWJ.mjs";
27
27
  import "./chunk-3J2CP54B.mjs";
28
28
  import "./chunk-TBW5MCN6.mjs";
29
- import "./chunk-B2AJRGYN.mjs";
29
+ import "./chunk-HEEYGPP2.mjs";
30
30
  export {
31
31
  browserLibraryGeneratorFn,
32
32
  configSchemaGeneratorFn,