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

Commit

Permalink
fix(handlers): Typescript handlers are created for "node" runtime (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwol05 committed Dec 15, 2022
1 parent a25f140 commit d13a906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d13a906

Please sign in to comment.