I've installed serverless-plugin-typescript, but it does not seem to recognize paths from tsconfig. How do you wire up serverless.yml to acknowledge and use paths defined in tsconfig.json? ) Supports sls package, sls deploy and sls deploy function Supports sls invoke. Most of the blogs online show how to write the serverless file in YAML format, But today we’ll do it in TypeScript. serverless.yml // Uses serverless-bundle plugin. So, Go to the command line and install it. If serverless-bundle detects a tsconfig.json in your service root. Zero-config: Works out of the box without the need to install any other compiler or plugins Supports ES2015 syntax + features (export, import, async, await, Promise. We need to install a plugin called serverless-offline which will let us run our code offline without the need of having AWS resources. I'm trying to deploy my Node.js app to Lambda using Serverless framework, however, my Node code uses paths from tsconfig.json for referencing imports but the Serverless deploy process fails. Serverless plugin for zero-config Typescript support.
0 Comments
Leave a Reply. |