From 2cca168d390545caeffcb1de814d8e7c0ecb21ee Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 18 Nov 2023 14:03:58 +0800 Subject: [PATCH] Check Typescript --- .github/workflows/ci.yml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c79e917..f780424 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,5 +53,8 @@ jobs: - name: Lint run: pnpm run lint + + - name: Check Typescript + run: pnpm run check-ts # more things can be add later like tests etc.. diff --git a/package.json b/package.json index b8b2e56..8e6cbe0 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "fmt": "eslint \"**/*.{ts,vue}\" --fix", "lint": "eslint \"**/*.{ts,vue}\"", + "check-ts": "tsc --noEmit", "start": "tsx ./backend/index.ts", "dev:backend": "cross-env NODE_ENV=development tsx watch ./backend/index.ts", "dev:frontend": "cross-env NODE_ENV=development vite --host --config ./frontend/vite.config.ts",