Merge pull request #21627 from overleaf/ar-node-20

[all] node 20 upgrade v2

GitOrigin-RevId: aed13a800894717a796062e3dd4050e045040258
This commit is contained in:
Andrew Rumble
2024-11-15 09:04:32 +00:00
committed by Copybot
parent eb693e41dc
commit 73b17dd694
85 changed files with 112 additions and 104 deletions
+1 -1
View File
@@ -1 +1 @@
18.20.4
20.18.0
+1 -1
View File
@@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.20.4 AS base
FROM node:20.18.0 AS base
WORKDIR /overleaf/services/real-time
+2 -2
View File
@@ -32,12 +32,12 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.20.4 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:20.18.0 npm run --silent
RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/.eslintignore:/overleaf/.eslintignore --volume $(MONOREPO)/.eslintrc:/overleaf/.eslintrc --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc:/overleaf/.prettierrc --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json ci/$(PROJECT_NAME):$(BRANCH_NAME)-$(BUILD_NUMBER) npm run --silent
# Same but from the top of the monorepo
RUN_LINTING_MONOREPO = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(MONOREPO) node:18.20.4 npm run --silent
RUN_LINTING_MONOREPO = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(MONOREPO) node:20.18.0 npm run --silent
format:
$(RUN_LINTING) format
+1 -1
View File
@@ -4,6 +4,6 @@ real-time
--env-add=
--env-pass-through=
--esmock-loader=False
--node-version=18.20.4
--node-version=20.18.0
--public-repo=False
--script-version=4.5.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.20.4
image: node:20.18.0
volumes:
- .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules
@@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.20.4
image: node:20.18.0
volumes:
- .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules