@storm-software/workspace-tools 1.296.14 → 1.296.16

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 (104) hide show
  1. package/config/base.json +89 -198
  2. package/config/recommended.json +102 -203
  3. package/dist/{chunk-XFXMVB67.js → chunk-6INCVYHU.js} +7 -7
  4. package/dist/{chunk-CW7U7TSJ.mjs → chunk-AYAY4VYN.mjs} +1 -1
  5. package/dist/{chunk-C3NYIWL4.mjs → chunk-B2AJRGYN.mjs} +1 -1
  6. package/dist/{chunk-R6AXANVR.mjs → chunk-CQHYGSFK.mjs} +1 -1
  7. package/dist/chunk-DH4FAZZB.js +268 -0
  8. package/dist/{chunk-737EDGVV.js → chunk-EWAOPOGD.js} +2 -2
  9. package/dist/{chunk-HGDG36KQ.js → chunk-II7J52FS.js} +8 -8
  10. package/dist/{chunk-MVTZC3MT.mjs → chunk-TSQI7Z3D.mjs} +1 -1
  11. package/dist/chunk-TTKVHG3F.mjs +268 -0
  12. package/dist/{chunk-7N34DLDK.mjs → chunk-VZW75NWX.mjs} +1 -1
  13. package/dist/{chunk-RAHDX6VX.mjs → chunk-XIJ6Y5PY.mjs} +1 -1
  14. package/dist/{chunk-KUK2HDLM.mjs → chunk-Y56KCTJM.mjs} +1 -1
  15. package/dist/{chunk-4BFBFTDK.mjs → chunk-ZS6ZECJY.mjs} +1 -1
  16. package/dist/executors.js +4 -4
  17. package/dist/executors.mjs +4 -4
  18. package/dist/generators.mjs +5 -5
  19. package/dist/index.js +5 -5
  20. package/dist/index.mjs +9 -9
  21. package/dist/src/base/base-executor.mjs +1 -1
  22. package/dist/src/base/base-executor.untyped.mjs +1 -1
  23. package/dist/src/base/base-generator.mjs +1 -1
  24. package/dist/src/base/base-generator.untyped.mjs +1 -1
  25. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  26. package/dist/src/base/index.mjs +1 -1
  27. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  28. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  29. package/dist/src/executors/cargo-build/executor.mjs +1 -1
  30. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  31. package/dist/src/executors/cargo-check/executor.mjs +1 -1
  32. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  33. package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
  34. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  35. package/dist/src/executors/cargo-doc/executor.mjs +1 -1
  36. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  37. package/dist/src/executors/cargo-format/executor.mjs +1 -1
  38. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  39. package/dist/src/executors/cargo-publish/executor.mjs +1 -1
  40. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  41. package/dist/src/executors/clean-package/executor.mjs +1 -1
  42. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  43. package/dist/src/executors/esbuild/executor.js +3 -3
  44. package/dist/src/executors/esbuild/executor.mjs +3 -3
  45. package/dist/src/executors/esbuild/untyped.mjs +1 -1
  46. package/dist/src/executors/napi/executor.mjs +1 -1
  47. package/dist/src/executors/napi/untyped.mjs +1 -1
  48. package/dist/src/executors/npm-publish/executor.mjs +1 -1
  49. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  50. package/dist/src/executors/size-limit/executor.mjs +1 -1
  51. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  52. package/dist/src/executors/tsdown/executor.js +3 -3
  53. package/dist/src/executors/tsdown/executor.mjs +3 -3
  54. package/dist/src/executors/tsdown/untyped.mjs +1 -1
  55. package/dist/src/executors/typia/executor.mjs +1 -1
  56. package/dist/src/executors/typia/untyped.mjs +1 -1
  57. package/dist/src/executors/unbuild/executor.mjs +1 -1
  58. package/dist/src/executors/unbuild/untyped.mjs +1 -1
  59. package/dist/src/generators/browser-library/generator.mjs +2 -2
  60. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  61. package/dist/src/generators/config-schema/generator.mjs +1 -1
  62. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  63. package/dist/src/generators/init/init.mjs +1 -1
  64. package/dist/src/generators/init/untyped.mjs +1 -1
  65. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  66. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  67. package/dist/src/generators/node-library/generator.mjs +2 -2
  68. package/dist/src/generators/node-library/untyped.mjs +1 -1
  69. package/dist/src/generators/preset/generator.mjs +2 -2
  70. package/dist/src/generators/preset/untyped.mjs +1 -1
  71. package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
  72. package/dist/src/plugins/rust/index.mjs +1 -1
  73. package/dist/src/plugins/typescript/index.d.mts +9 -0
  74. package/dist/src/plugins/typescript/index.d.ts +9 -0
  75. package/dist/src/plugins/typescript/index.js +76 -37
  76. package/dist/src/plugins/typescript/index.mjs +64 -25
  77. package/dist/src/plugins/typescript/tsdown.mjs +1 -1
  78. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  79. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  80. package/dist/src/release/index.mjs +1 -1
  81. package/dist/src/release/js-version-actions.mjs +1 -1
  82. package/dist/src/release/rust-version-actions.mjs +1 -1
  83. package/dist/src/types.mjs +1 -1
  84. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  85. package/dist/src/utils/cargo.mjs +1 -1
  86. package/dist/src/utils/create-cli-options.mjs +1 -1
  87. package/dist/src/utils/get-project-configurations.mjs +1 -1
  88. package/dist/src/utils/github.mjs +1 -1
  89. package/dist/src/utils/index.js +2 -2
  90. package/dist/src/utils/index.mjs +2 -2
  91. package/dist/src/utils/lock-file.mjs +1 -1
  92. package/dist/src/utils/nx-json.d.mts +13 -14
  93. package/dist/src/utils/nx-json.d.ts +13 -14
  94. package/dist/src/utils/nx-json.js +2 -2
  95. package/dist/src/utils/nx-json.mjs +2 -2
  96. package/dist/src/utils/package-helpers.mjs +1 -1
  97. package/dist/src/utils/plugin-helpers.mjs +1 -1
  98. package/dist/src/utils/project-tags.mjs +1 -1
  99. package/dist/src/utils/registry-helpers.mjs +1 -1
  100. package/dist/src/utils/typia-transform.mjs +1 -1
  101. package/dist/src/utils/versions.mjs +1 -1
  102. package/package.json +10 -10
  103. package/dist/chunk-4AKDRRML.js +0 -339
  104. package/dist/chunk-V5K2PDVY.mjs +0 -339
