serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

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

Open adlaika opened this issue 4 years ago • 1 comments

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?

adlaika avatar Mar 23 '21 17:03 adlaika

add the following to tsconfig.json:

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

ilyakharlamov avatar Jul 30 '21 14:07 ilyakharlamov