erento / nestjs-modules

NestJS modules
27 stars 4 forks source link

DEV-5210: Looser version peer dependencies #28

Closed gmenih closed 4 years ago

gmenih commented 4 years ago

Problem: Some peerDependencies versions are not locked, because we want to allow higher versions to work with this module. Some of those dependencies are also defined under dependencies, because we import them in the module, and TypeScript cries if they are missing - those were locked to a specific version.

I now also allow dependencies to work with higher version, that way, the module will not download it's own version of the dependency, if it's not matching with the version that is required in the service that is using this module.