nx 20.8.0-beta.0 → 20.8.0-beta.2
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",
|
3
|
-
"version": "20.8.0-beta.
|
3
|
+
"version": "20.8.0-beta.2",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -82,16 +82,16 @@
|
|
82
82
|
}
|
83
83
|
},
|
84
84
|
"optionalDependencies": {
|
85
|
-
"@nx/nx-darwin-arm64": "20.8.0-beta.
|
86
|
-
"@nx/nx-darwin-x64": "20.8.0-beta.
|
87
|
-
"@nx/nx-freebsd-x64": "20.8.0-beta.
|
88
|
-
"@nx/nx-linux-arm-gnueabihf": "20.8.0-beta.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "20.8.0-beta.
|
90
|
-
"@nx/nx-linux-arm64-musl": "20.8.0-beta.
|
91
|
-
"@nx/nx-linux-x64-gnu": "20.8.0-beta.
|
92
|
-
"@nx/nx-linux-x64-musl": "20.8.0-beta.
|
93
|
-
"@nx/nx-win32-arm64-msvc": "20.8.0-beta.
|
94
|
-
"@nx/nx-win32-x64-msvc": "20.8.0-beta.
|
85
|
+
"@nx/nx-darwin-arm64": "20.8.0-beta.2",
|
86
|
+
"@nx/nx-darwin-x64": "20.8.0-beta.2",
|
87
|
+
"@nx/nx-freebsd-x64": "20.8.0-beta.2",
|
88
|
+
"@nx/nx-linux-arm-gnueabihf": "20.8.0-beta.2",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "20.8.0-beta.2",
|
90
|
+
"@nx/nx-linux-arm64-musl": "20.8.0-beta.2",
|
91
|
+
"@nx/nx-linux-x64-gnu": "20.8.0-beta.2",
|
92
|
+
"@nx/nx-linux-x64-musl": "20.8.0-beta.2",
|
93
|
+
"@nx/nx-win32-arm64-msvc": "20.8.0-beta.2",
|
94
|
+
"@nx/nx-win32-x64-msvc": "20.8.0-beta.2"
|
95
95
|
},
|
96
96
|
"nx-migrations": {
|
97
97
|
"migrations": "./migrations.json",
|
Binary file
|
@@ -138,8 +138,20 @@ skipTargetNormalization) {
|
|
138
138
|
const normalizedTarget = skipTargetNormalization
|
139
139
|
? target
|
140
140
|
: resolveCommandSyntacticSugar(target, project.root);
|
141
|
-
|
142
|
-
|
141
|
+
let matchingTargets = [];
|
142
|
+
if ((0, globs_1.isGlobPattern)(targetName)) {
|
143
|
+
// find all targets matching the glob pattern
|
144
|
+
// this will map atomized targets to the glob pattern same as it does for targetDefaults
|
145
|
+
matchingTargets = Object.keys(updatedProjectConfiguration.targets).filter((key) => (0, minimatch_1.minimatch)(key, targetName));
|
146
|
+
}
|
147
|
+
// If no matching targets were found, we can assume that the target name is not (meant to be) a glob pattern
|
148
|
+
if (!matchingTargets.length) {
|
149
|
+
matchingTargets = [targetName];
|
150
|
+
}
|
151
|
+
for (const matchingTargetName of matchingTargets) {
|
152
|
+
const mergedTarget = mergeTargetConfigurations(normalizedTarget, matchingProject.targets?.[matchingTargetName], sourceMap, sourceInformation, `targets.${matchingTargetName}`);
|
153
|
+
updatedProjectConfiguration.targets[matchingTargetName] = mergedTarget;
|
154
|
+
}
|
143
155
|
}
|
144
156
|
}
|
145
157
|
projectRootMap[updatedProjectConfiguration.root] =
|