@nx/devkit 24.0.0-beta.2 → 24.0.0-pr.37405.acdaf31
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.
|
@@ -3,9 +3,9 @@ import type { TargetConfiguration } from 'nx/src/devkit-exports';
|
|
|
3
3
|
export declare function dependsOnProjects(values: string[]): string[];
|
|
4
4
|
/**
|
|
5
5
|
* `target` narrowed to the projects a test file names: its dependency inputs
|
|
6
|
-
* (`^…`, `dependencies: true`) become
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* (`^…`, `dependencies: true`) become one input selecting `projects`, by the
|
|
7
|
+
* first named input among them (else `default`) and kept under ultracache
|
|
8
|
+
* (`always: true`). Its `dependsOn` entries naming projects, the servers the
|
|
9
|
+
* test talks to, get `inputs: false`.
|
|
10
10
|
*/
|
|
11
11
|
export declare function scopeTestTargetToProjects(target: TargetConfiguration, projects: string[]): TargetConfiguration;
|
|
@@ -18,10 +18,10 @@ function dependsOnProjects(values) {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* `target` narrowed to the projects a test file names: its dependency inputs
|
|
21
|
-
* (`^…`, `dependencies: true`) become
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* (`^…`, `dependencies: true`) become one input selecting `projects`, by the
|
|
22
|
+
* first named input among them (else `default`) and kept under ultracache
|
|
23
|
+
* (`always: true`). Its `dependsOn` entries naming projects, the servers the
|
|
24
|
+
* test talks to, get `inputs: false`.
|
|
25
25
|
*/
|
|
26
26
|
function scopeTestTargetToProjects(target, projects) {
|
|
27
27
|
return {
|
|
@@ -54,7 +54,10 @@ function scopeDependencyInputs(inputs, projects) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
own.splice(position ?? own.length, 0, {
|
|
58
|
+
input: namedInput ?? 'default',
|
|
59
|
+
projects,
|
|
60
|
+
always: true,
|
|
61
|
+
});
|
|
59
62
|
return own;
|
|
60
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/devkit",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-pr.37405.acdaf31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"jest": "30.3.0",
|
|
70
|
-
"nx": "24.0.0-
|
|
70
|
+
"nx": "24.0.0-pr.37405.acdaf31"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"nx": ">= 23 <= 25 || ^24.0.0-0"
|