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
|
|
@ -40,7 +40,9 @@
|
|||
"pino": "8.16.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@emigrate/tsconfig": "workspace:*"
|
||||
"@emigrate/tsconfig": "workspace:*",
|
||||
"@types/bun": "1.0.5",
|
||||
"bun-types": "1.0.26"
|
||||
},
|
||||
"volta": {
|
||||
"extends": "../../package.json"
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ class PinoReporter implements Required<EmigrateReporter> {
|
|||
scope: command,
|
||||
version,
|
||||
},
|
||||
transport: process.isBun ? { target: 'pino/file', options: { destination: 1 } } : undefined,
|
||||
});
|
||||
|
||||
this.#logger.info({ parameters }, `Emigrate "${command}" initialized${parameters.dry ? ' (dry-run)' : ''}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue