Skip to content

Commit ebf692e

Browse files
committed
tweaks + remove unnecessary white coloring
1 parent b9ba345 commit ebf692e

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

packages/cli/commands/add/index.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ import {
1313
getCommunityAddon
1414
} from '@sveltejs/addons';
1515
import 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';
2117
import * as common from '../../utils/common.ts';
2218
import { createWorkspace } from './workspace.ts';
2319
import { 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?',

packages/cli/commands/create.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,8 @@ export const create = new Command('create')
9393
`Stuck? Visit us at ${pc.cyan('https://svelte.dev/chat')}`
9494
];
9595

96-
p.note(steps.join('\n'), 'Project next steps', {
97-
format: (line) => pc.white(line)
98-
});
99-
if (addOnNextSteps)
100-
p.note(addOnNextSteps, 'Add-on next steps', {
101-
format: (line) => pc.white(line)
102-
});
96+
p.note(steps.join('\n'), 'Project next steps', { format: (line) => line });
97+
if (addOnNextSteps) p.note(addOnNextSteps, 'Add-on next steps', { format: (line) => line });
10398
});
10499
});
105100

0 commit comments

Comments
 (0)