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

bug: new LogLevel enum is not exported properly #95

Closed
regevbr opened this issue May 7, 2020 · 0 comments · Fixed by #96
Closed

bug: new LogLevel enum is not exported properly #95

regevbr opened this issue May 7, 2020 · 0 comments · Fixed by #96

Comments

@regevbr
Copy link
Contributor

regevbr commented May 7, 2020

In #94 I added/fixed the typings of the package.
As part of the process I added the LogLevel enum, which I exported in index.js.
When I tried to use the library, I realized that the npm package actually exports the the dist file, which is a minified version of node.js which doesn't export the new enum.
Also, it seems redundant to publish the src files if you expose a minified version.
@pi0 @atinux I will prepare a quick fix not. Can you please give your opinion on the packaging of the src dir in the published package?

@regevbr regevbr changed the title new LogLevel enum is not exported properly bug: new LogLevel enum is not exported properly May 7, 2020
@pi0 pi0 closed this as completed in #96 May 7, 2020
nevilm-lt pushed a commit to nevilm-lt/consola that referenced this issue Apr 22, 2022
himanshiLt pushed a commit to himanshiLt/consola that referenced this issue Jun 20, 2022
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 a pull request may close this issue.

1 participant