@@ -13,7 +13,12 @@ import {
1313 getCommunityAddon
1414} from '@sveltejs/addons' ;
1515import type { AgentName } from 'package-manager-detector' ;
16- import type { AddonWithoutExplicitArgs , OptionValues , PackageManager } from '@sveltejs/cli-core' ;
16+ import {
17+ colors ,
18+ type AddonWithoutExplicitArgs ,
19+ type OptionValues ,
20+ type PackageManager
21+ } from '@sveltejs/cli-core' ;
1722import * as common from '../../utils/common.ts' ;
1823import { createWorkspace } from './workspace.ts' ;
1924import { formatFiles , getHighlighter } from './utils.ts' ;
@@ -92,7 +97,10 @@ export const add = new Command('add')
9297 const selectedAddons = transformAliases ( specifiedAddons ) ;
9398 common . runCommand ( async ( ) => {
9499 const { nextSteps } = await runAddCommand ( options , selectedAddons ) ;
95- if ( nextSteps ) p . note ( nextSteps , 'Next steps' ) ;
100+ if ( nextSteps )
101+ p . note ( nextSteps , 'Next steps' , {
102+ format : ( line ) => colors . white ( line )
103+ } ) ;
96104 } ) ;
97105 } ) ;
98106
@@ -356,7 +364,9 @@ export async function runAddCommand(
356364 . map ( ( { name, message } ) => pc . yellow ( `${ name } (${ message } )` ) )
357365 . join ( '\n- ' ) ;
358366
359- p . note ( `- ${ message } ` , 'Preconditions not met' ) ;
367+ p . note ( `- ${ message } ` , 'Preconditions not met' , {
368+ format : ( line ) => colors . white ( line )
369+ } ) ;
360370
361371 const force = await p . confirm ( {
362372 message : 'Preconditions failed. Do you wish to continue?' ,
0 commit comments