-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby-telemetry): Migrate package to TS #22532
Conversation
8010110
to
36bc9ea
Compare
36bc9ea
to
7de0f30
Compare
878d1fd
to
df30e65
Compare
I merged #22613 (the |
4878151
to
8bfba95
Compare
FWIW this is updated now. |
Helps PR view know that all these files have been renamed. Since some of of the later changes in later commits are substantial, git doesn't recognize the valid renamed .ts files otherwise.
- Don't output __tests__ which jest thinks are cases - properly import telemetry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is looking really good. Before merging this though I think there are a lot of improvements we can make to the amount of unknown
in there. For example, looking at the decorateAll
method in telemetry.ts, i searched through usages and it looks like the type should be something more like Record<string, string>
Let's look through uses and see if we can improve the unknowns to be more in line with what is used.
I'll leave tags as |
Thanks so much for the PR and sorry that we didn't get to merge it earlier! In the meantime a couple of other PRs changed the files bit by bit so that telemetry is actually done with the migration now! |
Description
This PR migrates
packages/gatsby-telemetry/
to TypeScript.Related Issues
Part of #21995.
Note that this exposed #22531, which will be handled in a separate PR.