Skip to content

Commit a58a8f7

Browse files
authored
Include both dependencies and dependents when scoping the build command (#220)
1 parent 1578387 commit a58a8f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/github.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ const since = process.env.GITHUB_ACTION
1212
: "";
1313

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

2021
const ref = process.env.GITHUB_SHA ?? "HEAD";

0 commit comments

Comments
 (0)