From ef0fbe47a23d14d40bae2a0ef8af6e8553fc9166 Mon Sep 17 00:00:00 2001 From: Ryan Ling Date: Tue, 2 Apr 2024 11:55:53 +1100 Subject: [PATCH] template/express-rest-api: Fix lint failure --- .changeset/gentle-suits-live.md | 13 +++++++++++++ template/express-rest-api/package.json | 1 + 2 files changed, 14 insertions(+) create mode 100644 .changeset/gentle-suits-live.md diff --git a/.changeset/gentle-suits-live.md b/.changeset/gentle-suits-live.md new file mode 100644 index 000000000..1cdef8e11 --- /dev/null +++ b/.changeset/gentle-suits-live.md @@ -0,0 +1,13 @@ +--- +'skuba': patch +--- + +template/express-rest-api: Fix lint failure + +This resolves the following failure on a newly-initialised project due to a regression in the `@types/express` dependency chain: + +```console +error TS2688: Cannot find type definition file for 'mime'. + The file is in the program because: + Entry point for implicit type library 'mime' +``` diff --git a/template/express-rest-api/package.json b/template/express-rest-api/package.json index 0c1c5e2c4..aea6578f4 100644 --- a/template/express-rest-api/package.json +++ b/template/express-rest-api/package.json @@ -20,6 +20,7 @@ "@types/express": "^4.17.13", "@types/node": "^20.9.0", "@types/supertest": "^6.0.0", + "mime": "^4.0.1", "pino-pretty": "^11.0.0", "skuba": "*", "supertest": "^6.1.6"