fix(backend): تشغيل الهجرات على dist المترجَم بدل ts-node في صورة الإنتاج
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
"start:dev": "nest start --watch",
|
||||
"start:prod": "node dist/main.js",
|
||||
"worker": "node dist/worker.js",
|
||||
"typeorm": "typeorm-ts-node-commonjs -d src/config/data-source.ts",
|
||||
"migration:generate": "npm run typeorm -- migration:generate",
|
||||
"typeorm": "typeorm -d dist/config/data-source.js",
|
||||
"typeorm:dev": "typeorm-ts-node-commonjs -d src/config/data-source.ts",
|
||||
"migration:run": "npm run typeorm -- migration:run",
|
||||
"migration:revert": "npm run typeorm -- migration:revert",
|
||||
"migration:generate": "npm run typeorm:dev -- migration:generate",
|
||||
"lint": "eslint \"src/**/*.ts\" --fix",
|
||||
"test": "jest"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user