From 345d0a582a91db64680e7715f8c823423015ad87 Mon Sep 17 00:00:00 2001 From: AJ Stuyvenberg Date: Wed, 11 Jan 2023 11:19:29 -0500 Subject: [PATCH] feat: support mjs files. --- ServerlessRunWatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServerlessRunWatch.js b/ServerlessRunWatch.js index d210fd2..0b086d7 100644 --- a/ServerlessRunWatch.js +++ b/ServerlessRunWatch.js @@ -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);