Skip to content

Commit 276e5bb

Browse files
committed
list early return
1 parent e776f9c commit 276e5bb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/brave-zoos-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeshift/cli': patch
3+
---
4+
5+
Return if list finds an invalid package

packages/cli/src/list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export default async function list(packages: string[]) {
1717
`Unable to find codeshift package: ${chalk.bold(codemodName)}.`,
1818
),
1919
);
20+
21+
return;
2022
}
2123

2224
await packageManager.install(codemodName);

0 commit comments

Comments
 (0)