@@ -37,7 +37,7 @@ def validate_no(value):
3737class TypescriptLanguagePlugin (LanguagePlugin ):
3838 MODULE_NAME = __name__
3939 NAME = "typescript"
40- RUNTIME = "nodejs18 .x"
40+ RUNTIME = "nodejs20 .x"
4141 ENTRY_POINT = "dist/handlers.entrypoint"
4242 TEST_ENTRY_POINT = "dist/handlers.testEntrypoint"
4343 CODE_URI = "./"
@@ -156,20 +156,25 @@ def _copy_resource(path, resource_name=None):
156156 lib_name = SUPPORT_LIB_NAME ,
157157 )
158158
159+ _render_template (
160+ project .root / "Makefile" ,
161+ )
162+
159163 # CloudFormation/SAM template for handler lambda
160164 handler_params = {
161165 "Handler" : project .entrypoint ,
162166 "Runtime" : project .runtime ,
163167 "CodeUri" : self .CODE_URI ,
164168 }
165- handler_function = {
166- "TestEntrypoint" : {** handler_params , "Handler" : project .test_entrypoint },
169+ test_handler_params = {
170+ ** handler_params ,
171+ "Handler" : project .test_entrypoint ,
167172 }
168- handler_function [MAIN_HANDLER_FUNCTION ] = handler_params
169173 _render_template (
170174 project .root / "template.yml" ,
171175 resource_type = project .type_name ,
172- functions = handler_function ,
176+ handler_params = handler_params ,
177+ test_handler_params = test_handler_params ,
173178 )
174179
175180 LOG .debug ("Init complete" )
0 commit comments