Skip to content

Commit

Permalink
chore(#129): bump node version (20.10.0 lts)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu committed Mar 4, 2024
1 parent a13b439 commit f3249ac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## build runner
FROM node:16.17-buster-slim as build-runner
FROM node:20.10-buster-slim as build-runner

# Set temp directory
WORKDIR /tmp/app
Expand All @@ -19,7 +19,7 @@ COPY tsconfig.json .
RUN npm run build

## producation runner
FROM node:16.17-buster-slim as prod-runner
FROM node:20.10-buster-slim as prod-runner

# set production mode
ARG NODE_ENV=production
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.17.0
node-version: 20.10.0
cache: 'npm'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"install:plugins": "installoop --rootDir=./build/plugins",
"type:check": "tsc --pretty --skipLibCheck --noEmit",
"start": "cross-env NODE_ENV=production node build/main.js",
"dev": "cross-env NODE_ENV=development nodemon --exec node --loader ts-node/esm/transpile-only src/main.ts",
"dev:start": "cross-env NODE_ENV=production node --loader ts-node/esm/transpile-only src/main.ts",
"dev": "cross-env NODE_ENV=development nodemon --exec node -r ts-node/register/transpile-only src/main.ts",
"dev:start": "cross-env NODE_ENV=production node -r ts-node/register/transpile-only src/main.ts",
"i18n": "typesafe-i18n",
"migration:create": "npx mikro-orm migration:create",
"migration:up": "npx mikro-orm migration:up",
Expand Down Expand Up @@ -104,13 +104,16 @@
"plop": "^2.7.6",
"rimraf": "~3.0.2",
"ts-node": "~10.9.1",
"tsc-alias": "~1.8.5",
"tsc-alias": "~1.8.8",
"tsconfig-paths": "~4.2.0",
"typescript": "~4.9.5"
},
"engines": {
"node": ">=16.9.0",
"npm": ">=8.0.0"
"node": ">=20.10.0",
"npm": ">=10.2.3"
},
"volta": {
"node": "20.10.0"
},
"mikro-orm": {
"useTsNode": true,
Expand All @@ -119,9 +122,6 @@
"./build/mikro-orm.config.js"
]
},
"volta": {
"node": "16.17.0"
},
"nodemonConfig": {
"ignore": [
"src/i18n/**/!(i18n-types.ts)"
Expand Down
9 changes: 4 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@

"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"moduleResolution": "node",

"outDir": "build",
"rootDir": "src",
"resolveJsonModule": true,

"strict": true,
"strictPropertyInitialization": false,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,

"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,

"skipLibCheck": false,
"forceConsistentCasingInFileNames": true,

Expand Down

0 comments on commit f3249ac

Please sign in to comment.