mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
Use properly anchored regex patterns for node_modules and .git
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
1 parent
3f880e6610
commit
5a66cdbf17
1 file changed
+2
-2
@@ -67,8 +67,8 @@ export default async (src: string = 'deps') => {
|
||||
const watcher = chokidar.watch(source, {
|
||||
ignored: [
|
||||
/(^|[\/\\])\../, // ignore dotfiles
|
||||
/node_modules/, // ignore node_modules
|
||||
/\.git/, // ignore .git
|
||||
/(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules
|
||||
/(^|[\/\\])\.git([\/\\]|$)/, // ignore .git
|
||||
],
|
||||
persistent: true,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user