Skip to content

Commit 28304fe

Browse files
authored
chore: update to v6.4.5 (#56)
1 parent 693ba5d commit 28304fe

File tree

6 files changed

+5576
-3590
lines changed

6 files changed

+5576
-3590
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626

27-
- name: Cache node_modules
28-
uses: actions/cache@v4
29-
with:
30-
path: '**/node_modules'
31-
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }}
27+
- name: Enable corepack
28+
run: |
29+
corepack enable
30+
corepack prepare yarn@stable --activate
3231
3332
- name: Init docker
3433
run: docker compose up -d

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ dist
22
temp
33
node_modules
44
.idea
5+
.yarn/*
6+
!.yarn/patches

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

app/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { EntityManager, EntityRepository, MikroORM, RequestContext } from '@mikr
55

66
import { AuthorController, BookController } from './controllers';
77
import { Author, Book } from './entities';
8+
import config from './mikro-orm.config';
89

910
export const DI = {} as {
1011
server: http.Server;
@@ -18,7 +19,7 @@ export const app = express();
1819
const port = process.env.PORT || 3000;
1920

2021
export const init = (async () => {
21-
DI.orm = await MikroORM.init();
22+
DI.orm = await MikroORM.init(config);
2223
DI.em = DI.orm.em;
2324
DI.authors = DI.orm.em.getRepository(Author);
2425
DI.books = DI.orm.em.getRepository(Book);

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"test": "jest --runInBand --silent"
1212
},
1313
"dependencies": {
14-
"@mikro-orm/core": "^6.0.0",
14+
"@mikro-orm/core": "^6.4.5",
1515
"@mikro-orm/mongo-highlighter": "^1.0.0",
16-
"@mikro-orm/mongodb": "^6.0.0",
16+
"@mikro-orm/mongodb": "^6.4.5",
1717
"express": "^4.18.2",
1818
"express-promise-router": "^4.1.1",
1919
"tsc-watch": "^6.0.4",
20-
"typescript": "5.3.3"
20+
"typescript": "5.7.3"
2121
},
2222
"devDependencies": {
23-
"@mikro-orm/cli": "^6.0.0",
23+
"@mikro-orm/cli": "^6.4.5",
2424
"@types/express": "^4.17.21",
2525
"@types/express-promise-router": "^3.0.0",
2626
"@types/jest": "29.5.12",
@@ -37,5 +37,6 @@
3737
"./app/mikro-orm.config.ts",
3838
"./dist/mikro-orm.config.js"
3939
]
40-
}
40+
},
41+
"packageManager": "yarn@4.6.0"
4142
}

0 commit comments

Comments
 (0)