From 7a2187173405af8974b94cfaa1f800a464ef5cd7 Mon Sep 17 00:00:00 2001 From: "Mr.Z" Date: Sat, 16 Dec 2023 15:19:22 +0800 Subject: [PATCH] chore: add `typecheck` from ci cann't use with lint-staged lint-staged/lint-staged#468 check all files try fixed microsoft/TypeScript#27379 microsoft/TypeScript#49817 as an alternative https://github.com/gustavopch/tsc-files --- .github/workflows/ci.yml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 459f6fe..53b9e07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: - run: pnpm install + - name: Run typecheck + run: npm run typecheck + - name: Run unit tests run: npm run test -- --package-name '*' diff --git a/package.json b/package.json index 09818d9..4e0a9c9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "update": "ddc update", "test": "ddc test", "add": "ddc add", - "release": "ddc release" + "release": "ddc release", + "typecheck": "tsc --noEmit --skipLibCheck" }, "scripts-info": { "init": "首次安装",