We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa8fd6 commit 602382aCopy full SHA for 602382a
1 file changed
packages/core/src/cli.ts
@@ -461,7 +461,17 @@ async function cmdDoctor(args: string[]): Promise<void> {
461
462
// Short display name
463
const displayName = key.startsWith("/") || key.startsWith(".")
464
- ? path.basename(path.dirname(key))
+ ? (() => {
465
+ // For file paths like /path/to/adapter-linkedin/dist/index.js
466
+ // we want "adapter-linkedin", not "dist"
467
+ const dir = path.dirname(key);
468
+ const base = path.basename(dir);
469
+ // If the immediate parent is "dist", "src", etc., go one more level up
470
+ if (["dist", "src", "build", "lib"].includes(base)) {
471
+ return path.basename(path.dirname(dir));
472
+ }
473
+ return base;
474
+ })()
475
: key.replace("@browserkit-dev/", "");
476
477
let status: string;
0 commit comments