Skip to content

Commit 3575e36

Browse files
committed
fix: filter duplicate values
1 parent ebda024 commit 3575e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ const main = defineCommand({
150150
const isBinaryApplication = !!args.bin;
151151
const isCommentWithSha = !!args.commentWithSha;
152152
const comment: Comment = args.comment as Comment;
153-
const selectedPackageManager = (args.packageManager as string)
153+
const selectedPackageManager = [...new Set((args.packageManager as string)
154154
.split(",")
155-
.filter((s) => s.trim()) as Array<"npm" | "bun" | "pnpm" | "yarn">;
155+
.filter((s) => s.trim()) as Array<"npm" | "bun" | "pnpm" | "yarn">)];
156156
const packageManagers = ["npm", "bun", "pnpm", "yarn"];
157157

158158
if (!selectedPackageManager.length) {

0 commit comments

Comments
 (0)