mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 22:16:42 +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, {
|
const watcher = chokidar.watch(source, {
|
||||||
ignored: [
|
ignored: [
|
||||||
/(^|[\/\\])\../, // ignore dotfiles
|
/(^|[\/\\])\../, // ignore dotfiles
|
||||||
/node_modules/, // ignore node_modules
|
/(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules
|
||||||
/\.git/, // ignore .git
|
/(^|[\/\\])\.git([\/\\]|$)/, // ignore .git
|
||||||
],
|
],
|
||||||
persistent: true,
|
persistent: true,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user