Skip to content

Commit b0ea1e1

Browse files
build: type check the script folder during lint (electron#24892)
1 parent 4d50f3f commit b0ea1e1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,11 @@ steps-lint: &steps-lint
10371037
cd src/electron
10381038
node script/yarn install --frozen-lockfile
10391039
node script/yarn lint
1040+
- run:
1041+
name: Run Script Typechecker
1042+
command: |
1043+
cd src/electron
1044+
node script/yarn tsc -p tsconfig.script.json
10401045
10411046
steps-checkout-and-save-cache: &steps-checkout-and-save-cache
10421047
steps:

tsconfig.script.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"noEmit": true
6+
},
7+
"include": [
8+
"script"
9+
]
10+
}

0 commit comments

Comments
 (0)