Skip to content

Commit b9ba345

Browse files
committed
use correct import
1 parent 461ef4c commit b9ba345

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/cli/commands/add/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
} from '@sveltejs/addons';
1515
import type { AgentName } from 'package-manager-detector';
1616
import {
17-
colors,
1817
type AddonWithoutExplicitArgs,
1918
type OptionValues,
2019
type PackageManager
@@ -99,7 +98,7 @@ export const add = new Command('add')
9998
const { nextSteps } = await runAddCommand(options, selectedAddons);
10099
if (nextSteps)
101100
p.note(nextSteps, 'Next steps', {
102-
format: (line) => colors.white(line)
101+
format: (line) => pc.white(line)
103102
});
104103
});
105104
});
@@ -365,7 +364,7 @@ export async function runAddCommand(
365364
.join('\n- ');
366365

367366
p.note(`- ${message}`, 'Preconditions not met', {
368-
format: (line) => colors.white(line)
367+
format: (line) => pc.white(line)
369368
});
370369

371370
const force = await p.confirm({

packages/cli/commands/create.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
installOption,
2323
packageManagerPrompt
2424
} from '../utils/package-manager.ts';
25-
import { colors } from '@sveltejs/cli-core';
2625

2726
const langs = ['ts', 'jsdoc'] as const;
2827
const langMap: Record<string, LanguageType | undefined> = {
@@ -95,11 +94,11 @@ export const create = new Command('create')
9594
];
9695

9796
p.note(steps.join('\n'), 'Project next steps', {
98-
format: (line) => colors.white(line)
97+
format: (line) => pc.white(line)
9998
});
10099
if (addOnNextSteps)
101100
p.note(addOnNextSteps, 'Add-on next steps', {
102-
format: (line) => colors.white(line)
101+
format: (line) => pc.white(line)
103102
});
104103
});
105104
});

0 commit comments

Comments
 (0)