Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add default export typings #59

Closed
wants to merge 2 commits into from

Conversation

FoxxMD
Copy link
Contributor

@FoxxMD FoxxMD commented Feb 23, 2024

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.

microsoft/TypeScript#52086
microsoft/TypeScript#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).

"Prefix" before file number. Enables users to pattern their file name independently of number of log in current rotation.
@FoxxMD FoxxMD closed this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant