{"repo":"serverless/serverless-plugin-typescript","free":true,"listed":false,"github":"https://github.com/serverless/serverless-plugin-typescript","clone":"git clone https://github.com/serverless/serverless-plugin-typescript.git","description":"Serverless plugin for zero-config Typescript support","language":"TypeScript","stars":793,"topics":["serverless","typescript","aws-lambda","babel","webpack","rollup","serverless-framework","serverless-plugin"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"serverless-plugin-typescript Originally developed by Prisma Labs, now maintained in scope of Serverless, Inc Serverless plugin for zero-config Typescript support Features 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 , ...) Supports sls package , sls deploy and sls deploy function Supports sls invoke local + --watch mode Integrates nicely with serverless-offline Install Add the following plugin to your serverless.yml : Configure See example folder for a minimal example. tsconfig.json The default tsconfig.json file used by the plugin looks like this: Note 1: The outDir and rootDir options cannot be overwritten. Note 2: Don't confuse the tsconfig.json in this repository with the one mentioned above. Including extra files All files from package/include will be included in the final build file. See Exclude/Include Non-standard tsconfig.json locations Override what tsconfig.json to use with the following snippet in your severless.yaml Usage Google Cloud Functions When using with Google Cloud Functions via the serverless-google-cloudfunctions plugin, you simply have to provide a main field in your package.json : And this plugin will automatically compile your typescript correctly. Note that the field must refer to the compiled file name, namely, ending with a .js extension. If a main field was not found, then this plugin will use index.js . Before compilation ","default_branch":null,"files":null,"tree":[],"storefront":"/r/serverless","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/serverless/serverless-plugin-typescript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}