fix: Use process.stdout.write instead of console.log (#3508)

This commit is contained in:
Haris Gušić
2025-10-28 21:38:08 +01:00
committed by GitHub
parent b261430880
commit 832ffd2303
5 changed files with 15 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import { EOL } from "os"
import { Config } from "../../../config/config"
import { bootstrap } from "../../bootstrap"
import { cmd } from "../cmd"
@@ -8,7 +9,7 @@ export const ConfigCommand = cmd({
async handler() {
await bootstrap(process.cwd(), async () => {
const config = await Config.get()
console.log(JSON.stringify(config, null, 2))
process.stdout.write(JSON.stringify(config, null, 2) + EOL)
})
},
})