From ef02822c59b2e5fe62ef3faa85a7889780e8d026 Mon Sep 17 00:00:00 2001 From: IlyaL Date: Wed, 25 Jun 2025 21:22:09 +0800 Subject: [PATCH 1/3] chore: add typecheck --- package.json | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 5c62700d..0b3e87d4 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "example:dev": "npm -C examples/vite-vue3 run dev", "prepublishOnly": "npm run build", "lint": "eslint .", + "typecheck": "tsc", "release": "bumpp && npm publish", "test": "vitest", "test:update": "vitest --u" diff --git a/tsconfig.json b/tsconfig.json index 85659df5..62c450c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "resolveJsonModule": true, "strict": true, "strictNullChecks": true, + "noEmit": true, "esModuleInterop": true, "skipLibCheck": true }, From 4038610f1d917bc0be0d2e3a938617951dd33e1a Mon Sep 17 00:00:00 2001 From: IlyaL Date: Wed, 25 Jun 2025 21:22:15 +0800 Subject: [PATCH 2/3] fix: type error --- src/core/options.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/options.ts b/src/core/options.ts index 58ba6239..265bb5fc 100644 --- a/src/core/options.ts +++ b/src/core/options.ts @@ -21,6 +21,9 @@ export const defaultOptions: Omit, 'include' | 'exclude' | 'ex importPathTransform: v => v, allowOverrides: false, + + sourcemap: true, + dumpComponentsInfo: false, } function normalizeResolvers(resolvers: (ComponentResolver | ComponentResolver[])[]): ComponentResolverObject[] { From 4ea2e0bea9c219ddad4fcac974dcbcef14e5583a Mon Sep 17 00:00:00 2001 From: IlyaL Date: Wed, 25 Jun 2025 21:32:19 +0800 Subject: [PATCH 3/3] chore: update ci --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53fc27dd..0510cb7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,9 @@ jobs: - name: Lint run: nr lint + - name: Typecheck + run: nr typecheck + test: runs-on: ${{ matrix.os }}