Skip to content

Commit

Permalink
feat: support mjs files.
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve committed Jan 11, 2023
1 parent 776a906 commit 345d0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ServerlessRunWatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ServerlessRunWatch {
if (this.cliOptions["watch-glob"]) {
this.watchPaths.push(...this.cliOptions["watch-glob"].split(","));
} else {
this.watchPaths.push(`${this.serviceDir}/**/*.(js|py|ts|go|java|rb)`);
this.watchPaths.push(`${this.serviceDir}/**/*.(js|mjs||py|ts|go|java|rb)`);
}
if (this.cliOptions.config) {
this.watchPaths.push(this.cliOptions.config);
Expand Down

0 comments on commit 345d0a5

Please sign in to comment.