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

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

Open Rayyan98 opened this issue 1 year ago • 0 comments

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

Rayyan98 avatar Jul 11 '23 06:07 Rayyan98