From 0cba2b49bfc953122f95c91c829900cab1911cd4 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 17 Jun 2024 11:56:05 +0200 Subject: [PATCH] build: explicitly set typeRoots (#12599) --- .github/workflows/changed-packages.yml | 4 ++++ tsconfig.base.json | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changed-packages.yml b/.github/workflows/changed-packages.yml index 9f9b62b00efbf..ce6c4e4bc7b97 100644 --- a/.github/workflows/changed-packages.yml +++ b/.github/workflows/changed-packages.yml @@ -45,14 +45,18 @@ jobs: - 'tools/mocha-runner/**' - '.mocharc.cjs' - 'tools/doctest/**' + - 'tsconfig.base.json' website: - '.github/workflows/ci.yml' - 'docs/**' - 'website/**' - 'README.md' + - 'tsconfig.base.json' ng-schematics: - '.github/workflows/ci.yml' - 'packages/ng-schematics/**' + - 'tsconfig.base.json' browsers: - '.github/workflows/ci.yml' - 'packages/browsers/**' + - 'tsconfig.base.json' diff --git a/tsconfig.base.json b/tsconfig.base.json index d0382df6989e4..09aa60eff790d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -20,6 +20,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, + "skipLibCheck": true, "sourceMap": true, "strict": true, "strictBindCallApply": true, @@ -27,7 +28,7 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "target": "ES2022", - "useUnknownInCatchVariables": true, - "skipLibCheck": true + "typeRoots": ["./node_modules/@types"], + "useUnknownInCatchVariables": true } }