fix(reporter-pino): make sure the Pino reporter outputs logs in Bun environments
This commit is contained in:
parent
520fdd94ef
commit
081ab34cb4
4 changed files with 15 additions and 1 deletions
5
.changeset/afraid-rules-wait.md
Normal file
5
.changeset/afraid-rules-wait.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@emigrate/reporter-pino': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Make sure Pino outputs logs in Bun environments
|
||||||
|
|
@ -40,7 +40,9 @@
|
||||||
"pino": "8.16.2"
|
"pino": "8.16.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@emigrate/tsconfig": "workspace:*"
|
"@emigrate/tsconfig": "workspace:*",
|
||||||
|
"@types/bun": "1.0.5",
|
||||||
|
"bun-types": "1.0.26"
|
||||||
},
|
},
|
||||||
"volta": {
|
"volta": {
|
||||||
"extends": "../../package.json"
|
"extends": "../../package.json"
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ class PinoReporter implements Required<EmigrateReporter> {
|
||||||
scope: command,
|
scope: command,
|
||||||
version,
|
version,
|
||||||
},
|
},
|
||||||
|
transport: process.isBun ? { target: 'pino/file', options: { destination: 1 } } : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.#logger.info({ parameters }, `Emigrate "${command}" initialized${parameters.dry ? ' (dry-run)' : ''}`);
|
this.#logger.info({ parameters }, `Emigrate "${command}" initialized${parameters.dry ? ' (dry-run)' : ''}`);
|
||||||
|
|
|
||||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
|
|
@ -191,6 +191,12 @@ importers:
|
||||||
'@emigrate/tsconfig':
|
'@emigrate/tsconfig':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../tsconfig
|
version: link:../tsconfig
|
||||||
|
'@types/bun':
|
||||||
|
specifier: 1.0.5
|
||||||
|
version: 1.0.5
|
||||||
|
bun-types:
|
||||||
|
specifier: 1.0.26
|
||||||
|
version: 1.0.26
|
||||||
|
|
||||||
packages/storage-fs:
|
packages/storage-fs:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue