-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
[REQUIRED] Environment info
firebase-tools: 9.20.0
Platform: macOS
[REQUIRED] Test case
Create a project folder with a period, e.g. ".firebaseProject/functions" and run emulator.
[REQUIRED] Steps to reproduce
This regex /(^|[/\])../ excludes not only files with a period, it also excludes directories.
firebase-tools/src/emulator/functionsEmulator.ts
Lines 385 to 392 in 817c261
| const watcher = chokidar.watch(this.args.functionsDir, { | |
| ignored: [ | |
| /.+?[\\\/]node_modules[\\\/].+?/, // Ignore node_modules | |
| /(^|[\/\\])\../, // Ignore files which begin the a period | |
| /.+\.log/, // Ignore files which have a .log extension | |
| ], | |
| persistent: true, | |
| }); |
[REQUIRED] Expected behavior
Only files with a period should be excluded with chokidar. Changes in my sample project ".firebaseProject/functions" folder should be updated.
[REQUIRED] Actual behavior
Changes in functions folder are not updated, because directories with a period are excluded.