Skip to content

Commit 86a9ee1

Browse files
Update Node.js to v24 (LemmyNet#3590)
* Update Node.js to v24 * Updating tsconfig lib to es2022 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dessalines <[email protected]>
1 parent 2577a14 commit 86a9ee1

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

.woodpecker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variables:
33

44
steps:
55
fetch_git_submodules:
6-
image: node:22-alpine
6+
image: node:24-alpine
77
commands:
88
- apk add git
99
- git submodule init
@@ -28,23 +28,23 @@ steps:
2828
- event: pull_request
2929

3030
install:
31-
image: node:22-alpine
31+
image: node:24-alpine
3232
commands:
3333
- *install_pnpm
3434
- pnpm i
3535
when:
3636
- event: pull_request
3737

3838
lint:
39-
image: node:22-alpine
39+
image: node:24-alpine
4040
commands:
4141
- *install_pnpm
4242
- pnpm lint
4343
when:
4444
- event: pull_request
4545

4646
build_dev:
47-
image: node:22-alpine
47+
image: node:24-alpine
4848
commands:
4949
- *install_pnpm
5050
- pnpm prebuild:dev

dev.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-alpine as builder
1+
FROM node:24-alpine as builder
22
RUN apk update && apk add curl python3 build-base gcc wget git --no-cache
33

44
# Install corepack
@@ -34,7 +34,7 @@ RUN echo "export const BUILD_DATE_ISO8601 = '$(date -u +"%Y-%m-%dT%H:%M:%SZ")';"
3434
RUN pnpm i --prefer-offline
3535
RUN pnpm build:dev
3636

37-
FROM node:22-alpine as runner
37+
FROM node:24-alpine as runner
3838
COPY --from=builder /usr/src/app/dist /app/dist
3939
COPY --from=builder /usr/src/app/node_modules /app/node_modules
4040

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"@types/markdown-it": "^14.1.2",
113113
"@types/markdown-it-container": "^2.0.10",
114114
"@types/masonry-layout": "^4.2.8",
115-
"@types/node": "^22.5.0",
115+
"@types/node": "^24.0.0",
116116
"@types/path-browserify": "^1.0.3",
117117
"@types/sanitize-html": "^2.13.0",
118118
"@types/serialize-javascript": "^5.0.4",

pnpm-lock.yaml

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"preserveConstEnums": true,
88
"sourceMap": true,
99
"moduleResolution": "node",
10-
"lib": ["es2017", "dom"],
10+
"lib": ["es2022", "dom"],
1111
"types": ["inferno"],
1212
"jsx": "preserve",
1313
"noUnusedLocals": true,

0 commit comments

Comments
 (0)