@elchinabilov/nestjs-media-library 1.0.2 → 1.1.0

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.
Files changed (2) hide show
  1. package/README.md +10 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -59,12 +59,20 @@ export class AppModule {}
59
59
  ### 2. Run Migration
60
60
 
61
61
  ```typescript
62
+ // typeorm.config.ts
62
63
  // In your TypeORM config
63
- import { CreateMediaTable1703000000000 } from "@elchinabilov/nestjs-media-library";
64
+ import {
65
+ CreateMediaTable1703000000000,
66
+ Media,
67
+ } from "@elchinabilov/nestjs-media-library"; // add this line
64
68
 
65
69
  export const dataSource = new DataSource({
66
70
  // ... your config
67
- migrations: [CreateMediaTable1703000000000],
71
+ entities: [
72
+ __dirname + "/../**/*.entity{.ts,.js}",
73
+ Media, // add this line
74
+ ],
75
+ migrations: [CreateMediaTable1703000000000], // add this line
68
76
  });
69
77
  ```
70
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elchinabilov/nestjs-media-library",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Complete NestJS media management library with S3, image optimization, and automatic conversions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",