Skip to content

Commit

Permalink
fix(js): correctly build library with workspace dependencies (#12884)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Oct 28, 2022
1 parent d8dc205 commit 2cddd68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/js/src/utils/check-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export function checkDependencies(
context.root,
context.projectName,
context.targetName,
context.configurationName,
true
context.configurationName
);
const projectRoot = target.data.root;

Expand Down
3 changes: 2 additions & 1 deletion packages/workspace/src/utilities/buildable-libs-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ function collectDependencies(
return;

acc.push({ name: dependency.target, isTopLevel: areTopLevelDeps });
if (!shallow) {
const isInternalTarget = projGraph.nodes[dependency.target];
if (!shallow && isInternalTarget) {
collectDependencies(dependency.target, projGraph, acc, shallow, false);
}
}
Expand Down

1 comment on commit 2cddd68

@vercel
Copy link

@vercel vercel bot commented on 2cddd68 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.