serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
781 stars 222 forks source link

[BUG - Since 2.1.5] Compilation of tsconfig include files does not honour tsConfigFileLocation in serverless #296

Open Rayyan98 opened 1 year ago

Rayyan98 commented 1 year ago

The feature introduced in 2.1.5 by the PR https://github.com/serverless/serverless-plugin-typescript/pull/190 about compiling ts files matched by the tsconfig include is hard coded to read the 'tsconfig.json' file from the directory. In our case this breaks compilation since we provide a different tsconfig to the plugin through tsConfigFileLocation option in serverless. The other tsconfig excludes some files which utilise the typescript references feature to refer to code from other projects (since we are in a mono repo) and worked until 2.1.4.

Referenced code

image