From fce0637088104e83180835de0658ef46a17b9992 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 15 Mar 2023 18:11:36 -0400 Subject: [PATCH] fix(core): wildcard implicit dependency should support scoped project names (#15699) --- packages/nx/src/utils/find-matching-projects.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/utils/find-matching-projects.ts b/packages/nx/src/utils/find-matching-projects.ts index 88474801451c47..7162874e58e67f 100644 --- a/packages/nx/src/utils/find-matching-projects.ts +++ b/packages/nx/src/utils/find-matching-projects.ts @@ -31,7 +31,8 @@ export function findMatchingProjects( const exclude = nameOrGlob.startsWith('!'); const pattern = exclude ? nameOrGlob.substring(1) : nameOrGlob; - const matchedProjectNames = minimatch.match(projectNames, pattern); + const matchedProjectNames = + pattern === '*' ? projectNames : minimatch.match(projectNames, pattern); matchedProjectNames.forEach((matchedProjectName) => { if (exclude) {