From b0ea1e14e12ebef7beada69e221644c87424e1fc Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 7 Aug 2020 13:49:07 -0700 Subject: [PATCH] build: type check the script folder during lint (#24892) --- .circleci/config.yml | 5 +++++ tsconfig.script.json | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tsconfig.script.json diff --git a/.circleci/config.yml b/.circleci/config.yml index 8f8260afecaa..ad6a2c45bcfd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/tsconfig.script.json b/tsconfig.script.json new file mode 100644 index 000000000000..12c0ba961b60 --- /dev/null +++ b/tsconfig.script.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": ".", + "noEmit": true + }, + "include": [ + "script" + ] +}