Set mongoose as a peerDependency and devDependency, as this is a "plugin"