@procxo/shared 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @procxo/shared
|
|
2
2
|
|
|
3
3
|
A shared TypeORM library providing centralized database entities, migrations, and seeders for Invoice Management applications.
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ A shared TypeORM library providing centralized database entities, migrations, an
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @
|
|
17
|
+
npm install @procxo/shared
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
### Prerequisites
|
|
@@ -44,7 +44,7 @@ NODE_ENV=development
|
|
|
44
44
|
```typescript
|
|
45
45
|
import { Module } from '@nestjs/common';
|
|
46
46
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
47
|
-
import { createOrmConfig } from '@
|
|
47
|
+
import { createOrmConfig } from '@procxo/shared';
|
|
48
48
|
|
|
49
49
|
@Module({
|
|
50
50
|
imports: [
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
Task,
|
|
72
72
|
Matter,
|
|
73
73
|
Timesheet,
|
|
74
|
-
} from '@
|
|
74
|
+
} from '@procxo/shared';
|
|
75
75
|
|
|
76
76
|
// Use entities in your services/repositories
|
|
77
77
|
```
|
|
@@ -152,7 +152,7 @@ createOrmConfig({
|
|
|
152
152
|
Returns all entity classes from the shared library.
|
|
153
153
|
|
|
154
154
|
```typescript
|
|
155
|
-
import { getAllSharedEntities } from '@
|
|
155
|
+
import { getAllSharedEntities } from '@procxo/shared';
|
|
156
156
|
|
|
157
157
|
const entities = getAllSharedEntities(); // Returns array of entity classes
|
|
158
158
|
```
|