Skip to content

Commit

Permalink
Updates to node 22 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
pipwilson authored Dec 19, 2024
1 parent dcb5e26 commit 2c19d42
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:

node-version:
type: string
default: 20.11-browsers
default: 22.10-browsers

deploy:
description: Trigger a manual deployment
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-bullseye-slim as base
FROM node:22.10-bullseye-slim as base

ARG BUILD_NUMBER
ARG GIT_REF
Expand Down
26 changes: 17 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"rebuild": "npm run clean && npm i && npm run build"
},
"engines": {
"node": "^20",
"node": "^22",
"npm": "^10"
},
"jest": {
Expand Down Expand Up @@ -109,6 +109,7 @@
"@faker-js/faker": "^9.2.0",
"@jgoz/esbuild-plugin-typecheck": "^4.0.2",
"@ministryofjustice/eslint-config-hmpps": "^0.0.1-beta.1",
"@tsconfig/node22": "^22.0.0",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/compression": "^1.7.5",
Expand All @@ -120,7 +121,7 @@
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.7",
"@types/luxon": "^3.4.2",
"@types/node": "^20.17.9",
"@types/node": "^22.10.2",
"@types/nunjucks": "^3.2.6",
"@types/passport": "^1.0.17",
"@types/passport-oauth2": "^1.4.17",
Expand Down
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"compileOnSave": true,
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"skipLibCheck": true,
"noEmit": false,
"strict": false,
"allowJs": true,
"checkJs": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit 2c19d42

Please sign in to comment.