Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add initial TS types detection based on package.json content #408

Merged

Conversation

Simek
Copy link
Member

@Simek Simek commented Jul 25, 2020

Why

Refs #309

This PR introduces the basic check if TypeScript types are published based on the official TS publishing guide. For sure this check is not 100% accurate but I think it's the good start and detection could be improved further. The new search filter has also been added.

In the local tests 307 out of 770 libraries were marked with "TypeScript Types" flag.

The icon, placement and wording could be updated, I'm happy to hear the suggestions.

Additionally to the changes above in this PR I have:

  • made a refactor in GH fetch script to parse package.json only once per library
  • added missing types for Library and Query objects

Preview

Annotation 2020-07-25 182559

Checklist

If you added a feature or fixed a bug:

  • Documented in this PR how you fixed or created the feature.

@Simek Simek requested review from brentvatne and jonsamp July 25, 2020 17:06
Copy link
Collaborator

@jonsamp jonsamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes look good to me. I like where you placed this in the design. Ill wait for @brentvatne to merge this since I'm less familiar with how this might work for a variety of repos.

@brentvatne brentvatne merged commit 644a0fd into react-native-community:master Jul 28, 2020
@Simek Simek deleted the add-init-ts-types-check branch May 8, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants