Add Yarn constraint to validate references in tsconfig.json
and tsconfig.build.json
against internal dependencies
#1922
Labels
tsconfig.json
and tsconfig.build.json
against internal dependencies
#1922
It is critical that if your package relies on another package within the repo, that you add that package not only as a dependency, but you also add that package to the
references
field in bothtsconfig.json
andtsconfig.build.json
. Doing so ensures that your package is being compiled with the correct types at build time.Furthermore, it is critical that the list of references in
tsconfig.json
andtsconfig.build.json
are the same, except that each reference intsconfig.build.json
ends in/tsconfig.build.json
. Doing so ensures that the exact same set of types are used in development as production.It is easy to miss one or both of these items, especially when creating a new package.
Now that we are using JavaScript constraints, we can check both using constraints.
The text was updated successfully, but these errors were encountered: