From 1ce41631f844c64838432046b2a7a93ec3674157 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Sun, 17 Oct 2021 18:27:20 +1300 Subject: [PATCH] ci: remove incompatible settings for ts 3.4.1 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30595f765..d1a29b8b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,10 @@ jobs: if: matrix.ts_version != 'JS' run: yarn add -D typescript@"${{ matrix.ts_version }}" --ignore-engines + - name: Remove incompatible settings for ts 3.4.1 + if: matrix.ts_version == '3.4.1' + run: node -e 'const fs = require("fs"); const tsconfig = require("./tsconfig.base.json"); delete tsconfig.compilerOptions.exactOptionalPropertyTypes; fs.writeFileSync("./tsconfig.base.json", JSON.stringify(tsconfig));' + - name: Run Tests run: yarn test env: