Niv-Mizzet
Niv-Mizzet

Reputation: 371

Execute Typescript code inside Serverless config

I use Serverless framework to deploy my backend. My lambdas are written in Typescript and I deploy them using serverless-webpack plugin. Serverless allows to reference variables in javascript files using syntax:

# serverless.yml
service: new-service
provider: aws

custom: ${file(../config.js)}

But it works for javascript. How can I do the same with Typescript code? My goal is to have all project code written in Typescript.

Upvotes: 4

Views: 540

Answers (0)

Related Questions