From 8b3f84b55cbe7aaec5b959c0287a6667e1cde5bd Mon Sep 17 00:00:00 2001 From: Chris Couzens Date: Sun, 26 Mar 2023 10:45:59 +0100 Subject: [PATCH] Suggest installing types as dev dependencies Typescript types are usually only required at build time, and not runtime. But the old instructions would end up with the types being around at run-time. From the [npm install documentation](https://docs.npmjs.com/cli/v6/commands/npm-install) > `npm install` saves any specified packages into `dependencies` by default. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d11075..474420c 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ npm install @koa/router ## Typescript Support ```sh -npm install @types/koa__router +npm install --save-dev @types/koa__router ```