From 67918285db187b9e6366b0f4f6e50c9bb7aedf11 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 01:42:48 +0000 Subject: [PATCH] Update Node.js to v20 (#362) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexander Kachkaev --- .github/workflows/ci.yaml | 2 +- .tool-versions | 1 + Dockerfile | 2 +- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- tsconfig.json | 6 +++--- 6 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .tool-versions diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 116077e4..82944496 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,8 +22,8 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18 cache: pnpm + node-version-file: .tool-versions - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..d7568adf --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 20.11.1 diff --git a/Dockerfile b/Dockerfile index dd73cebc..811e68c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18.18.2-slim AS base +FROM node:20.11.1-slim AS base ENV NEXT_TELEMETRY_DISABLED true ENV PLAYWRIGHT_BROWSERS_PATH=/playwright diff --git a/package.json b/package.json index 5d3fd592..5ec3ec91 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@tsconfig/next": "2.0.1", "@tsconfig/strictest": "2.0.3", "@types/js-yaml": "4.0.9", - "@types/node": "20.10.2", + "@types/node": "20.11.24", "@types/nprogress": "0.2.3", "@types/react": "18.2.62", "@types/react-dom": "18.2.19", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0466d13..54676017 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,8 +38,8 @@ devDependencies: specifier: 4.0.9 version: 4.0.9 '@types/node': - specifier: 20.10.2 - version: 20.10.2 + specifier: 20.11.24 + version: 20.11.24 '@types/nprogress': specifier: 0.2.3 version: 0.2.3 @@ -735,8 +735,8 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/node@20.10.2: - resolution: {integrity: sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==} + /@types/node@20.11.24: + resolution: {integrity: sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==} dependencies: undici-types: 5.26.5 dev: true diff --git a/tsconfig.json b/tsconfig.json index e9299425..9c37e87d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,12 +2,12 @@ "extends": [ "@tsconfig/next/tsconfig.json", "@tsconfig/strictest/tsconfig.json", - "@tsconfig/esm/tsconfig.json", + "@tsconfig/esm/tsconfig.json" ], "compilerOptions": { "module": "ESNext", - "target": "ESNext", + "target": "ESNext" }, "include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"], + "exclude": ["node_modules"] }