change-case icon indicating copy to clipboard operation
change-case copied to clipboard

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

Open alarner opened this issue 1 year ago • 2 comments
trafficstars

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.

alarner avatar Jan 10 '24 23:01 alarner

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 avatar Jan 11 '24 01:01 blakeembrey

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

blakeembrey avatar Jan 11 '24 16:01 blakeembrey