From 568407c2ce3e8ae39709392790fee9dac0e29c05 Mon Sep 17 00:00:00 2001 From: Andrew Chubatiuk Date: Sat, 10 Feb 2024 08:25:17 +0200 Subject: [PATCH] node-18 --- .ci/Dockerfile.cypress | 2 +- .github/workflows/ci.yml | 2 +- Dockerfile | 2 +- netlify.toml | 2 +- package.json | 11 +++++------ 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.ci/Dockerfile.cypress b/.ci/Dockerfile.cypress index 1ee95563c8..9a8140304e 100644 --- a/.ci/Dockerfile.cypress +++ b/.ci/Dockerfile.cypress @@ -1,4 +1,4 @@ -FROM cypress/browsers:node16.18.0-chrome90-ff88 +FROM cypress/browsers:node18.12.0-chrome106-ff106 ENV APP /usr/src/app WORKDIR $APP diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ec9760917..c8d780758d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: - master env: - NODE_VERSION: 16.20.1 + NODE_VERSION: 18 jobs: backend-lint: runs-on: ubuntu-22.04 diff --git a/Dockerfile b/Dockerfile index d3ca710f00..2214295e71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16.20.1-bookworm as frontend-builder +FROM node:18-bookworm as frontend-builder RUN npm install --global --force yarn@1.22.19 diff --git a/netlify.toml b/netlify.toml index a752dd0fc2..47c48e1fbb 100644 --- a/netlify.toml +++ b/netlify.toml @@ -6,7 +6,7 @@ command = "cd ../ && yarn cache clean && yarn --frozen-lockfile --network-concurrency 1 && yarn build && cd ./client" [build.environment] - NODE_VERSION = "16.20.1" + NODE_VERSION = "18" NETLIFY_USE_YARN = "true" YARN_VERSION = "1.22.19" CYPRESS_INSTALL_BINARY = "0" diff --git a/package.json b/package.json index bdec7868ff..630b1e1430 100644 --- a/package.json +++ b/package.json @@ -7,14 +7,13 @@ "start": "npm-run-all --parallel watch:viz webpack-dev-server", "clean": "rm -rf ./client/dist/", "build:viz": "(cd viz-lib && yarn build:babel)", - "build": "yarn clean && yarn build:viz && NODE_ENV=production webpack", - "build:old-node-version": "yarn clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack", - "watch:app": "webpack watch --progress", + "build": "yarn clean && yarn build:viz && NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack", + "watch:app": "NODE_OPTIONS=--openssl-legacy-provider webpack watch --progress", "watch:viz": "(cd viz-lib && yarn watch:babel)", "watch": "npm-run-all --parallel watch:*", "webpack-dev-server": "webpack-dev-server", - "analyze": "yarn clean && BUNDLE_ANALYZER=on webpack", - "analyze:build": "yarn clean && NODE_ENV=production BUNDLE_ANALYZER=on webpack", + "analyze": "yarn clean && BUNDLE_ANALYZER=on NODE_OPTIONS=--openssl-legacy-provider webpack", + "analyze:build": "yarn clean && NODE_ENV=production BUNDLE_ANALYZER=on NODE_OPTIONS=--openssl-legacy-provider webpack", "lint": "yarn lint:base --ext .js --ext .jsx --ext .ts --ext .tsx ./client", "lint:fix": "yarn lint:base --fix --ext .js --ext .jsx --ext .ts --ext .tsx ./client", "lint:base": "eslint --config ./client/.eslintrc.js --ignore-path ./client/.eslintignore", @@ -34,7 +33,7 @@ "url": "git+https://github.com/getredash/redash.git" }, "engines": { - "node": ">14.16.0 <17.0.0", + "node": ">16.0 <21.0", "npm": "please-use-yarn", "yarn": "^1.22.10" },