@nx/workspace 21.2.3 → 21.2.4
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/workspace",
|
3
|
-
"version": "21.2.
|
3
|
+
"version": "21.2.4",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
6
6
|
"repository": {
|
@@ -38,14 +38,14 @@
|
|
38
38
|
}
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@nx/devkit": "21.2.
|
41
|
+
"@nx/devkit": "21.2.4",
|
42
42
|
"@zkochan/js-yaml": "0.0.7",
|
43
43
|
"chalk": "^4.1.0",
|
44
44
|
"enquirer": "~2.3.6",
|
45
45
|
"picomatch": "4.0.2",
|
46
46
|
"tslib": "^2.3.0",
|
47
47
|
"yargs-parser": "21.1.1",
|
48
|
-
"nx": "21.2.
|
48
|
+
"nx": "21.2.4"
|
49
49
|
},
|
50
50
|
"publishConfig": {
|
51
51
|
"access": "public"
|
@@ -20,16 +20,9 @@ function getNxCloudRecordCommand(ci, packageManagerPrefix) {
|
|
20
20
|
function getNxTasksCommand(ci, packageManagerPrefix, mainBranch, hasTypecheck, hasE2E, useRunMany = false) {
|
21
21
|
const tasks = `lint test build${hasTypecheck ? ' typecheck' : ''}${hasE2E ? ' e2e' : ''}`;
|
22
22
|
const commandType = useRunMany ? 'run-many' : 'affected';
|
23
|
-
const nxCommandComments =
|
24
|
-
? [
|
25
|
-
|
26
|
-
]
|
27
|
-
: [
|
28
|
-
`Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected`,
|
29
|
-
];
|
30
|
-
if (hasE2E) {
|
31
|
-
nxCommandComments.push(`When you enable task distribution, run the e2e-ci task instead of e2e`);
|
32
|
-
}
|
23
|
+
const nxCommandComments = hasE2E
|
24
|
+
? [`When you enable task distribution, run the e2e-ci task instead of e2e`]
|
25
|
+
: [];
|
33
26
|
const args = getCiArgs(ci, mainBranch, useRunMany);
|
34
27
|
const nxCommand = `${packageManagerPrefix} nx ${commandType} ${args}-t ${tasks}`;
|
35
28
|
return {
|
@@ -87,13 +80,6 @@ function getBitbucketBranchCommands(packageManagerPrefix, hasTypecheck, hasE2E,
|
|
87
80
|
];
|
88
81
|
// Build nx command comments and command
|
89
82
|
const commandType = useRunMany ? 'run-many' : 'affected';
|
90
|
-
const nxCommandComments = useRunMany
|
91
|
-
? [
|
92
|
-
`As your workspace grows, you can change this to use Nx Affected to run only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected`,
|
93
|
-
]
|
94
|
-
: [
|
95
|
-
`Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected`,
|
96
|
-
];
|
97
83
|
// Build command with conditional base arg
|
98
84
|
const baseArg = useRunMany ? '' : ' --base=HEAD~1';
|
99
85
|
const command = `${packageManagerPrefix} nx ${commandType} -t ${tasks}${baseArg}`;
|
@@ -102,7 +88,6 @@ function getBitbucketBranchCommands(packageManagerPrefix, hasTypecheck, hasE2E,
|
|
102
88
|
comments: nxCloudComments,
|
103
89
|
},
|
104
90
|
{
|
105
|
-
comments: nxCommandComments,
|
106
91
|
command,
|
107
92
|
},
|
108
93
|
];
|