Skip to content

Commit

Permalink
Update check config to avoid checking non-sveltekit files
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Apr 16, 2024
1 parent a462f82 commit 384dab5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/sveltekit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
branches: [sveltekit]

jobs:

unit-test:
runs-on: ubuntu-latest

Expand All @@ -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

Expand All @@ -43,4 +42,3 @@ jobs:
env:
NODE_ENV: production
- run: npm run check

19 changes: 17 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"]
}

0 comments on commit 384dab5

Please sign in to comment.