Skip to content

Commit

Permalink
feat: update watch exclude rule (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
life2015 authored Oct 31, 2022
1 parent dd06f9b commit 9ee7419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core-browser/src/core-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const FILES_DEFAULTS = {
filesWatcherExclude: {
'**/.git/objects/**': true,
'**/.git/subtree-cache/**': true,
'**/node_modules/**/*': true,
'**/node_modules/*/**': true,
'**/.hg/store/**': true,
},
filesExclude: {
'**/.git': true,
Expand Down
2 changes: 1 addition & 1 deletion packages/file-service/src/node/file-service-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class ParcelWatcherServer implements IFileSystemWatcherServer {
}

private getDefaultWatchExclude() {
return ['**/.git/objects/**', '**/.git/subtree-cache/**', '**/node_modules/**/*'];
return ['**/.git/objects/**', '**/.git/subtree-cache/**', '**/node_modules/*/**', '**/.hg/store/**'];
}

protected async start(
Expand Down

0 comments on commit 9ee7419

Please sign in to comment.