Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit d13a906

Browse files
authored
fix(handlers): Typescript handlers are created for "node" runtime (#119)
1 parent a25f140 commit d13a906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default class ServerlessEpsagonPlugin {
192192
const matchingFiles = glob.sync(`${relativePath}.*`);
193193
if (
194194
matchingFiles.length > 0 &&
195-
(matchingFiles[0].endsWith('.ts') ||
195+
((matchingFiles[0].endsWith('.ts') && (!matchingFiles[0].endsWith('.d.ts'))) ||
196196
matchingFiles[0].endsWith('.tsx'))
197197
) {
198198
// This is a good enough test for now. lets treat it as TS.

0 commit comments

Comments
 (0)