Skip to content

Commit

Permalink
@types/koa depends on @types/express
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c committed Apr 2, 2024
1 parent ef0fbe4 commit 4f487ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .changeset/gentle-suits-live.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'skuba': patch
---

template/express-rest-api: Fix lint failure
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:

Expand All @@ -11,3 +11,5 @@ 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/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 4f487ba

Please sign in to comment.