Skip to content

Commit

Permalink
fix(cli): filter packages before installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Feb 20, 2024
1 parent c67e56d commit 899d607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const tasks = new Listr<Ctx>([
const filtered = functionOptions.filter((o) =>
ctx.functions.includes(o.value),
);
const packages = filtered.flatMap((f) => f.packages ?? []);
const packages = [...new Set(filtered.flatMap((f) => f.packages ?? []))];
const notInstalled = packages.filter(
(p) =>
!(
Expand Down

0 comments on commit 899d607

Please sign in to comment.