JSPM

  • Created
  • Published
  • Downloads 104057
  • Score
    100M100P100Q180430F

Package Exports

  • serverless-plugin-typescript

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

serverless-plugin-typescript

serverless npm version CircleCI

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, ...)

Install

yarn add --dev serverless-plugin-typescript

Add the following plugin to your serverless.yml:

plugins:
  - serverless-plugin-typescript

Example

See example folder for a minimal example.

tsconfig.json

The default tsconfig.json file used by the plugin looks like this:

{
  "preserveConstEnums": true,
  "strictNullChecks": true,
  "sourceMap": true,
  "target": "es5",
  "outDir": ".build",
  "moduleResolution": "node",
  "lib": ["es2015"],
}

Note: Don't confuse the tsconfig.json in this repository with the one mentioned above.

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!