Skip to content

Functions emulator does not allow directories with a period as a #3858

@DevJoghurt

Description

@DevJoghurt

[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.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions