core
core copied to clipboard
Add script for ensuring that `tsconfig.json` and `tsconfig.build.json` match, and run it on lint
It is critical that if you list a package in tsconfig.json, then you also list it in tsconfig.build.json. This is easy to get wrong especially when creating a new package. The first is important because you won't see type errors in your package otherwise; the second is important because you won't be able to publish your package otherwise.
We can write a script to check for this for now. In the future when we convert Yarn constraints to JavaScript, we can convert this to a Yarn constraint.