Because Node.js doesn't run TypeScript code natively, you must first transpile your TypeScript code into JavaScript. Then, use the JavaScript files to deploy your function code to Lambda. But now you can write a lambda typescript with the NodejsFunction construct without transpile your code first.