Back to all reviewers

dependency classification standards

prisma/prisma
Based on 8 comments
Json

Ensure proper classification and versioning of package dependencies in package.json files. Dependencies should be classified based on their usage pattern: use regular `dependencies` for hard requirements that the package cannot function without, and `peerDependencies` for packages that consumers are expected to provide. When specifying version ranges, use...

Configurations Json

Reviewer Prompt

Ensure proper classification and versioning of package dependencies in package.json files. Dependencies should be classified based on their usage pattern: use regular dependencies for hard requirements that the package cannot function without, and peerDependencies for packages that consumers are expected to provide. When specifying version ranges, use appropriate semantic versioning operators - prefer >= over > for minimum versions, and understand that v0.x packages behave differently than v1+ packages in semver.

For example, database drivers should typically be regular dependencies rather than peer dependencies:

{
  "dependencies": {
    "@libsql/client": "0.8.0"
  }
}

For TypeScript requirements, specify minimum versions clearly:

{
  "peerDependencies": {
    "typescript": ">=5.1.0"
  }
}

Remove unused dependencies to keep the dependency tree clean and avoid unnecessary bloat. When working with v0.x packages, be explicit about version ranges since ^0.48 won’t match 0.49.1, unlike v1+ packages.

8
Comments Analyzed
Json
Primary Language
Configurations
Category

Source Discussions