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

index.js in published package only has fromFile #314

Closed
DanielHeath opened this issue Jan 21, 2020 · 2 comments
Closed

index.js in published package only has fromFile #314

DanielHeath opened this issue Jan 21, 2020 · 2 comments

Comments

@DanielHeath
Copy link

The compiled/distributed package on npm (v13.1.1) has an index.js which only exports fromFile.

You can work around this by using import x from 'file-type/core', but it's a bit of an odd wrinkle.

@sindresorhus
Copy link
Owner

We do:

Object.assign(fileType, core);

@DanielHeath
Copy link
Author

Huh. Apparently I can't read; disregard that.

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

No branches or pull requests

2 participants