Skip to content

Commit

Permalink
fix(common): fix TypeError: Failed to process project dependencies
Browse files Browse the repository at this point in the history
Closes #217
  • Loading branch information
tinesoft committed Mar 27, 2024
1 parent 05562aa commit ca7f96c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/common/src/lib/workspace/project-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ function getDependenciesForProject(
const sourceProjectRoot = getProjectRootFromFile(filePath);
const sourcePkgInfo = workspace.projects[sourceProjectRoot];

if(!sourcePkgInfo)
return dependencies;

sourcePkgInfo.dependencies?.forEach((depPkgInfo) => {
const targetProjectName = workspace.packages[depPkgInfo.packageId];

Expand Down

0 comments on commit ca7f96c

Please sign in to comment.