Skip to content

Commit 22a3c25

Browse files
authored
fix: doctor command prints output twice (#1334)
It turns out that, by a mistake, `doctor` command is registered twice, both as project and detached command. It has been converted to `detached` few months ago. It could be hidden `commander` feature that when multiple functions are registered under the same name, they run in order. Attaching some screenshots for reference: Removing it from `projectCommands` fixes the problem. We will address similar issue #1261 soon where detached commands (such as `doctor` included) can receive and take advantage of `config` when present in the project.
1 parent 9f8ae99 commit 22a3c25

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/cli/src/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const projectCommands = [
2424
upgrade,
2525
info,
2626
config,
27-
doctor,
2827
profileHermes,
2928
] as Command[];
3029

0 commit comments

Comments
 (0)