@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.
- package/config/base.json +89 -198
- package/config/recommended.json +102 -203
- package/dist/{chunk-XFXMVB67.js → chunk-6INCVYHU.js} +7 -7
- package/dist/{chunk-CW7U7TSJ.mjs → chunk-AYAY4VYN.mjs} +1 -1
- package/dist/{chunk-C3NYIWL4.mjs → chunk-B2AJRGYN.mjs} +1 -1
- package/dist/{chunk-R6AXANVR.mjs → chunk-CQHYGSFK.mjs} +1 -1
- package/dist/chunk-DH4FAZZB.js +268 -0
- package/dist/{chunk-737EDGVV.js → chunk-EWAOPOGD.js} +2 -2
- package/dist/{chunk-HGDG36KQ.js → chunk-II7J52FS.js} +8 -8
- package/dist/{chunk-MVTZC3MT.mjs → chunk-TSQI7Z3D.mjs} +1 -1
- package/dist/chunk-TTKVHG3F.mjs +268 -0
- package/dist/{chunk-7N34DLDK.mjs → chunk-VZW75NWX.mjs} +1 -1
- package/dist/{chunk-RAHDX6VX.mjs → chunk-XIJ6Y5PY.mjs} +1 -1
- package/dist/{chunk-KUK2HDLM.mjs → chunk-Y56KCTJM.mjs} +1 -1
- package/dist/{chunk-4BFBFTDK.mjs → chunk-ZS6ZECJY.mjs} +1 -1
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +4 -4
- package/dist/generators.mjs +5 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +1 -1
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +1 -1
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +1 -1
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +1 -1
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +1 -1
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +3 -3
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.mjs +1 -1
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.js +3 -3
- package/dist/src/executors/tsdown/executor.mjs +3 -3
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.mjs +1 -1
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +1 -1
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.d.mts +9 -0
- package/dist/src/plugins/typescript/index.d.ts +9 -0
- package/dist/src/plugins/typescript/index.js +76 -37
- package/dist/src/plugins/typescript/index.mjs +64 -25
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.mjs +1 -1
- package/dist/src/release/js-version-actions.mjs +1 -1
- package/dist/src/release/rust-version-actions.mjs +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/github.mjs +1 -1
- package/dist/src/utils/index.js +2 -2
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.d.mts +13 -14
- package/dist/src/utils/nx-json.d.ts +13 -14
- package/dist/src/utils/nx-json.js +2 -2
- package/dist/src/utils/nx-json.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +10 -10
- package/dist/chunk-4AKDRRML.js +0 -339
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
generator_default,
|
|
3
3
|
neutralLibraryGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
import "../../../chunk-B2AJRGYN.mjs";
|
|
13
13
|
export {
|
|
14
14
|
generator_default as default,
|
|
15
15
|
presetGeneratorFn
|
|
@@ -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-
|
|
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-
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
127
|
-
enableTypecheck ? _optionalChain([options2, 'optionalAccess',
|
|
128
|
-
`^${_optionalChain([options2, 'optionalAccess',
|
|
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 (
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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',
|
|
285
|
-
_optionalChain([targets, 'access',
|
|
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',
|
|
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("
|
|
473
|
+
if (hasJestConfigFile("jest.config.js")) {
|
|
435
474
|
return "jest.config.js";
|
|
436
|
-
} else if (hasJestConfigFile("
|
|
475
|
+
} else if (hasJestConfigFile("jest.config.cjs")) {
|
|
437
476
|
return "jest.config.cjs";
|
|
438
|
-
} else if (hasJestConfigFile("
|
|
477
|
+
} else if (hasJestConfigFile("jest.config.mjs")) {
|
|
439
478
|
return "jest.config.mjs";
|
|
440
|
-
} else if (hasJestConfigFile("
|
|
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-
|
|
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 (
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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("
|
|
474
|
+
if (hasJestConfigFile("jest.config.js")) {
|
|
436
475
|
return "jest.config.js";
|
|
437
|
-
} else if (hasJestConfigFile("
|
|
476
|
+
} else if (hasJestConfigFile("jest.config.cjs")) {
|
|
438
477
|
return "jest.config.cjs";
|
|
439
|
-
} else if (hasJestConfigFile("
|
|
478
|
+
} else if (hasJestConfigFile("jest.config.mjs")) {
|
|
440
479
|
return "jest.config.mjs";
|
|
441
|
-
} else if (hasJestConfigFile("
|
|
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";
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
10
|
+
import "../../chunk-B2AJRGYN.mjs";
|
|
11
11
|
export {
|
|
12
12
|
StormRustVersionActions as default
|
|
13
13
|
};
|
package/dist/src/types.mjs
CHANGED