Skip to content

Commit ca7f96c

Browse files
committed
fix(common): fix TypeError: Failed to process project dependencies
Closes #217
1 parent 05562aa commit ca7f96c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/common/src/lib/workspace/project-graph.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function getDependenciesForProject(
7373
const sourceProjectRoot = getProjectRootFromFile(filePath);
7474
const sourcePkgInfo = workspace.projects[sourceProjectRoot];
7575

76+
if(!sourcePkgInfo)
77+
return dependencies;
78+
7679
sourcePkgInfo.dependencies?.forEach((depPkgInfo) => {
7780
const targetProjectName = workspace.packages[depPkgInfo.packageId];
7881

0 commit comments

Comments
 (0)