UNPKG

@experts_hub/shared

Version:

Shared DTOs, interfaces, and utilities for experts hub applications

82 lines (59 loc) 1.46 kB
# @los_generic/shared A public shared library containing DTOs, interfaces, utilities, and other common code for experts hub applications. ## Installation ```bash 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 1. Install dependencies: ```bash npm install ``` 2. Build the package: ```bash npm run build ``` 3. Watch for changes during development: ```bash npm run watch ``` ## Publishing This package is published as a public package under the @experts_hub organization. ```bash # 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