Skip to content

Commit 28bf7f9

Browse files
committed
Only use ignoreDeps for TS next
1 parent e27b9ab commit 28bf7f9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,22 @@ jobs:
186186
- name: Erase path aliases
187187
run: sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json
188188

189-
- name: Test types
189+
- name: Test types (TS 5.x)
190+
if: matrix.ts != 'next' && !startsWith(matrix.ts, '6.')
190191
env:
191192
TEST_DIST: true
192193
run: |
193194
yarn tsc --version
194195
yarn type-tests
195196
197+
- name: Test types (TS 6.x/next)
198+
if: matrix.ts == 'next' || startsWith(matrix.ts, '6.')
199+
env:
200+
TEST_DIST: true
201+
run: |
202+
yarn tsc --version
203+
yarn tsc -p tsconfig.test.json --noEmit --ignoreDeprecations 6.0
204+
196205
test-published-artifact:
197206
name: Test Published Artifact ${{ matrix.example }}
198207

packages/toolkit/tsconfig.test.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// For runtime and type tests during CI.
33
"extends": "./tsconfig.base.json",
44
"compilerOptions": {
5-
"ignoreDeprecations": "6.0",
65
"emitDeclarationOnly": false,
76
"noEmit": true,
87
"rootDir": "./src",

0 commit comments

Comments
 (0)