build: type check the script folder during lint (#24892)
This commit is contained in:
parent
4d50f3f62c
commit
b0ea1e14e1
2 changed files with 15 additions and 0 deletions
|
@ -1037,6 +1037,11 @@ steps-lint: &steps-lint
|
|||
cd src/electron
|
||||
node script/yarn install --frozen-lockfile
|
||||
node script/yarn lint
|
||||
- run:
|
||||
name: Run Script Typechecker
|
||||
command: |
|
||||
cd src/electron
|
||||
node script/yarn tsc -p tsconfig.script.json
|
||||
|
||||
steps-checkout-and-save-cache: &steps-checkout-and-save-cache
|
||||
steps:
|
||||
|
|
10
tsconfig.script.json
Normal file
10
tsconfig.script.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"script"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue