core icon indicating copy to clipboard operation
core copied to clipboard

Add script for ensuring that `tsconfig.json` and `tsconfig.build.json` match, and run it on lint

Open mcmire opened this issue 2 years ago • 0 comments

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.

mcmire avatar Oct 25 '23 16:10 mcmire