From d8d552f64e14a5fc31477547044d10bcaa8679fd Mon Sep 17 00:00:00 2001 From: daishi Date: Thu, 31 Aug 2023 22:10:49 +0900 Subject: [PATCH] fix test old ts file 4 --- .github/workflows/test-old-typescript.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-old-typescript.yml b/.github/workflows/test-old-typescript.yml index 773c34802f..cde1badf56 100644 --- a/.github/workflows/test-old-typescript.yml +++ b/.github/workflows/test-old-typescript.yml @@ -13,6 +13,7 @@ jobs: fail-fast: false matrix: typescript: + - 5.2.2 - 5.1.6 - 5.0.4 - 4.9.5 @@ -39,7 +40,7 @@ jobs: - name: Patch for Newer TS if: ${{ matrix.typescript == '4.9.5' || matrix.typescript == '4.8.4' }} run: | - sed -i~ 's/"moduleResolution": "[a-zA-Z]+",/"moduleResolution": "node",/' tsconfig.json + sed -i~ 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json sed -i~ 's/"allowImportingTsExtensions": true,//' tsconfig.json sed -i~ 's/"jotai": \["\.\/src\/index\.ts"\],/"jotai": [".\/dist\/index.d.ts"],/' tsconfig.json sed -i~ 's/"jotai\/\*": \["\.\/src\/\*\.ts"\]/"jotai\/*": [".\/dist\/*.d.ts"]/' tsconfig.json @@ -50,7 +51,7 @@ jobs: sed -i~ 's/\/\/ @ts-expect-error.*\[LATEST-TS-ONLY\]//' tests/*/*.tsx tests/*/*/*.tsx sed -i~ 's/"target":/"skipLibCheck":true,"target":/' tsconfig.json sed -i~ 's/"exactOptionalPropertyTypes": true,//' tsconfig.json - sed -i~ 's/"moduleResolution": "[a-zA-Z]+",/"moduleResolution": "node",/' tsconfig.json + sed -i~ 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json sed -i~ 's/"allowImportingTsExtensions": true,//' tsconfig.json sed -i~ 's/"jotai": \["\.\/src\/index\.ts"\],/"jotai": [".\/dist\/ts3.8\/index.d.ts"],/' tsconfig.json sed -i~ 's/"jotai\/\*": \["\.\/src\/\*\.ts"\]/"jotai\/*": [".\/dist\/ts3.8\/*.d.ts"]/' tsconfig.json