Skip to content

Commit

Permalink
template/*-rest-api: Fix lint failure (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Apr 2, 2024
1 parent c1dc8db commit 9917dda
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .changeset/gentle-suits-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'skuba': patch
---

template/\*-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'
```

A temporary workaround is to install `mime` as a dev dependency.
1 change: 1 addition & 0 deletions template/express-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions template/koa-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@types/node": "^20.9.0",
"@types/supertest": "^6.0.0",
"chance": "^1.1.8",
"mime": "^4.0.1",
"pino-pretty": "^11.0.0",
"skuba": "*",
"supertest": "^6.1.6"
Expand Down

0 comments on commit 9917dda

Please sign in to comment.