serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
783 stars 223 forks source link

How do I configure serverless to fail on typescript compilation errors/warnings? #230

Open adlaika opened 3 years ago

adlaika commented 3 years ago

I have a repo with a tsconfig.json that fails typescript compilation, but running sls package just logs the errors/warnings instead of failing. Is there a way to configure it to fail?

ilyakharlamov commented 3 years ago

add the following to tsconfig.json:

{
  ...
   "noEmitOnError": true
 ...
}