Open spiffytech opened 4 months ago
I wouldn't mind it not being the default, but I would love to be able to stream the output. PNPM has a flag for this:
--stream : Stream output from child processes immediately, prefixed with the originating package directory. This allows output from different packages to be interleaved.
One I have a good user experience with is by using concurrently
npm package with the --names
to add prefix names, the --prefix-colors=auto
for auto coloration.
Here is an example, left is bun run --filter '*' start
, right isconcurrently --names=client,server --prefix-colors=auto 'bun run start:client' 'bun run start:server'
I hope bun team looks into this, it's quite an annoying blocker of using this feature with bun.
please provide us a with a way of running bun applications that actually shows terminal output as a whole and not just the 5 latest lines
I think I have two issues in one:
$ bun --filter="./packages/database" db:push --force
@project/database db:push $ drizzle-kit push --config=drizzle.config.ts
│ [15 lines elided] <--- first issue here
[⣽] Pulling schema from database...
[⣷] Pulling schema from database...
[⣯] Pulling schema from database...
[⣟] Pulling schema from database...
[⡿] Pulling schema from database...
[✓] Pulling schema from database...
│
│ Is customer_id column in subscriptions table created or renamed from another column?
│ ❯ + customer_id create column <--- second issue here
│ ~ customerId › customer_id rename column
└─ Done in 12.82 s
Any luck with the first part? How can we see the full output instead of last few lines? And, anyone having a similar problem with blocked inputs?
What is the problem this feature would solve?
My DB migration library prints out what's wrong with my SQL, but running
bun run migrate
from my project top-level omits the most important lines from the error: the SQL error message.If I
cd
intopackages/server
and run the same command manually I get the full error:What is the feature you are proposing to solve the problem?
A way for
bun run
to print the entire, unabridged output from workspace scripts. Maybe by default, maybe with a flag.What alternatives have you considered?
Just not using top-level
package.json
scripts if they're not gonna show me complete output, but then I have to specify the.env
file for every command