fix: wrap clack notes for cleaner boxes

This commit is contained in:
Peter Steinberger
2026-01-11 04:23:33 +01:00
parent 76c5bff7d6
commit 29884f8d6f
11 changed files with 105 additions and 50 deletions

View File

@@ -4,7 +4,6 @@ import {
intro,
isCancel,
multiselect,
note,
type Option,
outro,
select,
@@ -18,6 +17,7 @@ import {
stylePromptTitle,
} from "../terminal/prompt-style.js";
import { theme } from "../terminal/theme.js";
import { note as emitNote } from "../terminal/note.js";
import type { WizardProgress, WizardPrompter } from "./prompts.js";
import { WizardCancelledError } from "./prompts.js";
@@ -38,7 +38,7 @@ export function createClackPrompter(): WizardPrompter {
outro(stylePromptTitle(message) ?? message);
},
note: async (message, title) => {
note(message, stylePromptTitle(title));
emitNote(message, title);
},
select: async (params) =>
guardCancel(