@@ -2,7 +2,7 @@ import {
2
2
  typescript_build_executor_untyped_default
3
3
  } from "../../../chunk-LZ3H2OH5.mjs";
4
4
  import "../../../chunk-ZCTECGQS.mjs";
5
- import "../../../chunk-C3NYIWL4.mjs";
5
+ import "../../../chunk-B2AJRGYN.mjs";
6
6
 
7
7
  // src/executors/unbuild/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  browserLibraryGeneratorFn,
3
3
  generator_default
4
- } from "../../../chunk-KUK2HDLM.mjs";
4
+ } from "../../../chunk-Y56KCTJM.mjs";
5
5
  import "../../../chunk-4VWDSVQJ.mjs";
6
6
  import "../../../chunk-QC5ON3X4.mjs";
7
7
  import "../../../chunk-2GQSCZ3J.mjs";
@@ -11,7 +11,7 @@ import "../../../chunk-R5RFMU22.mjs";
11
11
  import "../../../chunk-LOPJYZWJ.mjs";
12
12
  import "../../../chunk-3J2CP54B.mjs";
13
13
  import "../../../chunk-TBW5MCN6.mjs";
14
- import "../../../chunk-C3NYIWL4.mjs";
14
+ import "../../../chunk-B2AJRGYN.mjs";
15
15
  export {
16
16
  browserLibraryGeneratorFn,
17
17
  generator_default as default
@@ -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-C3NYIWL4.mjs";
5
+ import "../../../chunk-B2AJRGYN.mjs";
6
6
 
7
7
  // src/generators/browser-library/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -8,7 +8,7 @@ import "../../../chunk-R5RFMU22.mjs";
8
8
  import "../../../chunk-LOPJYZWJ.mjs";
9
9
  import "../../../chunk-3J2CP54B.mjs";
10
10
  import "../../../chunk-TBW5MCN6.mjs";
11
- import "../../../chunk-C3NYIWL4.mjs";
11
+ import "../../../chunk-B2AJRGYN.mjs";
12
12
  export {
13
13
  configSchemaGeneratorFn,
14
14
  generator_default as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  base_generator_untyped_default
3
3
  } from "../../../chunk-34LSWMWV.mjs";
4
- import "../../../chunk-C3NYIWL4.mjs";
4
+ import "../../../chunk-B2AJRGYN.mjs";
5
5
 
6
6
  // src/generators/config-schema/untyped.ts
7
7
  import { defineUntypedSchema } from "untyped";
@@ -2,7 +2,7 @@ import {
2
2
  initGenerator,
3
3
  init_default
4
4
  } from "../../../chunk-437WGH2M.mjs";
5
- import "../../../chunk-C3NYIWL4.mjs";
5
+ import "../../../chunk-B2AJRGYN.mjs";
6
6
  export {
7
7
  init_default as default,
8
8
  initGenerator
@@ -1,4 +1,4 @@
1
- import "../../../chunk-C3NYIWL4.mjs";
1
+ import "../../../chunk-B2AJRGYN.mjs";
2
2
 
3
3
  // src/generators/init/untyped.ts
4
4
  import { defineUntypedSchema } from "untyped";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generator_default,
3
3
  neutralLibraryGeneratorFn
4
- } from "../../../chunk-4BFBFTDK.mjs";
4
+ } from "../../../chunk-ZS6ZECJY.mjs";
5
5
  import "../../../chunk-4VWDSVQJ.mjs";
