@los_generic/shared
A public shared library containing DTOs, interfaces, utilities, and other common code for experts hub applications.
Installation
npm install @experts_hub/shared
Features
DTOs: Reusable Data Transfer Objects with validation
- Country DTOs (CreateCountryDto, UpdateCountryDto)
- More DTOs can be added as needed
Interfaces: Common TypeScript interfaces
- Pagination interfaces
- Base interfaces
Utils: Utility functions
- Pagination utilities
- More utilities can be added as needed
Development
Install dependencies:
npm install
Build the package:
npm run build
Watch for changes during development:
npm run watch
Publishing
This package is published as a public package under the @experts_hub organization.
# For bug fixes (0.0.x)
npm run patch
# For new features (0.x.0)
npm run minor
# For breaking changes (x.0.0)
npm run major
Dependencies
Peer Dependencies
- @nestjs/common: ^10.0.0
- class-transformer: ^0.5.1
- class-validator: ^0.14.0
Make sure these peer dependencies are installed in your project.
Project Structure
src/
├── modules/
│ └── country/
│ ├── dto/
│ │ ├── create-country.dto.ts
│ │ └── update-country.dto.ts
│ ├── index.ts
│ └── pattern.ts
└── index.ts
License
ISC