Skip to content

Commit

Permalink
Update packages/svelte-check/src/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Aug 27, 2024
1 parent 6fc7299 commit 0dc740f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/svelte-check/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ async function openAllDocuments(
const absFilePaths = await new fdir()
.filter((path) => path.endsWith('.svelte') && !isIgnored(path))
.exclude((_, path) => {
path = path.slice(offset);
return path.startsWith('.') || path.startsWith('node_modules');
return path.includes('/node_modules/') || path.includes('/.');
})
.withPathSeparator('/')
.withFullPaths()
Expand Down

0 comments on commit 0dc740f

Please sign in to comment.