From 384dab5da17772d4b662bc630a7354e8460725b8 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Tue, 16 Apr 2024 11:28:16 -0400 Subject: [PATCH] Update check config to avoid checking non-sveltekit files --- .github/workflows/sveltekit.yml | 6 ++---- jsconfig.json | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sveltekit.yml b/.github/workflows/sveltekit.yml index 88ba3b287..ac061aefe 100644 --- a/.github/workflows/sveltekit.yml +++ b/.github/workflows/sveltekit.yml @@ -11,7 +11,6 @@ on: branches: [sveltekit] jobs: - unit-test: runs-on: ubuntu-latest @@ -25,10 +24,10 @@ jobs: - run: npm run build env: NODE_ENV: production - - run: npm test:coverage + - run: npm run test:coverage - name: Report Coverage uses: davelosert/vitest-coverage-report-action@v2 - + check: runs-on: ubuntu-latest @@ -43,4 +42,3 @@ jobs: env: NODE_ENV: production - run: npm run check - \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 404366663..97939e152 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -8,11 +8,26 @@ "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, - "strict": true, + "strict": false, "moduleResolution": "bundler" - } + }, // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // from the referenced tsconfig.json - TypeScript does not merge them in + "include": [ + ".svelte-kit/**", + "vite.config.js", + "vite.config.ts", + "src/lib/**/*.js", + "src/lib/**/*.ts", + "src/lib/**/*.svelte", + "src/routes/**/*.js", + "src/routes/**/*.ts", + "src/routes/**/*.svelte", + "tests/**/*.js", + "tests/**/*.ts", + "tests/**/*.svelte" + ], + "exclude": ["node_modules/**", "public/**"] }