blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.21k stars 92 forks source link

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

Closed alarner closed 5 months ago

alarner commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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