serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
[BUG - Since 2.1.5] Compilation of tsconfig include files does not honour tsConfigFileLocation in serverless
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