- Integrates with serverless-offline (live reload without restart server)
- It's not necessary complementary configuration
yarn add --dev serverless-plugin-typescript-express
or
npm install --save-dev serverless-plugin-typescript-express
Add the following plugin to your serverless.yml
:
plugins:
- 'serverless-plugin-typescript-express'
The default tsconfig.json
file used by the plugin looks like this:
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"outDir": "dist",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"isolatedModules": false,
"lib": [
"es6",
"dom"
]
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
}
MIT