Contributing to ory-nestjs
Thank you for your interest in contributing to ory-nestjs!
Pull Request Guidelines
- Focus: Each PR should have a single, clear focus.
- Tests: All new features and bug fixes must include tests.
- Documentation: Update the relevant documentation files in
ory-nestjsif you change the public API or behavior. - Commits: Use descriptive commit messages.
Development Setup
- Clone the repository.
- Install dependencies:
pnpm install. - Build the project:
pnpm build. - Run tests:
pnpm test.
Coding Standards
- Follow the existing coding style and naming conventions.
- Ensure all new public symbols are exported from
src/index.ts. - Never export anything from
@ory/*packages. - Use explicit types; avoid
any.
Adding a New Service
When adding a new service:
- Define the library-owned DTOs in
src/dto. - Implement the mappers in
src/dto/mappers. - Add the service class in
src/serviceswith.forTenant()support. - Export the service and DTOs from
src/index.ts. - Add unit and contract tests.