Skip to content

Commit 3bb624a

Browse files
authored
fix(core): do not hardcode checks for npm (#14827)
1 parent c2419d0 commit 3bb624a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/nx/src/utils/project-graph-utils.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ describe('project graph utils', () => {
5454
data: {},
5555
},
5656
},
57+
externalNodes: {
58+
'npm:chalk': {},
59+
},
5760
dependencies: {
5861
'demo-app': [
5962
{

packages/nx/src/utils/project-graph-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function collectDependentProjectNodesNames(
111111
for (const dependency of dependencies) {
112112
const dependencyName = dependency.target;
113113

114-
// we're only intersted in project dependencies, not npm
115-
if (dependencyName.startsWith('npm:')) {
114+
// we're only interested in internal nodes, not external
115+
if (nxDeps.externalNodes?.[dependencyName]) {
116116
continue;
117117
}
118118

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy