pbeshai / use-query-params

React Hook for managing state in URL query parameters with easy serialization.
https://pbeshai.github.io/use-query-params
ISC License
2.16k stars 96 forks source link

fix: create package.json for adapters #224 #225

Closed pbeshai closed 2 years ago

pbeshai commented 2 years ago

Fixes #224 by generating a package.json for the adapters so tooling can choose between cjs and mjs. Typically I'd expect package-bundler to do this for us, but I think that due to the differing dependency requirements with the same name (E.g. react-router 5 and react-router 6), we can't follow the normal means of things.