jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.51k stars 21 forks source link

Version mismatch is not caught or fixed #121

Closed kimamula closed 1 month ago

kimamula commented 1 month ago

Actual behavior

When I have this package.json:

{
  "devDependencies": {
    "@types/react": "^17.0.80"
  },
  "dependencies": {
    "react": "^18.3.1"
  }
}

and run npx typesync, typesync doesn't update package.json. Also, npx typesync --dry=fail doesn't catch the version mismatch.

Expected behavior

npx typesync should update package.json to update the version of @types/react so that it matches the version of react. npx typesync --dry=fail should fail.

jeffijoe commented 1 month ago

TypeSync does not update package versions, it only adds missing typings. To update packages, consider using npm-check.