From 9e8d9b38fe4c972e7d1cf4f1b8ef97e28bf17de0 Mon Sep 17 00:00:00 2001 From: harigel Date: Tue, 5 Mar 2024 04:49:44 +0900 Subject: [PATCH] Fix #240 No file matches include / exclude patterns when using Layers --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 4a8db651..0ae13186 100644 --- a/src/index.ts +++ b/src/index.ts @@ -189,6 +189,10 @@ export class TypeScriptPlugin { const emitedFiles = await typescript.run(this.rootFileNames, tsconfig) this.serverless.cli.log('Typescript compiled.') + + // Restore service path + this.serverless.config.servicePath = this.originalServicePath; + return emitedFiles }