Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys committed Dec 28, 2024
1 parent 5563554 commit f03c2fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test:ci": "jest --ci --reporters=default --reporters=jest-junit",
"test-watch": "jest --watch",
"coverage": "jest --coverage",
"typeorm": "npx ts-node -r dotenv/config ./node_modules/typeorm/cli.js",
"typeorm:migration:generate": "npx ts-node -r dotenv/config ./node_modules/typeorm/cli.js migration:generate -d src/dataSource.ts"
"typeorm": "typeorm-ts-node-commonjs",
"typeorm:migration:generate": "npm run migration",
"migration": "typeorm-ts-node-commonjs migration:generate -d src/dataSource.ts"
},
"dependencies": {
"@apalchys/pino-cloudwatch": "0.9.0",
Expand Down
2 changes: 2 additions & 0 deletions server/src/dataSource.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dotenv/config';

import { DataSource } from 'typeorm';
import { dataSourceOptions } from './dataSourceOptions';

Expand Down

0 comments on commit f03c2fd

Please sign in to comment.