Skip to content

Commit 345d0a5

Browse files
committed
feat: support mjs files.
1 parent 776a906 commit 345d0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ServerlessRunWatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ServerlessRunWatch {
7777
if (this.cliOptions["watch-glob"]) {
7878
this.watchPaths.push(...this.cliOptions["watch-glob"].split(","));
7979
} else {
80-
this.watchPaths.push(`${this.serviceDir}/**/*.(js|py|ts|go|java|rb)`);
80+
this.watchPaths.push(`${this.serviceDir}/**/*.(js|mjs||py|ts|go|java|rb)`);
8181
}
8282
if (this.cliOptions.config) {
8383
this.watchPaths.push(this.cliOptions.config);

0 commit comments

Comments
 (0)