Working on a mixed Java/Typescript project with Maven as the build tool, I utilize the frontend-maven-plugin to successfully build from the command line. However, I am encountering an issue with IntelliJ 2018.2 where it keeps transpiling .js files for my .ts source code. This results in Jest test runner running tests twice and causing the Maven build to fail due to linting issues.
Enabling the TypeScript Language Service is necessary to avoid errors in my TypeScript code. When "Recompile on changes" is unchecked, each .ts file prompts at the top asking if I want to "Compile TypeScript to JavaScript? Yes/No/Configure".
I'm wondering if there's a way to configure IntelliJ to write .js files into a separate build directory (which is excluded) similar to how create-react-app operates?