Check tsconfig "references" arrays (#2891)

Closes #2800

This PR makes it so that `check-scripts` will error out if you forget to
add a "references" entry to a tsconfig file when adding an internal
dependency in our monorepo.

If these project references are missed it can prevent TS from
building/rebuilding things when they need to be built/rebuilt.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package[^2]
This commit is contained in:
David Sheldrick 2024-02-21 13:07:53 +00:00 committed by GitHub
parent 5fd6b4dca7
commit 987a576423
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 228 additions and 34 deletions

View file

@ -23,5 +23,12 @@
"experimentalDecorators": true
},
"include": ["src", "../messages", "scripts"],
"references": [{ "path": "../../../packages/tldraw" }]
"references": [
{
"path": "../../../packages/assets"
},
{
"path": "../../../packages/tldraw"
}
]
}

View file

@ -23,5 +23,12 @@
"experimentalDecorators": true
},
"include": ["src", "../messages", "scripts"],
"references": [{ "path": "../../../packages/tldraw" }]
"references": [
{
"path": "../../../packages/editor"
},
{
"path": "../../../packages/tldraw"
}
]
}