From 5b64db7ae263758350378c69422aa9cce877fc84 Mon Sep 17 00:00:00 2001 From: Max Bladen-Clark Date: Thu, 6 Jul 2023 10:09:58 +0100 Subject: [PATCH] Update package.json to node v18 Includes updating engines, bumping incompatible packages, adding .nvmrc file and bumping version in ci workflow --- .github/workflows/ci.yml | 2 +- .nvmrc | 1 + package.json | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b7b4df92..b9a783272 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - name: Install nodejs uses: actions/setup-node@v1 with: - node-version: "16.x" + node-version: "18.x" - name: Install node dependencies run: npm ci diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..5e0828ad1 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.16.1 diff --git a/package.json b/package.json index d85cd56c1..0f242a139 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "repository": "github:defra/flood-app", "engines": { - "node": ">=16" + "node": ">=18" }, "browserslist": [ "IE 11" @@ -41,7 +41,7 @@ "@hapi/hoek": "^9.2.1", "@hapi/inert": "^6.0.4", "@hapi/joi": "^17.1.1", - "@hapi/lab": "^24.4.0", + "@hapi/lab": "^25.1.3", "@hapi/vision": "^6.1.0", "@hapi/wreck": "^17.1.0", "@hapi/yar": "^10.1.1", @@ -55,7 +55,7 @@ "d3": "^7.2.0", "datatables.net-buttons": "^2.1.1", "datatables.net-buttons-dt": "^2.1.1", - "datatables.net-dt": "^1.11.3", + "datatables.net-dt": "1.12.1", "elm-pep": "^1.0.6", "geojson": "0.5.0", "govuk-frontend": "^3.14.0",