@@ -13,11 +13,7 @@ import {
1313 getCommunityAddon
1414} from '@sveltejs/addons' ;
1515import type { AgentName } from 'package-manager-detector' ;
16- import {
17- type AddonWithoutExplicitArgs ,
18- type OptionValues ,
19- type PackageManager
20- } from '@sveltejs/cli-core' ;
16+ import type { AddonWithoutExplicitArgs , OptionValues , PackageManager } from '@sveltejs/cli-core' ;
2117import * as common from '../../utils/common.ts' ;
2218import { createWorkspace } from './workspace.ts' ;
2319import { formatFiles , getHighlighter } from './utils.ts' ;
@@ -96,10 +92,7 @@ export const add = new Command('add')
9692 const selectedAddons = transformAliases ( specifiedAddons ) ;
9793 common . runCommand ( async ( ) => {
9894 const { nextSteps } = await runAddCommand ( options , selectedAddons ) ;
99- if ( nextSteps )
100- p . note ( nextSteps , 'Next steps' , {
101- format : ( line ) => pc . white ( line )
102- } ) ;
95+ if ( nextSteps ) p . note ( nextSteps , 'Next steps' , { format : ( line ) => line } ) ;
10396 } ) ;
10497 } ) ;
10598
@@ -363,9 +356,7 @@ export async function runAddCommand(
363356 . map ( ( { name, message } ) => pc . yellow ( `${ name } (${ message } )` ) )
364357 . join ( '\n- ' ) ;
365358
366- p . note ( `- ${ message } ` , 'Preconditions not met' , {
367- format : ( line ) => pc . white ( line )
368- } ) ;
359+ p . note ( `- ${ message } ` , 'Preconditions not met' , { format : ( line ) => line } ) ;
369360
370361 const force = await p . confirm ( {
371362 message : 'Preconditions failed. Do you wish to continue?' ,
0 commit comments