0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 01:57:32 +01:00

Update to Node 22 (active LTS)

- See https://nodejs.org/en/blog/release/v22.11.0
- Fixes #12531
This commit is contained in:
LB 2024-11-04 20:15:36 +10:00 committed by Matt Westcott
parent 21206dc3e7
commit 2e87f4ddec
5 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ jobs:
frontend: frontend:
docker: docker:
- image: cimg/node:20.9 - image: cimg/node:22.11
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:

2
.nvmrc
View File

@ -1 +1 @@
20 22

View File

@ -3,7 +3,7 @@ deployments:
dockerimage: python:3.11.4-slim-bullseye dockerimage: python:3.11.4-slim-bullseye
build_steps: build_steps:
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl - apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_20.x | bash -" - RUN bash -c "curl -sL https://deb.nodesource.com/setup_22.x | bash -"
- apt install -y nodejs - apt install -y nodejs
- pip install setuptools pip --upgrade --force-reinstall - pip install setuptools pip --upgrade --force-reinstall
- cd /code - cd /code

2
package-lock.json generated
View File

@ -89,7 +89,7 @@
"webpack-cli": "^5.1.4" "webpack-cli": "^5.1.4"
}, },
"engines": { "engines": {
"node": ">=20.0.0" "node": ">=22"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {

View File

@ -4,7 +4,7 @@
"repository": "https://github.com/wagtail/wagtail", "repository": "https://github.com/wagtail/wagtail",
"private": true, "private": true,
"engines": { "engines": {
"node": ">=20.0.0" "node": ">=22"
}, },
"browserslist": [ "browserslist": [
"Firefox ESR", "Firefox ESR",