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:
parent
5fd6b4dca7
commit
987a576423
18 changed files with 228 additions and 34 deletions
|
@ -23,5 +23,12 @@
|
|||
"experimentalDecorators": true
|
||||
},
|
||||
"include": ["src", "../messages", "scripts"],
|
||||
"references": [{ "path": "../../../packages/tldraw" }]
|
||||
"references": [
|
||||
{
|
||||
"path": "../../../packages/assets"
|
||||
},
|
||||
{
|
||||
"path": "../../../packages/tldraw"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -23,5 +23,12 @@
|
|||
"experimentalDecorators": true
|
||||
},
|
||||
"include": ["src", "../messages", "scripts"],
|
||||
"references": [{ "path": "../../../packages/tldraw" }]
|
||||
"references": [
|
||||
{
|
||||
"path": "../../../packages/editor"
|
||||
},
|
||||
{
|
||||
"path": "../../../packages/tldraw"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue