Skip to content

Commit b720046

Browse files
committed
update snapshot
1 parent 27b3499 commit b720046

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Consola } from 'consola';
2-
import { CommandModule } from 'yargs';
1+
import { type ConsolaInstance } from 'consola';
2+
import { type CommandModule } from 'yargs';
33

44
export { CommandModule as Command };
55

66
export interface CommandAPI {
7-
reporter: Consola;
7+
reporter: ConsolaInstance;
88
}
99

1010
export type CommandFactory<T = {}, U = {}> = (api: CommandAPI) => CommandModule<T, U>;

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert';
22
import { dirname, join, resolve } from 'path';
3-
import { Consola } from 'consola';
3+
import { type ConsolaInstance } from 'consola';
44
import { execa, ExecaReturnValue } from 'execa';
55
import fse from 'fs-extra';
66
import { globby } from 'globby';
@@ -211,7 +211,7 @@ async function build({
211211
bin?: Record<string, string>;
212212
};
213213
fullName: string;
214-
reporter: Consola;
214+
reporter: ConsolaInstance;
215215
getBuildPath: (target: 'esm' | 'cjs') => string;
216216
distPath: string;
217217
}) {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
import consola from 'consola';
2+
import { createConsola } from 'consola';
33
import yargs, { Argv } from 'yargs';
44
import { hideBin } from 'yargs/helpers';
55
import { CommandFactory } from './command.js';
@@ -12,7 +12,7 @@ async function main() {
1212

1313
const commands: CommandFactory<any, any>[] = [buildCommand, bootstrapCommand, checkCommand];
1414

15-
const reporter = consola.create({});
15+
const reporter = createConsola({});
1616

1717
commands
1818
.reduce((cli, cmd) => cli.command(cmd({ reporter })), root)

0 commit comments

Comments
 (0)