6
6
  import "../../../chunk-QC5ON3X4.mjs";
7
7
  import "../../../chunk-2GQSCZ3J.mjs";
@@ -11,7 +11,7 @@ import "../../../chunk-R5RFMU22.mjs";
11
11
  import "../../../chunk-LOPJYZWJ.mjs";
12
12
  import "../../../chunk-3J2CP54B.mjs";
13
13
  import "../../../chunk-TBW5MCN6.mjs";
14
- import "../../../chunk-C3NYIWL4.mjs";
14
+ import "../../../chunk-B2AJRGYN.mjs";
15
15
  export {
16
16
  generator_default as default,
17
17
  neutralLibraryGeneratorFn
@@ -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-C3NYIWL4.mjs";
5
+ import "../../../chunk-B2AJRGYN.mjs";
6
6
 
7
7
  // src/generators/neutral-library/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generator_default,
3
3
  nodeLibraryGeneratorFn
4
- } from "../../../chunk-RAHDX6VX.mjs";
4
+ } from "../../../chunk-XIJ6Y5PY.mjs";
5
5
  import "../../../chunk-4VWDSVQJ.mjs";
6
6
  import "../../../chunk-QC5ON3X4.mjs";
7
7
  import "../../../chunk-2GQSCZ3J.mjs";
@@ -11,7 +11,7 @@ import "../../../chunk-R5RFMU22.mjs";
11
11
  import "../../../chunk-LOPJYZWJ.mjs";
12
12
  import "../../../chunk-3J2CP54B.mjs";
13
13
  import "../../../chunk-TBW5MCN6.mjs";
14
- import "../../../chunk-C3NYIWL4.mjs";
14
+ import "../../../chunk-B2AJRGYN.mjs";
15
15
  export {
16
16
  generator_default as default,
17
17
  nodeLibraryGeneratorFn
@@ -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-C3NYIWL4.mjs";
5
+ import "../../../chunk-B2AJRGYN.mjs";
6
6
 
7
7
  // src/generators/node-library/untyped.ts
8
8
  import { defineUntypedSchema } from "untyped";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generator_default,
3
3
  presetGeneratorFn
4
- } from "../../../chunk-7N34DLDK.mjs";
4
+ } from "../../../chunk-VZW75NWX.mjs";
5
5
  import "../../../chunk-QC5ON3X4.mjs";
6
6
  import "../../../chunk-K4FLM47P.mjs";
7
7
  import "../../../chunk-2QMGYIOO.mjs";
@@ -9,7 +9,7 @@ import "../../../chunk-R5RFMU22.mjs";
9
9
  import "../../../chunk-LOPJYZWJ.mjs";
10
10
  import "../../../chunk-3J2CP54B.mjs";
11
11
  import "../../../chunk-TBW5MCN6.mjs";
12
- import "../../../chunk-C3NYIWL4.mjs";
12
+ import "../../../chunk-B2AJRGYN.mjs";
13
13
  export {
14
14
  generator_default as default,
15
15
  presetGeneratorFn
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  base_generator_untyped_default
3
3
  } from "../../../chunk-34LSWMWV.mjs";
4
- import "../../../chunk-C3NYIWL4.mjs";
4
+ import "../../../chunk-B2AJRGYN.mjs";
5
5
 
6
6
  // src/generators/preset/untyped.ts
7
7
  import { defineUntypedSchema } from "untyped";
