From 95bdde8074fb8a42830cfc8f2d9642187a2a1d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 17 Apr 2024 18:01:22 +0800 Subject: [PATCH] ci: drop node 16 --- .github/workflows/unit-test.yml | 2 +- tsconfig.json | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 49655fa..e71661b 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -31,7 +31,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - node: [16, 18] + node: [18, 20] fail-fast: false steps: diff --git a/tsconfig.json b/tsconfig.json index 9b56eb1..3d181d6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,15 +2,17 @@ "compilerOptions": { "target": "esnext", "lib": ["es2022"], - "module": "esnext", - "moduleResolution": "node", + "moduleDetection": "force", + "module": "preserve", + "moduleResolution": "bundler", "resolveJsonModule": true, "types": ["node"], "strict": true, "noUnusedLocals": true, + "noEmit": true, "esModuleInterop": true, + "isolatedModules": true, "skipLibCheck": true }, - "include": ["src", "tests"], - "exclude": ["tests/fixtures"] + "include": ["src", "tests"] }