Skip to content

Commit

Permalink
feat(deps)!: upgrade to NestJS v10 and to MikroORM v6 (#365)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Minimum Node.js version is now v18 (was v14)

- Update NestJS from v9 to v10
- Upgrade MikroORM from v4 to v6
- Update mercurius from v12 to v14
- Update TypeScript from v4 to v5
  • Loading branch information
pmstss authored Aug 27, 2024
1 parent fc02e06 commit a7a31d6
Show file tree
Hide file tree
Showing 16 changed files with 9,698 additions and 7,690 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# BUILD FOR LOCAL DEVELOPMENT
###################

FROM node:14-alpine As build
FROM node:18-alpine AS build

WORKDIR /usr/src/app

Expand All @@ -13,7 +13,6 @@ COPY --chown=node:node package*.json ./
COPY --chown=node:node tsconfig.build.json ./
COPY --chown=node:node tsconfig.json ./
COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
Expand All @@ -31,6 +30,7 @@ COPY --chown=node:node client/typings ./client/typings
COPY --chown=node:node client/vcs ./client/vcs
COPY --chown=node:node client/tsconfig.json ./client/tsconfig.json

ENV NODE_OPTIONS=--openssl-legacy-provider
ENV CYPRESS_INSTALL_BINARY=0
RUN npm ci --prefix=client
RUN npm run build --prefix=client
Expand All @@ -43,12 +43,11 @@ USER node
# PRODUCTION
###################

FROM node:14-alpine As production
FROM node:18-alpine AS production

WORKDIR /usr/src/app

COPY --chown=node:node nest-cli.json ./
COPY --chown=node:node mikro-orm.config.ts ./
COPY --chown=node:node .env ./
COPY --chown=node:node config ./config
COPY --chown=node:node keycloak ./keycloak
Expand Down
19 changes: 0 additions & 19 deletions mikro-orm.config.ts

This file was deleted.

Loading

0 comments on commit a7a31d6

Please sign in to comment.