Skip to content

Commit

Permalink
Include both dependencies and dependents when scoping the build comma…
Browse files Browse the repository at this point in the history
…nd (#220)
  • Loading branch information
jamesdaniels authored Jul 9, 2024
1 parent 1578387 commit a58a8f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ const since = process.env.GITHUB_ACTION
: "";

const lernaList = JSON.parse(
execSync(`lerna list --json ${packageFromRef ? "" : since}`, {
stdio: ["ignore", "pipe", "ignore"],
}).toString(),
execSync(
`lerna list --json --include-dependencies --include-dependents ${packageFromRef ? "" : since}`,
{ stdio: ["ignore", "pipe", "ignore"] },
).toString(),
);

const ref = process.env.GITHUB_SHA ?? "HEAD";
Expand Down

0 comments on commit a58a8f7

Please sign in to comment.