From 66a157716b5e97c2eb121b28dc0534c48045e3b9 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Fri, 15 Dec 2023 19:55:05 +0100 Subject: [PATCH 1/3] Tests: Ensure that `.d.ts` files are checked See eg https://github.com/sindresorhus/tsconfig/issues/15 --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index d16e1d114..0667b2aca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "lib": [ "ES2020", "DOM" - ] + ], + "skipLibCheck": false, // Required to ensure that .d.ts files are checked, see: https://github.com/sindresorhus/tsconfig/issues/15 }, "exclude": [ "test-d/**/*" From caf9957a46c9ecc258efb98a772576df163eb00e Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Fri, 15 Dec 2023 19:59:43 +0100 Subject: [PATCH 2/3] Print the installed typescript version in canary --- .github/workflows/ts-canary.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ts-canary.yml b/.github/workflows/ts-canary.yml index 4574fa2e0..2e87f986c 100644 --- a/.github/workflows/ts-canary.yml +++ b/.github/workflows/ts-canary.yml @@ -21,4 +21,6 @@ jobs: node-version: lts/* - run: npm install - run: npm install typescript@${{ matrix.typescript-version }} + - name: show installed typescript version + run: npm list typescript --depth=0 - run: npx tsc From cc731ebc5d3e465dd5e58727df0798ffc7fda31e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 16 Dec 2023 00:50:24 +0100 Subject: [PATCH 3/3] Update tsconfig.json --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 0667b2aca..5a81bf869 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "ES2020", "DOM" ], - "skipLibCheck": false, // Required to ensure that .d.ts files are checked, see: https://github.com/sindresorhus/tsconfig/issues/15 + "skipLibCheck": false, // Ensures .d.ts files are checked: https://github.com/sindresorhus/tsconfig/issues/15 }, "exclude": [ "test-d/**/*"