From d13a906059bbd92ed3df738d81ab024d8eae1795 Mon Sep 17 00:00:00 2001 From: Ujjwol Shrestha Date: Thu, 15 Dec 2022 18:18:37 +1100 Subject: [PATCH] fix(handlers): Typescript handlers are created for "node" runtime (#119) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0bc3faf..dd4bafd 100644 --- a/src/index.js +++ b/src/index.js @@ -192,7 +192,7 @@ export default class ServerlessEpsagonPlugin { const matchingFiles = glob.sync(`${relativePath}.*`); if ( matchingFiles.length > 0 && - (matchingFiles[0].endsWith('.ts') || + ((matchingFiles[0].endsWith('.ts') && (!matchingFiles[0].endsWith('.d.ts'))) || matchingFiles[0].endsWith('.tsx')) ) { // This is a good enough test for now. lets treat it as TS.