Skip to content

Commit f7b5824

Browse files
renovate[bot]github-actions[bot]n1ru4l
authored
fix(deps): update dependency consola to v3 (#244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Laurin Quast <[email protected]>
1 parent f74688c commit f7b5824

File tree

7 files changed

+22
-15
lines changed

7 files changed

+22
-15
lines changed

.changeset/bob-the-bundler-229-dependencies.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44

55
dependencies updates:
66

7-
- Updated dependency
8-
[`typescript@^4.7.4 || ^5.0.0` ↗︎](https://www.npmjs.com/package/typescript/v/4.7.4) (from
9-
`^4.7.4`, in `peerDependencies`)
7+
- Updated dependency [`typescript@^5.0.0` ↗︎](https://www.npmjs.com/package/typescript/v/4.7.4)
8+
(from `^4.7.4`, in `peerDependencies`)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'bob-the-bundler': patch
3+
---
4+
5+
dependencies updates:
6+
7+
- Updated dependency [`consola@^3.0.0` ↗︎](https://www.npmjs.com/package/consola/v/3.0.0) (from
8+
`^2.15.3`, in `dependencies`)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"typescript": "^5.0.0"
4949
},
5050
"dependencies": {
51-
"consola": "^2.15.3",
51+
"consola": "^3.0.0",
5252
"execa": "6.1.0",
5353
"fs-extra": "^11.1.0",
5454
"globby": "^13.1.3",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)