vktrl / bun-plugin-pino

Bundle Pino logger runtime dependencies with Bun
MIT License
0 stars 0 forks source link

can't output entrypoints when `chalk` < 5.3.0 #1

Closed cubxx closed 2 months ago

cubxx commented 2 months ago

when I install bun-plugin-pino, it won't install chalk, but I still run it with no console error. because I use it in monorepo, and other package in monorepo have installed low version chalk. So bun-plugin-pino don't show runtime error but appear output error just like issue title.

maybe chalk should be in dependencies not devDependencies

vktrl commented 2 months ago

Thanks for the report!

I just yeeted chalk and added some logging options. Try out version 1.1.0.

cubxx commented 2 months ago

thanks for your working. Unexpectly, I find it maybe not problem of bun-plugin-pino, but bun https://github.com/oven-sh/bun/issues/13445#issue-2477746910

vktrl commented 2 months ago

thanks for your working. Unexpectly, I find it maybe not problem of bun-plugin-pino, but bun oven-sh/bun#13445 (comment)

Not installing dev dependencies of dev dependencies should be the correct behavior. Either way, issues with module resolution and dependency management are why this package exists in the first place, and library authors adding deps instead of a couple of lines of code are not helping.