jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version is not updated

menelaos opened this issue · comments

Steps to reproduce:

  1. npx create-react-app foo --template typescript
  2. cd foo
  3. Open package.json and change the version of @types/react to e.g. ^17.0.0.
  4. npx typesync

Expected behaviour:

typesync updates @types/react to a version that is compatible with the installed react version.

Actual behaviour:

typesync does not update the @types/react version and leaves it at ^17.0.0.

TypeSync doesn't update the typings packages, it only adds missing ones. I recommend using npm-check for upgrading packages.