@@ -8,7 +8,7 @@ import {
8
8
  import "../../../chunk-K4QMCCQB.mjs";
9
9
  import "../../../chunk-GKLFEOKK.mjs";
10
10
  import "../../../chunk-2GQSCZ3J.mjs";
11
- import "../../../chunk-C3NYIWL4.mjs";
11
+ import "../../../chunk-B2AJRGYN.mjs";
12
12
  export {
13
13
  DefaultCargoPluginProfileMap,
14
14
  createDependencies,
@@ -8,7 +8,7 @@ import {
8
8
  import "../../../chunk-K4QMCCQB.mjs";
9
9
  import "../../../chunk-GKLFEOKK.mjs";
10
10
  import "../../../chunk-2GQSCZ3J.mjs";
11
- import "../../../chunk-C3NYIWL4.mjs";
11
+ import "../../../chunk-B2AJRGYN.mjs";
12
12
  export {
13
13
  DefaultCargoPluginProfileMap,
14
14
  createDependencies,
@@ -44,6 +44,15 @@ interface TypeScriptPluginOptions extends BaseTypescriptPluginOptions {
44
44
  * @defaultValue false
45
45
  */
46
46
  enableTypecheck?: string | true;
47
+ /**
48
+ * Whether to enable Vitest or Jest for testing TypeScript projects.
49
+ *
50
+ * @remarks
51
+ * If set to a string, it will be used as the target name instead of the default "test".
52
+ *
53
+ * @defaultValue false
54
+ */
55
+ enableTest?: string | true;
47
56
  /**
48
57
  * Whether to use `tsgo` for TypeScript language features in editors that support it.
49
58
  *
@@ -44,6 +44,15 @@ interface TypeScriptPluginOptions extends BaseTypescriptPluginOptions {
44
44
  * @defaultValue false
45
45
  */
46
46
  enableTypecheck?: string | true;
47
+ /**
48
+ * Whether to enable Vitest or Jest for testing TypeScript projects.
49
+ *
50
+ * @remarks
51
+ * If set to a string, it will be used as the target name instead of the default "test".
52
+ *
53
+ * @defaultValue false
54
+ */
55
+ enableTest?: string | true;
47
56
  /**
48
57
  * Whether to use `tsgo` for TypeScript language features in editors that support it.
49
58
  *
@@ -48,6 +48,7 @@ var createNodesV2 = [
48
48
  const enableMarkdownlint = _optionalChain([options2, 'optionalAccess', _2 => _2.enableMarkdownlint]) !== false;
49
49
  const enableEslint = _optionalChain([options2, 'optionalAccess', _3 => _3.enableEslint]) !== false;
50
50
  const enableTypecheck = !!_optionalChain([options2, 'optionalAccess', _4 => _4.enableTypecheck]);
51
+ const enableTest = !!_optionalChain([options2, 'optionalAccess', _5 => _5.enableTest]);
51
52
  const targets = _packagejson.readTargetsFromPackageJson.call(void 0,
52
53
  packageJson,
53
54
  nxJson,
@@ -56,7 +57,7 @@ var createNodesV2 = [
56
57
  );
57
58
  if (_path.join.call(void 0, context2.workspaceRoot, project.root).startsWith(
58
59
  _path.join.call(void 0, context2.workspaceRoot, "tools")
59
- ) && _optionalChain([options2, 'optionalAccess', _5 => _5.lintInternalTools]) !== true) {
60
+ ) && _optionalChain([options2, 'optionalAccess', _6 => _6.lintInternalTools]) !== true) {
60
61
  targets.lint ??= {
61
62
  dependsOn: ["^lint"],
62
63
  executor: "nx:run-commands",
@@ -75,7 +76,7 @@ var createNodesV2 = [
75
76
  }
76
77
  };
77
78
  if (enableMarkdownlint) {
78
- targets[_optionalChain([options2, 'optionalAccess', _6 => _6.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _7 => _7.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"] ??= {
79
+ targets[_optionalChain([options2, 'optionalAccess', _7 => _7.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _8 => _8.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"] ??= {
79
80
  cache: true,
80
81
  inputs: [
81
82
  "linting",
@@ -84,7 +85,7 @@ var createNodesV2 = [
84
85
  ],
85
86
  outputs: ["{projectRoot}/**/*.md", "{projectRoot}/**/*.mdx"],
86
87
  dependsOn: [
87
- `^${_optionalChain([options2, 'optionalAccess', _8 => _8.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _9 => _9.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"}`
88
+ `^${_optionalChain([options2, 'optionalAccess', _9 => _9.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _10 => _10.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"}`
88
89
  ],
89
90
  executor: "nx:run-commands",
90
91
  options: {
@@ -93,17 +94,17 @@ var createNodesV2 = [
93
94
  };
94
95
  }
95
96
  if (enableTypecheck) {
96
- targets[_optionalChain([options2, 'optionalAccess', _10 => _10.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _11 => _11.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck"] ??= {
97
+ targets[_optionalChain([options2, 'optionalAccess', _11 => _11.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _12 => _12.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck"] ??= {
97
98
  cache: true,
98
99
  inputs: ["typescript", "^production"],
99
100
  outputs: [`{workspaceRoot}/dist/${root}`],
100
101
  executor: "nx:run-commands",
101
102
  dependsOn: [
102
103
  "build-untyped",
103
- `^${_optionalChain([options2, 'optionalAccess', _12 => _12.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _13 => _13.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck"}`
104
+ `^${_optionalChain([options2, 'optionalAccess', _13 => _13.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _14 => _14.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck"}`
104
105
  ],
105
106
  options: {
106
- command: `pnpm exec ${_optionalChain([options2, 'optionalAccess', _14 => _14.useTsGo]) ? "tsgo" : "tsc"} --noEmit --skipLibCheck --pretty --project ./${_path.join.call(void 0,
107
+ command: `pnpm exec ${_optionalChain([options2, 'optionalAccess', _15 => _15.useTsGo]) ? "tsgo" : "tsc"} --noEmit --skipLibCheck --pretty --project ./${_path.join.call(void 0,
107
108
  project.root,
108
109
  "tsconfig.json"
109
110
  )}`
@@ -116,16 +117,16 @@ var createNodesV2 = [
116
117
  eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
117
118
  }
118
119
  if (eslintConfig) {
119
- targets[_optionalChain([options2, 'optionalAccess', _15 => _15.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _16 => _16.enableEslint]) === "string" ? options2.enableEslint : "lint"] ??= {
120
+ targets[_optionalChain([options2, 'optionalAccess', _16 => _16.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _17 => _17.enableEslint]) === "string" ? options2.enableEslint : "lint"] ??= {
120
121
  cache: true,
121
122
  inputs: ["linting", "typescript", "^production"],
122
123
  outputs: [
123
124
  "{projectRoot}/**/*.{ts,tsx,js,jsx,json,md,mdx,yaml,yml,html,css,scss,sass,less,graphql,gql}"
124
125
  ],
125
126
  dependsOn: [
126
- enableMarkdownlint ? _optionalChain([options2, 'optionalAccess', _17 => _17.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _18 => _18.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown" : void 0,
127
- enableTypecheck ? _optionalChain([options2, 'optionalAccess', _19 => _19.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _20 => _20.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck" : void 0,
128
- `^${_optionalChain([options2, 'optionalAccess', _21 => _21.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _22 => _22.enableEslint]) === "string" ? options2.enableEslint : "lint"}`
127
+ enableMarkdownlint ? _optionalChain([options2, 'optionalAccess', _18 => _18.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _19 => _19.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown" : void 0,
128
+ enableTypecheck ? _optionalChain([options2, 'optionalAccess', _20 => _20.enableTypecheck]) && typeof _optionalChain([options2, 'optionalAccess', _21 => _21.enableTypecheck]) === "string" ? options2.enableTypecheck : "typecheck" : void 0,
129
+ `^${_optionalChain([options2, 'optionalAccess', _22 => _22.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _23 => _23.enableEslint]) === "string" ? options2.enableEslint : "lint"}`
129
130
  ].filter(Boolean),
130
131
  executor: "@nx/eslint:lint",
131
132
  options: {
@@ -210,28 +211,47 @@ var createNodesV2 = [
210
211
  command: `pnpm exec nx run ${project.name}:build`
211
212
  }
212
213
  };
213
- if (checkJestConfigAtPath(project.root)) {
214
- targets.test ??= {
215
- cache: true,
216
- executor: "@nx/jest:jest",
217
- inputs: ["testing", "typescript", "^production"],
218
- outputs: [`{workspaceRoot}/coverage/${root}`],
219
- defaultConfiguration: "development",
220
- options: {
221
- jestConfig: "{projectRoot}/jest.config.ts",
222
- passWithNoTests: true
223
- },
224
- configurations: {
225
- development: {
226
- ci: false,
227
- codeCoverage: true
214
+ if (enableTest) {
215
+ if (checkVitestConfigAtPath(project.root)) {
216
+ targets.test ??= {
217
+ cache: true,
218
+ executor: "@nx/vitest:test",
219
+ inputs: ["testing", "typescript", "^production"],
220
+ outputs: [`{workspaceRoot}/coverage/${root}`],
221
+ defaultConfiguration: "development",
222
+ options: {
223
+ configFile: `{projectRoot}/${checkVitestConfigAtPath(project.root)}`
228
224
  },
229
- production: {
230
- ci: true,
231
- codeCoverage: true
225
+ configurations: {
226
+ development: {},
227
+ production: {
228
+ reportsDirectory: `{workspaceRoot}/coverage/${root}`
229
+ }
232
230
  }
233
- }
234
- };
231
+ };
232
+ } else if (checkJestConfigAtPath(project.root)) {
233
+ targets.test ??= {
234
+ cache: true,
235
+ executor: "@nx/jest:jest",
236
+ inputs: ["testing", "typescript", "^production"],
237
+ outputs: [`{workspaceRoot}/coverage/${root}`],
238
+ defaultConfiguration: "development",
239
+ options: {
240
+ jestConfig: `{projectRoot}/${checkJestConfigAtPath(project.root)}`,
241
+ passWithNoTests: true
242
+ },
243
+ configurations: {
244
+ development: {
245
+ ci: false,
246
+ codeCoverage: true
247
+ },
248
+ production: {
249
+ ci: true,
250
+ codeCoverage: true
251
+ }
252
+ }
253
+ };
254
+ }
235
255
  }
236
256
  targets["docs"] ??= {
237
257
  cache: true,
@@ -281,8 +301,8 @@ var createNodesV2 = [
281
301
  cleanComments: true
282
302
  }
283
303
  };
284
- _optionalChain([targets, 'access', _23 => _23["nx-release-publish"], 'access', _24 => _24.dependsOn, 'optionalAccess', _25 => _25.push, 'call', _26 => _26("clean-package")]);
285
- _optionalChain([targets, 'access', _27 => _27["size-limit"], 'access', _28 => _28.dependsOn, 'optionalAccess', _29 => _29.push, 'call', _30 => _30("clean-package")]);
304
+ _optionalChain([targets, 'access', _24 => _24["nx-release-publish"], 'access', _25 => _25.dependsOn, 'optionalAccess', _26 => _26.push, 'call', _27 => _27("clean-package")]);
305
+ _optionalChain([targets, 'access', _28 => _28["size-limit"], 'access', _29 => _29.dependsOn, 'optionalAccess', _30 => _30.push, 'call', _31 => _31("clean-package")]);
286
306
  }
287
307
  }
288
308
  _chunkTAP26ZJQjs.addProjectTag.call(void 0,
@@ -294,7 +314,7 @@ var createNodesV2 = [
294
314
  _chunkTAP26ZJQjs.addProjectTag.call(void 0,
295
315
  project,
296
316
  _chunkTAP26ZJQjs.ProjectTagConstants.ProjectLinking.TAG_ID,
297
- _optionalChain([options2, 'optionalAccess', _31 => _31.projectLinks]) === "alias" /* ALIAS */ ? _chunkTAP26ZJQjs.ProjectTagConstants.ProjectLinking.ALIAS : _chunkTAP26ZJQjs.ProjectTagConstants.ProjectLinking.REFERENCE,
317
+ _optionalChain([options2, 'optionalAccess', _32 => _32.projectLinks]) === "alias" /* ALIAS */ ? _chunkTAP26ZJQjs.ProjectTagConstants.ProjectLinking.ALIAS : _chunkTAP26ZJQjs.ProjectTagConstants.ProjectLinking.REFERENCE,
298
318
  { overwrite: true }
299
319
  );
300
320
  const platform = _chunkBAPFD3TOjs.getProjectPlatform.call(void 0, project);
@@ -427,17 +447,36 @@ function checkEslintConfigAtPath(directory) {
427
447
  }
428
448
  return null;
429
449
  }
450
+ function checkVitestConfigAtPath(directory) {
451
+ const hasVitestConfigFile = (fileName) => {
452
+ return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
453
+ };
454
+ if (hasVitestConfigFile("vitest.config.js")) {
455
+ return "vitest.config.js";
456
+ } else if (hasVitestConfigFile("vitest.config.cjs")) {
457
+ return "vitest.config.cjs";
458
+ } else if (hasVitestConfigFile("vitest.config.mjs")) {
459
+ return "vitest.config.mjs";
460
+ } else if (hasVitestConfigFile("vitest.config.ts")) {
461
+ return "vitest.config.ts";
462
+ } else if (hasVitestConfigFile("vitest.config.cts")) {
463
+ return "vitest.config.cts";
464
+ } else if (hasVitestConfigFile("vitest.config.mts")) {
465
+ return "vitest.config.mts";
466
+ }
467
+ return null;
468
+ }
430
469
  function checkJestConfigAtPath(directory) {
431
470
  const hasJestConfigFile = (fileName) => {
432
471
  return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
433
472
  };
434
- if (hasJestConfigFile("eslint.config.js")) {
473
+ if (hasJestConfigFile("jest.config.js")) {
435
474
  return "jest.config.js";
436
- } else if (hasJestConfigFile("eslint.config.cjs")) {
475
+ } else if (hasJestConfigFile("jest.config.cjs")) {
437
476
  return "jest.config.cjs";
438
- } else if (hasJestConfigFile("eslint.config.mjs")) {
477
+ } else if (hasJestConfigFile("jest.config.mjs")) {
439
478
  return "jest.config.mjs";
440
- } else if (hasJestConfigFile("eslint.config.ts")) {
479
+ } else if (hasJestConfigFile("jest.config.ts")) {
441
480
  return "jest.config.ts";
442
481
  } else if (hasJestConfigFile("jest.config.cts")) {
443
482
  return "jest.config.cts";
@@ -9,7 +9,7 @@ import {
9
9
  setDefaultProjectTags
10
10
  } from "../../../chunk-2GQSCZ3J.mjs";
11
11
  import "../../../chunk-5OS7GV5T.mjs";
12
- import "../../../chunk-C3NYIWL4.mjs";
12
+ import "../../../chunk-B2AJRGYN.mjs";
13
13
 
14
14
  // src/plugins/typescript/index.ts
15
15
  import {
@@ -49,6 +49,7 @@ var createNodesV2 = [
49
49
  const enableMarkdownlint = options2?.enableMarkdownlint !== false;
50
50
  const enableEslint = options2?.enableEslint !== false;
51
51
  const enableTypecheck = !!options2?.enableTypecheck;
52
+ const enableTest = !!options2?.enableTest;
52
53
  const targets = readTargetsFromPackageJson(
53
54
  packageJson,
54
55
  nxJson,
@@ -211,28 +212,47 @@ var createNodesV2 = [
211
212
  command: `pnpm exec nx run ${project.name}:build`
212
213
  }
213
214
  };
214
- if (checkJestConfigAtPath(project.root)) {
215
- targets.test ??= {
216
- cache: true,
217
- executor: "@nx/jest:jest",
218
- inputs: ["testing", "typescript", "^production"],
219
- outputs: [`{workspaceRoot}/coverage/${root}`],
220
- defaultConfiguration: "development",
221
- options: {
222
- jestConfig: "{projectRoot}/jest.config.ts",
223
- passWithNoTests: true
224
- },
225
- configurations: {
226
- development: {
227
- ci: false,
228
- codeCoverage: true
215
+ if (enableTest) {
216
+ if (checkVitestConfigAtPath(project.root)) {
217
+ targets.test ??= {
218
+ cache: true,
219
+ executor: "@nx/vitest:test",
220
+ inputs: ["testing", "typescript", "^production"],
221
+ outputs: [`{workspaceRoot}/coverage/${root}`],
222
+ defaultConfiguration: "development",
223
+ options: {
224
+ configFile: `{projectRoot}/${checkVitestConfigAtPath(project.root)}`
229
225
  },
230
- production: {
231
- ci: true,
232
- codeCoverage: true
226
+ configurations: {
227
+ development: {},
228
+ production: {
229
+ reportsDirectory: `{workspaceRoot}/coverage/${root}`
230
+ }
233
231
  }
234
- }
235
- };
232
+ };
233
+ } else if (checkJestConfigAtPath(project.root)) {
234
+ targets.test ??= {
235
+ cache: true,
236
+ executor: "@nx/jest:jest",
237
+ inputs: ["testing", "typescript", "^production"],
238
+ outputs: [`{workspaceRoot}/coverage/${root}`],
239
+ defaultConfiguration: "development",
240
+ options: {
241
+ jestConfig: `{projectRoot}/${checkJestConfigAtPath(project.root)}`,
242
+ passWithNoTests: true
243
+ },
244
+ configurations: {
245
+ development: {
246
+ ci: false,
247
+ codeCoverage: true
248
+ },
249
+ production: {
250
+ ci: true,
251
+ codeCoverage: true
252
+ }
253
+ }
254
+ };
255
+ }
236
256
  }
237
257
  targets["docs"] ??= {
238
258
  cache: true,
@@ -428,17 +448,36 @@ function checkEslintConfigAtPath(directory) {
428
448
  }
429
449
  return null;
430
450
  }
451
+ function checkVitestConfigAtPath(directory) {
452
+ const hasVitestConfigFile = (fileName) => {
453
+ return existsSync(join(directory, fileName));
454
+ };
455
+ if (hasVitestConfigFile("vitest.config.js")) {
456
+ return "vitest.config.js";
457
+ } else if (hasVitestConfigFile("vitest.config.cjs")) {
458
+ return "vitest.config.cjs";
459
+ } else if (hasVitestConfigFile("vitest.config.mjs")) {
460
+ return "vitest.config.mjs";
461
+ } else if (hasVitestConfigFile("vitest.config.ts")) {
462
+ return "vitest.config.ts";
463
+ } else if (hasVitestConfigFile("vitest.config.cts")) {
464
+ return "vitest.config.cts";
465
+ } else if (hasVitestConfigFile("vitest.config.mts")) {
466
+ return "vitest.config.mts";
467
+ }
468
+ return null;
469
+ }
431
470
  function checkJestConfigAtPath(directory) {
432
471
  const hasJestConfigFile = (fileName) => {
433
472
  return existsSync(join(directory, fileName));
434
473
  };
435
- if (hasJestConfigFile("eslint.config.js")) {
474
+ if (hasJestConfigFile("jest.config.js")) {
436
475
  return "jest.config.js";
437
- } else if (hasJestConfigFile("eslint.config.cjs")) {
476
+ } else if (hasJestConfigFile("jest.config.cjs")) {
438
477
  return "jest.config.cjs";
439
- } else if (hasJestConfigFile("eslint.config.mjs")) {
478
+ } else if (hasJestConfigFile("jest.config.mjs")) {
440
479
  return "jest.config.mjs";
441
- } else if (hasJestConfigFile("eslint.config.ts")) {
480
+ } else if (hasJestConfigFile("jest.config.ts")) {
442
481
  return "jest.config.ts";
443
482
  } else if (hasJestConfigFile("jest.config.cts")) {
444
483
  return "jest.config.cts";
@@ -7,7 +7,7 @@ import {
7
7
  setDefaultProjectTags
8
8
  } from "../../../chunk-2GQSCZ3J.mjs";
9
9
  import "../../../chunk-5OS7GV5T.mjs";
10
- import "../../../chunk-C3NYIWL4.mjs";
10
+ import "../../../chunk-B2AJRGYN.mjs";
11
11
 
12
12
  // src/plugins/typescript/tsdown.ts
13
13
  import {
@@ -7,7 +7,7 @@ import {
7
7
  setDefaultProjectTags
8
8
  } from "../../../chunk-2GQSCZ3J.mjs";
9
9
  import "../../../chunk-5OS7GV5T.mjs";
10
- import "../../../chunk-C3NYIWL4.mjs";
10
+ import "../../../chunk-B2AJRGYN.mjs";
11
11
 
12
12
  // src/plugins/typescript/tsup.ts
13
13
  import {
@@ -5,7 +5,7 @@ import {
5
5
  ProjectTagConstants,
6
6
  addProjectTag
7
7
  } from "../../../chunk-2GQSCZ3J.mjs";
8
- import "../../../chunk-C3NYIWL4.mjs";
8
+ import "../../../chunk-B2AJRGYN.mjs";
9
9
 
10
10
  // src/plugins/typescript/untyped-schema.ts
11
11
  import {
@@ -11,7 +11,7 @@ import "../../chunk-R5RFMU22.mjs";
11
11
  import "../../chunk-LOPJYZWJ.mjs";
12
12
  import "../../chunk-3J2CP54B.mjs";
13
13
  import "../../chunk-TBW5MCN6.mjs";
14
- import "../../chunk-C3NYIWL4.mjs";
14
+ import "../../chunk-B2AJRGYN.mjs";
15
15
  export {
16
16
  StormJsVersionActions,
17
17
  StormRustVersionActions
@@ -5,7 +5,7 @@ import "../../chunk-R5RFMU22.mjs";
5
5
  import "../../chunk-LOPJYZWJ.mjs";
6
6
  import "../../chunk-3J2CP54B.mjs";
7
7
  import "../../chunk-TBW5MCN6.mjs";
8
- import "../../chunk-C3NYIWL4.mjs";
8
+ import "../../chunk-B2AJRGYN.mjs";
9
9
  export {
10
10
  StormJsVersionActions as default
11
11
  };
@@ -7,7 +7,7 @@ import "../../chunk-R5RFMU22.mjs";
7
7
  import "../../chunk-LOPJYZWJ.mjs";
8
8
  import "../../chunk-3J2CP54B.mjs";
9
9
  import "../../chunk-TBW5MCN6.mjs";
10
- import "../../chunk-C3NYIWL4.mjs";
10
+ import "../../chunk-B2AJRGYN.mjs";
11
11
  export {
12
12
  StormRustVersionActions as default
13
13
  };
@@ -7,7 +7,7 @@ import {
7
7
  ProjectTagVariant,
8
8
  TypescriptProjectLinkingType
9
9
  } from "../chunk-5OS7GV5T.mjs";
10
- import "../chunk-C3NYIWL4.mjs";
10
+ import "../chunk-B2AJRGYN.mjs";
11
11
  export {
12
12
  ProjectTagDistStyleValue,
13
13
  ProjectTagLanguageValue,
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunk-UBVTASOE.mjs";
4
4
  import "../../chunk-3J2CP54B.mjs";
5
5
  import "../../chunk-TBW5MCN6.mjs";
6
- import "../../chunk-C3NYIWL4.mjs";
6
+ import "../../chunk-B2AJRGYN.mjs";
7
7
  export {
8
8
  applyWorkspaceExecutorTokens
9
9
  };
@@ -9,7 +9,7 @@ import {
9
9
  isExternal,
10
10
  runProcess
11
11
  } from "../../chunk-GKLFEOKK.mjs";
12
- import "../../chunk-C3NYIWL4.mjs";
12
+ import "../../chunk-B2AJRGYN.mjs";
13
13
  export {
14
14
  INVALID_CARGO_ARGS,
15
15
  buildCargoCommand,