File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 19
19
ts_version :
20
20
- " next"
21
21
- " latest"
22
- - " 4.0.2 "
22
+ - " 4.3.5 "
23
23
- " JS"
24
24
runs-on : ${{ matrix.os }}
25
25
continue-on-error : ${{ matrix.ts_version == 'next' }}
47
47
if : matrix.ts_version != 'JS'
48
48
run : pnpm add -D typescript@"${{ matrix.ts_version }}"
49
49
50
- - name : Remove incompatible settings for ts 4.0.2
51
- if : matrix.ts_version == '4.0.2'
52
- run : |
53
- node -e '
54
- const fs = require("fs");
55
- const filename = "./tsconfig.json";
56
- const tsConfig = require(filename);
57
- delete tsConfig.compilerOptions.exactOptionalPropertyTypes;
58
- delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;
59
- delete tsConfig.compilerOptions.noUncheckedIndexedAccess;
60
- const tsConfigString = JSON.stringify(tsConfig, undefined, 2);
61
- fs.writeFileSync(filename, tsConfigString, { encoding: "utf8" });
62
- console.log("TS Config updated successfully.");
63
- '
64
-
65
50
- name : Run Tests
66
51
run : pnpm test-compiled
67
52
Original file line number Diff line number Diff line change 148
148
},
149
149
"peerDependencies" : {
150
150
"eslint" : " ^8.0.0" ,
151
- "typescript" : " >=4.0.2 "
151
+ "typescript" : " >=4.3.5 "
152
152
},
153
153
"peerDependenciesMeta" : {
154
154
"typescript" : {
You can’t perform that action at this time.
0 commit comments