@nx/vitest 22.7.0-beta.6 → 22.7.0-beta.8
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/assets.json +21 -21
- package/executors.json +7 -7
- package/generators.json +15 -15
- package/migrations.json +96 -96
- package/package.json +4 -4
- package/src/executors/test/schema.json +38 -38
- package/src/generators/configuration/schema.json +73 -73
- package/src/generators/init/schema.json +38 -38
- package/src/utils/versions.d.ts +7 -7
- package/src/utils/versions.js +4 -4
package/assets.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"outDir": "dist/packages/vitest",
|
|
3
|
+
"assets": [
|
|
4
|
+
{
|
|
5
|
+
"glob": "**/files/**"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"glob": "**/*.json",
|
|
9
|
+
"ignore": ["tsconfig*.json", "project.json", ".eslintrc.json"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"glob": "**/*.js",
|
|
13
|
+
"ignore": ["**/jest.config.js"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"glob": "**/*.d.ts"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"glob": "PLUGIN.md"
|
|
20
|
+
},
|
|
21
|
+
"LICENSE"
|
|
22
|
+
]
|
|
23
23
|
}
|
package/executors.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"executors": {
|
|
4
|
+
"test": {
|
|
5
|
+
"implementation": "./src/executors/test/vitest.impl",
|
|
6
|
+
"schema": "./src/executors/test/schema.json",
|
|
7
|
+
"description": "Test using Vitest"
|
|
8
|
+
}
|
|
8
9
|
}
|
|
9
|
-
}
|
|
10
10
|
}
|
package/generators.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
"name": "Nx Vitest",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"generators": {
|
|
5
|
+
"init": {
|
|
6
|
+
"factory": "./src/generators/init/init",
|
|
7
|
+
"schema": "./src/generators/init/schema.json",
|
|
8
|
+
"description": "Initialize the `@nx/vitest` plugin.",
|
|
9
|
+
"aliases": ["ng-add"],
|
|
10
|
+
"hidden": true
|
|
11
|
+
},
|
|
12
|
+
"configuration": {
|
|
13
|
+
"factory": "./src/generators/configuration/configuration",
|
|
14
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
+
"description": "Add Vitest configuration to a project."
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
|
-
}
|
|
18
18
|
}
|
package/migrations.json
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"update-22-1-0": {
|
|
9
|
-
"version": "22.1.0-beta.8",
|
|
10
|
-
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
11
|
-
"implementation": "./src/migrations/update-22-1-0/create-ai-instructions-for-vitest-4"
|
|
12
|
-
},
|
|
13
|
-
"update-22-3-2": {
|
|
14
|
-
"version": "22.3.2-beta.0",
|
|
15
|
-
"requires": {
|
|
16
|
-
"@angular/build": ">=21.0.0"
|
|
17
|
-
},
|
|
18
|
-
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
19
|
-
"implementation": "./src/migrations/update-22-1-0/create-ai-instructions-for-vitest-4"
|
|
20
|
-
},
|
|
21
|
-
"update-22-6-0-prefix-reports-directory": {
|
|
22
|
-
"version": "22.6.0-beta.11",
|
|
23
|
-
"description": "Prefix reportsDirectory with {projectRoot} to maintain correct resolution after workspace-root-relative behavior change.",
|
|
24
|
-
"implementation": "./src/migrations/update-22-6-0/prefix-reports-directory-with-project-root"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"packageJsonUpdates": {
|
|
28
|
-
"22.1.0": {
|
|
29
|
-
"version": "22.1.0-beta.8",
|
|
30
|
-
"incompatibleWith": {
|
|
31
|
-
"@angular/build": "< 21.0.0"
|
|
32
|
-
},
|
|
33
|
-
"packages": {
|
|
34
|
-
"vitest": {
|
|
35
|
-
"version": "^4.0.0",
|
|
36
|
-
"alwaysAddToPackageJson": false
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-20-3-0": {
|
|
4
|
+
"version": "20.3.0-beta.2",
|
|
5
|
+
"description": "Add gitignore entry for temporary vitest config files.",
|
|
6
|
+
"implementation": "./src/migrations/update-20-3-0/add-vitest-temp-files-to-git-ignore"
|
|
37
7
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
8
|
+
"update-22-1-0": {
|
|
9
|
+
"version": "22.1.0-beta.8",
|
|
10
|
+
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
11
|
+
"implementation": "./src/migrations/update-22-1-0/create-ai-instructions-for-vitest-4"
|
|
41
12
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
13
|
+
"update-22-3-2": {
|
|
14
|
+
"version": "22.3.2-beta.0",
|
|
15
|
+
"requires": {
|
|
16
|
+
"@angular/build": ">=21.0.0"
|
|
17
|
+
},
|
|
18
|
+
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
19
|
+
"implementation": "./src/migrations/update-22-1-0/create-ai-instructions-for-vitest-4"
|
|
45
20
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
21
|
+
"update-22-6-0-prefix-reports-directory": {
|
|
22
|
+
"version": "22.6.0-beta.11",
|
|
23
|
+
"description": "Prefix reportsDirectory with {projectRoot} to maintain correct resolution after workspace-root-relative behavior change.",
|
|
24
|
+
"implementation": "./src/migrations/update-22-6-0/prefix-reports-directory-with-project-root"
|
|
49
25
|
}
|
|
50
|
-
}
|
|
51
26
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
27
|
+
"packageJsonUpdates": {
|
|
28
|
+
"22.1.0": {
|
|
29
|
+
"version": "22.1.0-beta.8",
|
|
30
|
+
"incompatibleWith": {
|
|
31
|
+
"@angular/build": "< 21.0.0"
|
|
32
|
+
},
|
|
33
|
+
"packages": {
|
|
34
|
+
"vitest": {
|
|
35
|
+
"version": "^4.0.0",
|
|
36
|
+
"alwaysAddToPackageJson": false
|
|
37
|
+
},
|
|
38
|
+
"@vitest/coverage-v8": {
|
|
39
|
+
"version": "^4.0.0",
|
|
40
|
+
"alwaysAddToPackageJson": false
|
|
41
|
+
},
|
|
42
|
+
"@vitest/coverage-istanbul": {
|
|
43
|
+
"version": "^4.0.0",
|
|
44
|
+
"alwaysAddToPackageJson": false
|
|
45
|
+
},
|
|
46
|
+
"@vitest/ui": {
|
|
47
|
+
"version": "^4.0.0",
|
|
48
|
+
"alwaysAddToPackageJson": false
|
|
49
|
+
}
|
|
50
|
+
}
|
|
58
51
|
},
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"packages": {
|
|
72
|
-
"vitest": {
|
|
73
|
-
"version": "^4.0.8",
|
|
74
|
-
"alwaysAddToPackageJson": false
|
|
52
|
+
"22.2.0-analog": {
|
|
53
|
+
"version": "22.2.0-beta.3",
|
|
54
|
+
"packages": {
|
|
55
|
+
"@analogjs/vite-plugin-angular": {
|
|
56
|
+
"version": "~2.1.2",
|
|
57
|
+
"alwaysAddToPackageJson": false
|
|
58
|
+
},
|
|
59
|
+
"@analogjs/vitest-angular": {
|
|
60
|
+
"version": "~2.1.2",
|
|
61
|
+
"alwaysAddToPackageJson": false
|
|
62
|
+
}
|
|
63
|
+
}
|
|
75
64
|
},
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
65
|
+
"22.3.2": {
|
|
66
|
+
"version": "22.3.2-beta.0",
|
|
67
|
+
"requires": {
|
|
68
|
+
"@angular/build": ">=21.0.0",
|
|
69
|
+
"vitest": "<=4.0.8"
|
|
70
|
+
},
|
|
71
|
+
"packages": {
|
|
72
|
+
"vitest": {
|
|
73
|
+
"version": "^4.0.8",
|
|
74
|
+
"alwaysAddToPackageJson": false
|
|
75
|
+
},
|
|
76
|
+
"@vitest/coverage-v8": {
|
|
77
|
+
"version": "^4.0.8",
|
|
78
|
+
"alwaysAddToPackageJson": false
|
|
79
|
+
},
|
|
80
|
+
"@vitest/coverage-istanbul": {
|
|
81
|
+
"version": "^4.0.8",
|
|
82
|
+
"alwaysAddToPackageJson": false
|
|
83
|
+
},
|
|
84
|
+
"@vitest/ui": {
|
|
85
|
+
"version": "^4.0.8",
|
|
86
|
+
"alwaysAddToPackageJson": false
|
|
87
|
+
},
|
|
88
|
+
"jsdom": {
|
|
89
|
+
"version": "^27.1.0",
|
|
90
|
+
"alwaysAddToPackageJson": false
|
|
91
|
+
}
|
|
92
|
+
}
|
|
100
93
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
"22.3.2-analog": {
|
|
95
|
+
"version": "22.3.2-beta.0",
|
|
96
|
+
"packages": {
|
|
97
|
+
"@analogjs/vite-plugin-angular": {
|
|
98
|
+
"version": "~2.2.0",
|
|
99
|
+
"alwaysAddToPackageJson": false
|
|
100
|
+
},
|
|
101
|
+
"@analogjs/vitest-angular": {
|
|
102
|
+
"version": "~2.2.0",
|
|
103
|
+
"alwaysAddToPackageJson": false
|
|
104
|
+
}
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
|
-
}
|
|
106
107
|
}
|
|
107
|
-
}
|
|
108
108
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vitest",
|
|
3
3
|
"description": "The Nx Plugin for Vitest to enable fast unit testing with Vitest.",
|
|
4
|
-
"version": "22.7.0-beta.
|
|
4
|
+
"version": "22.7.0-beta.8",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"generators": "./generators.json",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@nx/devkit": "22.7.0-beta.
|
|
56
|
-
"@nx/js": "22.7.0-beta.
|
|
55
|
+
"@nx/devkit": "22.7.0-beta.8",
|
|
56
|
+
"@nx/js": "22.7.0-beta.8",
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
58
|
"semver": "^7.6.3",
|
|
59
59
|
"@phenomnomnominal/tsquery": "~6.1.4"
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"nx": "22.7.0-beta.
|
|
74
|
+
"nx": "22.7.0-beta.8"
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Vitest executor",
|
|
6
|
+
"description": "Test using Vitest.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"configFile": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The path to the local vitest config, relative to the workspace root.",
|
|
12
|
+
"x-completion-type": "file",
|
|
13
|
+
"x-completion-glob": "@(vitest|vite).config@(.js|.ts)",
|
|
14
|
+
"aliases": ["config"]
|
|
15
|
+
},
|
|
16
|
+
"reportsDirectory": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Directory to write coverage report to."
|
|
19
|
+
},
|
|
20
|
+
"mode": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Vite mode for loading configuration."
|
|
23
|
+
},
|
|
24
|
+
"runMode": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Vitest execution mode.",
|
|
27
|
+
"enum": ["test", "benchmark"],
|
|
28
|
+
"default": "test"
|
|
29
|
+
},
|
|
30
|
+
"testFiles": {
|
|
31
|
+
"aliases": ["testFile"],
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": { "type": "string" }
|
|
34
|
+
},
|
|
35
|
+
"watch": {
|
|
36
|
+
"description": "Watch files for changes and rerun tests related to changed files.",
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
15
39
|
},
|
|
16
|
-
"
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Directory to write coverage report to."
|
|
19
|
-
},
|
|
20
|
-
"mode": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Vite mode for loading configuration."
|
|
23
|
-
},
|
|
24
|
-
"runMode": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Vitest execution mode.",
|
|
27
|
-
"enum": ["test", "benchmark"],
|
|
28
|
-
"default": "test"
|
|
29
|
-
},
|
|
30
|
-
"testFiles": {
|
|
31
|
-
"aliases": ["testFile"],
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": { "type": "string" }
|
|
34
|
-
},
|
|
35
|
-
"watch": {
|
|
36
|
-
"description": "Watch files for changes and rerun tests related to changed files.",
|
|
37
|
-
"type": "boolean"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": []
|
|
40
|
+
"required": []
|
|
41
41
|
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Vitest",
|
|
5
|
+
"title": "Vitest",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Generate a Vitest setup for a project.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The name of the project to test.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "projectName"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"uiFramework": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["angular", "react", "vue", "none"],
|
|
19
|
+
"description": "UI framework to use with vitest."
|
|
20
|
+
},
|
|
21
|
+
"inSourceTests": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "Do not generate separate spec files and set up in-source testing."
|
|
25
|
+
},
|
|
26
|
+
"skipViteConfig": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false,
|
|
29
|
+
"description": "Skip generating a vite config file."
|
|
30
|
+
},
|
|
31
|
+
"coverageProvider": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": ["v8", "istanbul", "custom"],
|
|
34
|
+
"default": "v8",
|
|
35
|
+
"description": "Coverage provider to use."
|
|
36
|
+
},
|
|
37
|
+
"testTarget": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "The test target of the project to be transformed to use the @nx/vitest:test executor.",
|
|
40
|
+
"hidden": true
|
|
41
|
+
},
|
|
42
|
+
"skipFormat": {
|
|
43
|
+
"description": "Skip formatting files.",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false,
|
|
46
|
+
"x-priority": "internal"
|
|
47
|
+
},
|
|
48
|
+
"testEnvironment": {
|
|
49
|
+
"description": "The vitest environment to use. See https://vitest.dev/config/#environment.",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["node", "jsdom", "happy-dom", "edge-runtime"]
|
|
52
|
+
},
|
|
53
|
+
"runtimeTsconfigFileName": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "The name of the project's tsconfig file that includes the runtime source files. If not provided, it will default to `tsconfig.lib.json` for libraries and `tsconfig.app.json` for applications."
|
|
56
|
+
},
|
|
57
|
+
"compiler": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": ["babel", "swc"],
|
|
60
|
+
"default": "babel",
|
|
61
|
+
"description": "The compiler to use"
|
|
62
|
+
},
|
|
63
|
+
"skipPackageJson": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": false,
|
|
66
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
67
|
+
"x-priority": "internal"
|
|
68
|
+
},
|
|
69
|
+
"zoneless": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Whether the Angular project is zoneless. When not provided, it is auto-detected from the project configuration.",
|
|
72
|
+
"x-priority": "internal"
|
|
73
|
+
}
|
|
15
74
|
},
|
|
16
|
-
"
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": ["angular", "react", "vue", "none"],
|
|
19
|
-
"description": "UI framework to use with vitest."
|
|
20
|
-
},
|
|
21
|
-
"inSourceTests": {
|
|
22
|
-
"type": "boolean",
|
|
23
|
-
"default": false,
|
|
24
|
-
"description": "Do not generate separate spec files and set up in-source testing."
|
|
25
|
-
},
|
|
26
|
-
"skipViteConfig": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"default": false,
|
|
29
|
-
"description": "Skip generating a vite config file."
|
|
30
|
-
},
|
|
31
|
-
"coverageProvider": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": ["v8", "istanbul", "custom"],
|
|
34
|
-
"default": "v8",
|
|
35
|
-
"description": "Coverage provider to use."
|
|
36
|
-
},
|
|
37
|
-
"testTarget": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "The test target of the project to be transformed to use the @nx/vitest:test executor.",
|
|
40
|
-
"hidden": true
|
|
41
|
-
},
|
|
42
|
-
"skipFormat": {
|
|
43
|
-
"description": "Skip formatting files.",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": false,
|
|
46
|
-
"x-priority": "internal"
|
|
47
|
-
},
|
|
48
|
-
"testEnvironment": {
|
|
49
|
-
"description": "The vitest environment to use. See https://vitest.dev/config/#environment.",
|
|
50
|
-
"type": "string",
|
|
51
|
-
"enum": ["node", "jsdom", "happy-dom", "edge-runtime"]
|
|
52
|
-
},
|
|
53
|
-
"runtimeTsconfigFileName": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"description": "The name of the project's tsconfig file that includes the runtime source files. If not provided, it will default to `tsconfig.lib.json` for libraries and `tsconfig.app.json` for applications."
|
|
56
|
-
},
|
|
57
|
-
"compiler": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"enum": ["babel", "swc"],
|
|
60
|
-
"default": "babel",
|
|
61
|
-
"description": "The compiler to use"
|
|
62
|
-
},
|
|
63
|
-
"skipPackageJson": {
|
|
64
|
-
"type": "boolean",
|
|
65
|
-
"default": false,
|
|
66
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
67
|
-
"x-priority": "internal"
|
|
68
|
-
},
|
|
69
|
-
"zoneless": {
|
|
70
|
-
"type": "boolean",
|
|
71
|
-
"description": "Whether the Angular project is zoneless. When not provided, it is auto-detected from the project configuration.",
|
|
72
|
-
"x-priority": "internal"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"required": ["project"]
|
|
75
|
+
"required": ["project"]
|
|
76
76
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "Init",
|
|
4
|
+
"title": "Nx Vitest Init Generator",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Vitest init generator.",
|
|
7
|
+
"properties": {
|
|
8
|
+
"addPlugin": {
|
|
9
|
+
"type": "boolean",
|
|
10
|
+
"x-priority": "internal",
|
|
11
|
+
"description": "Add plugin to nx.json. Defaults to true for new workspaces."
|
|
12
|
+
},
|
|
13
|
+
"rootProject": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"x-priority": "internal"
|
|
16
|
+
},
|
|
17
|
+
"keepExistingVersions": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"x-priority": "internal",
|
|
20
|
+
"description": "Keep existing dependencies versions",
|
|
21
|
+
"default": false
|
|
22
|
+
},
|
|
23
|
+
"updatePackageScripts": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"x-priority": "internal",
|
|
26
|
+
"description": "Update package scripts",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"skipFormat": {
|
|
30
|
+
"description": "Skip formatting files.",
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"skipPackageJson": {
|
|
35
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
}
|
|
12
39
|
},
|
|
13
|
-
"
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"x-priority": "internal"
|
|
16
|
-
},
|
|
17
|
-
"keepExistingVersions": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"x-priority": "internal",
|
|
20
|
-
"description": "Keep existing dependencies versions",
|
|
21
|
-
"default": false
|
|
22
|
-
},
|
|
23
|
-
"updatePackageScripts": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"x-priority": "internal",
|
|
26
|
-
"description": "Update package scripts",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"skipFormat": {
|
|
30
|
-
"description": "Skip formatting files.",
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": false
|
|
33
|
-
},
|
|
34
|
-
"skipPackageJson": {
|
|
35
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": false
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": []
|
|
40
|
+
"required": []
|
|
41
41
|
}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export declare const viteVersion = "^8.0.0";
|
|
|
3
3
|
export declare const viteV7Version = "^7.0.0";
|
|
4
4
|
export declare const viteV6Version = "^6.0.0";
|
|
5
5
|
export declare const viteV5Version = "^5.0.0";
|
|
6
|
-
export declare const vitestV4Version = "~4.0
|
|
6
|
+
export declare const vitestV4Version = "~4.1.0";
|
|
7
7
|
export declare const vitestV3Version = "^3.0.0";
|
|
8
8
|
export declare const vitestV2Version = "^2.1.8";
|
|
9
|
-
export declare const vitestVersion = "~4.0
|
|
9
|
+
export declare const vitestVersion = "~4.1.0";
|
|
10
10
|
export declare const vitePluginReactVersion = "^6.0.0";
|
|
11
11
|
export declare const vitePluginReactV4Version = "^4.2.0";
|
|
12
|
-
export declare const vitePluginReactSwcVersion = "^3.
|
|
12
|
+
export declare const vitePluginReactSwcVersion = "^4.3.0";
|
|
13
13
|
export declare const jsdomVersion = "^27.1.0";
|
|
14
14
|
export declare const vitePluginDtsVersion = "~4.5.0";
|
|
15
15
|
export declare const ajvVersion = "^8.0.0";
|
|
@@ -17,12 +17,12 @@ export declare const happyDomVersion = "~9.20.3";
|
|
|
17
17
|
export declare const edgeRuntimeVmVersion = "~3.0.2";
|
|
18
18
|
export declare const jitiVersion = "2.4.2";
|
|
19
19
|
export declare const analogVitestAngular = "~2.1.2";
|
|
20
|
-
export declare const vitestV4CoverageV8Version = "~4.
|
|
20
|
+
export declare const vitestV4CoverageV8Version = "~4.1.0";
|
|
21
21
|
export declare const vitestV3CoverageV8Version = "^3.0.5";
|
|
22
22
|
export declare const vitestV2CoverageV8Version = "^2.1.8";
|
|
23
|
-
export declare const vitestCoverageV8Version = "~4.
|
|
24
|
-
export declare const vitestV4CoverageIstanbulVersion = "~4.
|
|
23
|
+
export declare const vitestCoverageV8Version = "~4.1.0";
|
|
24
|
+
export declare const vitestV4CoverageIstanbulVersion = "~4.1.0";
|
|
25
25
|
export declare const vitestV3CoverageIstanbulVersion = "^3.0.5";
|
|
26
26
|
export declare const vitestV2CoverageIstanbulVersion = "^2.1.8";
|
|
27
|
-
export declare const vitestCoverageIstanbulVersion = "~4.
|
|
27
|
+
export declare const vitestCoverageIstanbulVersion = "~4.1.0";
|
|
28
28
|
//# sourceMappingURL=versions.d.ts.map
|
package/src/utils/versions.js
CHANGED
|
@@ -6,13 +6,13 @@ exports.viteVersion = '^8.0.0';
|
|
|
6
6
|
exports.viteV7Version = '^7.0.0';
|
|
7
7
|
exports.viteV6Version = '^6.0.0';
|
|
8
8
|
exports.viteV5Version = '^5.0.0';
|
|
9
|
-
exports.vitestV4Version = '~4.0
|
|
9
|
+
exports.vitestV4Version = '~4.1.0';
|
|
10
10
|
exports.vitestV3Version = '^3.0.0';
|
|
11
11
|
exports.vitestV2Version = '^2.1.8';
|
|
12
12
|
exports.vitestVersion = exports.vitestV4Version;
|
|
13
13
|
exports.vitePluginReactVersion = '^6.0.0';
|
|
14
14
|
exports.vitePluginReactV4Version = '^4.2.0';
|
|
15
|
-
exports.vitePluginReactSwcVersion = '^3.
|
|
15
|
+
exports.vitePluginReactSwcVersion = '^4.3.0';
|
|
16
16
|
exports.jsdomVersion = '^27.1.0';
|
|
17
17
|
exports.vitePluginDtsVersion = '~4.5.0';
|
|
18
18
|
exports.ajvVersion = '^8.0.0';
|
|
@@ -21,11 +21,11 @@ exports.edgeRuntimeVmVersion = '~3.0.2';
|
|
|
21
21
|
exports.jitiVersion = '2.4.2';
|
|
22
22
|
exports.analogVitestAngular = '~2.1.2';
|
|
23
23
|
// Coverage providers
|
|
24
|
-
exports.vitestV4CoverageV8Version = '~4.
|
|
24
|
+
exports.vitestV4CoverageV8Version = '~4.1.0';
|
|
25
25
|
exports.vitestV3CoverageV8Version = '^3.0.5';
|
|
26
26
|
exports.vitestV2CoverageV8Version = '^2.1.8';
|
|
27
27
|
exports.vitestCoverageV8Version = exports.vitestV4CoverageV8Version;
|
|
28
|
-
exports.vitestV4CoverageIstanbulVersion = '~4.
|
|
28
|
+
exports.vitestV4CoverageIstanbulVersion = '~4.1.0';
|
|
29
29
|
exports.vitestV3CoverageIstanbulVersion = '^3.0.5';
|
|
30
30
|
exports.vitestV2CoverageIstanbulVersion = '^2.1.8';
|
|
31
31
|
exports.vitestCoverageIstanbulVersion = exports.vitestV4CoverageIstanbulVersion;
|