mcollina / pino-roll

A Pino transport that automatically rolls your log files
MIT License
45 stars 11 forks source link

feat: Add default export typings #59

Closed FoxxMD closed 8 months ago

FoxxMD commented 8 months ago

Built on #58 -- adds Typescript typings for the default pino-roll export.

Unfortunately this is not ready to merge due to this library using CJS-style exports which cause issues with importing in ESM-style projects.

https://github.com/microsoft/TypeScript/issues/52086 https://github.com/microsoft/TypeScript/issues/53045

Possibly can be fixed by outputting different builds for esm and cjs and specifying in package.json (using something like tshy) or by updating this library to be ESM on a major version bump (breaking change).