'Using Bunyan cli with ts-node output

I am using bunyan to produced structured logging and when I run it using ts-node, the logging is displayed correctly to the console.

But if I try to pipe the output to the bunyan cli (to get it looking pretty) it does not display anything to the console. Here is the command I enter (running in windows pwsh)

ts-node ./src/index.ts | ./node_modules/.bin/bunyan.ps1

Can anyone explain why this doesn't work as expected?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source