40 lines
713 B
Markdown
40 lines
713 B
Markdown
# Shared TypeScript Types
|
|
|
|
This package contains shared TypeScript type definitions used across multiple applications.
|
|
|
|
## Setup
|
|
|
|
### 1. Initialize the package
|
|
|
|
```bash
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
## Usage in Other Projects
|
|
|
|
Add to your project's `package.json`:
|
|
|
|
```json
|
|
{
|
|
"dependencies": {
|
|
"@your-org/shared-types": "git+https://github.com/your-org/shared-types.git"
|
|
}
|
|
}
|
|
```
|
|
|
|
Or install via command:
|
|
|
|
```bash
|
|
npm install git+https://github.com/your-org/shared-types.git
|
|
```
|
|
|
|
## Updating the Package
|
|
|
|
When you make changes to the types:
|
|
|
|
1. Update the version in `package.json`
|
|
2. Build the package: `npm run build`
|
|
3. Commit and push changes
|
|
4. Update consuming applications: `npm update @dpu/types`
|