chore: enable Snap TypeScript checking - #237
Conversation
41895cc to
eee95b6
Compare
32bd0b7 to
39671c5
Compare
cf3cbe8 to
af54615
Compare
| @@ -1,7 +1,14 @@ | |||
| { | |||
| "extends": "../../tsconfig.packages.build.json", | |||
There was a problem hiding this comment.
This package is the only exception so let's not have that root file
af54615 to
a829c64
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
9a2c92f to
7e42b45
Compare
7e42b45 to
252b66a
Compare
taran-a
left a comment
There was a problem hiding this comment.
@ulissesferreira, GG—nice work. I spotted one thing: you added a lot of explicit types across the files. For example, types used only for struct imports aren’t needed if references to the shared utility are removed.
It may be worth running the type check with only the tsconfig changes introduced in this PR. That should reduce the number of required explicit types and shrink the review surface.
Great catch! My patience was running thin, iterating on this again 🙏, we are close |
252b66a to
7a9a986
Compare
126aa43 to
33ef3a1
Compare
There was a problem hiding this comment.
Changed these to match the other Snaps
d3aee9e to
914531e
Compare
stanleyyconsensys
left a comment
There was a problem hiding this comment.
it looks like there are some rebase issue
914531e to
d566f24
Compare
Explanation
The repository had TypeScript configuration files for the packages, but the package source was not being type-checked as part of the normal CI lint workflow. Snap builds were transpiled by
mm-snap, so TypeScript diagnostics could be missed until later in development.This pull request makes TypeScript checking an explicit CI requirement for all repository and workspace packages:
lint:tscscriptlint:tscto the CI checkstsconfig.jsonfiles so they all matchtsconfigfiles are now made with Snap packages as first class! The "normal" library package is the exception so it gets its owntsconfigoverridesReferences
None.
Checklist