Skip to content

Commit 78fcf61

Browse files
committed
Upgrade to Node.js 24 and update TypeScript config
Update all workflows, Dockerfiles, and .nvmrc to use Node.js 24 for consistency and latest features. Enable 'moduleResolution: node' and 'skipLibCheck' in tsconfig.json to improve TypeScript compatibility and speed up builds.
1 parent eea9877 commit 78fcf61

8 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/check-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Node.js
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '16'
18+
node-version: '24'
1919

2020
- name: Install dependencies
2121
run: yarn install

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Use Node.js 16.x
11+
- name: Use Node.js 24.x
1212
uses: actions/setup-node@v1
1313
with:
14-
node-version: 16.x
14+
node-version: 24.x
1515
- name: Cache dependencies
1616
uses: actions/cache@v3
1717
with:

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Use Node.js 16.x
15+
- name: Use Node.js 24.x
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: 16.x
18+
node-version: 24.x
1919
- run: yarn install
2020
- run: yarn test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.20.2
1+
v24

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.20-slim as build-stage
1+
FROM node:24-slim as build-stage
22

33
RUN apt update
44
RUN apt install git -y

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.20-slim
1+
FROM node:24-slim
22

33
WORKDIR /usr/src/app
44

stage.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.20-slim as build-stage
1+
FROM node:24-slim as build-stage
22

33
RUN apt update
44
RUN apt install git -y

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4141

4242
/* Module Resolution Options */
43-
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
43+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
44+
"skipLibCheck": true, /* Skip type checking of declaration files from node_modules */
4445
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
4546
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4647
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */

0 commit comments

Comments
 (0)