From 44bca9b990a6631bc52c4987ae23bc0c32a27d01 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 20 Jun 2025 10:59:59 +0700 Subject: [PATCH] build: configure TypeScript to cover all files (#732) * build: configure TypeScript to cover all files Signed-off-by: Alfi Maulana * build: configure TypeScript not to emit compiled files Signed-off-by: Alfi Maulana --------- Signed-off-by: Alfi Maulana --- .github/workflows/build.yaml | 2 +- lefthook.yml | 6 ++---- tsconfig.json | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b5fb97f..0eb4197 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,7 +25,7 @@ jobs: run: pnpm eslint - name: Check Types - run: pnpm tsc --noEmit + run: pnpm tsc - name: Test Action run: pnpm test diff --git a/lefthook.yml b/lefthook.yml index 5f86e18..936e465 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -15,14 +15,12 @@ pre-commit: run: pnpm eslint --no-warn-ignored --fix {staged_files} - name: check types - run: pnpm tsc --noEmit + run: pnpm tsc glob: - - src/*.ts + - "*.ts" - .npmrc - pnpm-lock.yaml - tsconfig.json - exclude: - - src/*.test.ts - name: build action run: pnpm rollup -c diff --git a/tsconfig.json b/tsconfig.json index 57eab14..452833a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tsconfig/node20", - "include": ["src"], - "exclude": ["**/*.test.ts"], "compilerOptions": { - "module": "node16" + "module": "node16", + "noEmit": true } }