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

Is it possible to add "main" key to package.json? #329

Closed
alarner opened this issue Jan 10, 2024 · 2 comments · Fixed by #330
Closed

Is it possible to add "main" key to package.json? #329

alarner opened this issue Jan 10, 2024 · 2 comments · Fixed by #330

Comments

@alarner
Copy link
Contributor

alarner commented Jan 10, 2024

I'm trying to use change-case in a react native project, but the metro bundler is expecting a "main" key in the package.json. When I add "main": "./dist/index.js", it works just fine. I'm happy to submit a PR but was a bit unsure how the project was structured and if I should make the change to just change-case or also sponge-case, swap-case, etc.

@blakeembrey
Copy link
Owner

Based on the docs it seems fine to add it, but I’d definitely ask the metro bundler why it doesn’t support exports.

@blakeembrey
Copy link
Owner

Feel free to add the field to all packages if you do want to make the PR.

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.

2 participants