Use passed tsconfig
Use passed in tsconfig when checking TS. Previously this was not being passed on so it was using the default tsconfig which for most projects meant it was type checking the tests when building for production which both added overhead and caused it to fail when dev dependencies were not present