Upgrade Node tooling to Node v16 and npm v8

pull/7668/merge
Thibaud Colas 2022-01-31 14:51:38 +00:00 zatwierdzone przez LB (Ben Johnston)
rodzic ee15eec511
commit 6bf0169e09
5 zmienionych plików z 36302 dodań i 6778 usunięć

Wyświetl plik

@ -32,7 +32,7 @@ jobs:
frontend:
docker:
- image: circleci/node:14
- image: circleci/node:16
steps:
- checkout
- restore_cache:
@ -109,11 +109,9 @@ jobs:
nightly-build:
docker:
- image: cimg/python:3.8.11
- image: cimg/python:3.8.11-node
steps:
- checkout
- run: cd ~ && wget https://nodejs.org/dist/v14.17.5/node-v14.17.5-linux-x64.tar.gz
- run: cd /usr/local/ && sudo tar --strip-components 1 -xzf ~/node-v14.17.5-linux-x64.tar.gz
- run: pip install --user wheel boto3
- run: npm install
- run: npm run build

2
.nvmrc
Wyświetl plik

@ -1 +1 @@
14
16

Wyświetl plik

@ -3,7 +3,7 @@ deployments:
dockerimage: python:3.7.4-stretch
build_steps:
- 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_10.x | bash -"
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_16.x | bash -"
- apt install -y nodejs
- pip install setuptools pip --upgrade --force-reinstall
- cd /code

43062
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -4,7 +4,7 @@
"repository": "https://github.com/wagtail/wagtail",
"private": true,
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"browserslist": [
"Firefox ESR",
@ -70,12 +70,6 @@
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.5.0",
"eslint-config-airbnb": "^19.0.2",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"expose-loader": "^3.1.0",
"jest": "^26.6.3",
"mini-css-extract-plugin": "^2.4.5",