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 1919 ts_version :
2020 - " next"
2121 - " latest"
22- - " 4.0.2 "
22+ - " 4.3.5 "
2323 - " JS"
2424 runs-on : ${{ matrix.os }}
2525 continue-on-error : ${{ matrix.ts_version == 'next' }}
4747 if : matrix.ts_version != 'JS'
4848 run : pnpm add -D typescript@"${{ matrix.ts_version }}"
4949
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-
6550 - name : Run Tests
6651 run : pnpm test-compiled
6752
Original file line number Diff line number Diff line change 148148 },
149149 "peerDependencies" : {
150150 "eslint" : " ^8.0.0" ,
151- "typescript" : " >=4.0.2 "
151+ "typescript" : " >=4.3.5 "
152152 },
153153 "peerDependenciesMeta" : {
154154 "typescript" : {
You can’t perform that action at this time.
0 commit comments