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.