jeffijoe / typesync

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

Version mismatch is not caught or fixed #121

Closed kimamula closed 3 months ago

kimamula commented 3 months 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 3 months ago

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