Skip to content

Commit 85a85b1

Browse files
committed
nit
1 parent e041c34 commit 85a85b1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/cli/commands/add/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -591,18 +591,16 @@ export async function runAddCommand(
591591

592592
// print next steps
593593
const nextSteps = selectedAddons
594-
.filter(({ addon }) => addon.nextSteps)
595594
.map(({ addon }) => {
595+
if (!addon.nextSteps) return;
596596
let addonMessage = `${pc.green(addon.id)}:\n`;
597597

598-
const addonNextSteps = addon.nextSteps!({
599-
...workspace,
600-
options: official[addon.id]!,
601-
highlighter
602-
});
598+
const options = official[addon.id];
599+
const addonNextSteps = addon.nextSteps({ ...workspace, options, highlighter });
603600
addonMessage += ` - ${addonNextSteps.join('\n - ')}`;
604601
return addonMessage;
605-
});
602+
})
603+
.filter((msg) => msg !== undefined);
606604

607605
return { nextSteps, packageManager };
608606
}

0 commit comments

Comments
 (0)