Closed silverwind closed 4 months ago
I think I know what the issue is. When there's no matching version of the typings package, it'll fall back to checking the first one in the list of versions. The code assumes that to be the latest version, but NPM seems to be returning them in the other order.
EDIT: Nevermind, here we're sorting them first.
EDIT 2: Looks like the API no longer returns the deprecated
top-level field in the JSON. Will have to check in the package version itself.
Fixed in v0.12.2. Thanks for reporting!
Thanks, working with 0.12.2!
$ npx typesync@0.12.2 --dry
» TypeSync v0.12.2
» —— DRY RUN — will not modify file ——
✔ No new typings to add, looks like you're all synced up!
According to https://github.com/jeffijoe/typesync/issues/79, deprecated type packages should not be suggested or installed, but I notice it still does, for example with this package.json:
Both type packages are deprecated as seen during
npm install
: