mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 05:55:38 +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:
parent
3f880e6610
commit
5a66cdbf17
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user