Skip to content

Commit ab52daa

Browse files
committed
ci: Remove all @types except for node when testing types on old TS
1 parent 85be08d commit ab52daa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/typescript.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ jobs:
1818
with: { node-version: 16.x }
1919
- run: npm ci
2020
- run: npm run build:node
21-
- run: npm run test:dist:types
22-
- run: npm uninstall jest @types/jest
2321

2422
- run: npm install --no-save typescript@4.2
23+
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
2524
- run: npm run test:dist:types
2625

2726
- run: npm install --no-save typescript@4.0
27+
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
2828
- run: npm run test:dist:types
2929

3030
- run: npm install --no-save typescript@3.8
31+
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
3132
- run: npm run test:dist:types

0 commit comments

Comments
 (0)