tsfmt maven plugin by source-knights · Pull Request #553 · diffplug/spotless
and others added 12 commits
March 26, 2020 13:49This does not work in the Tsfmt class but in the AbstractSpotlessMojo class: @parameter(defaultValue = "${project.build.directory}" So the change is to set it in the Mojo class to the FileLocator and get it from there if required
When I use "files" with a direct link to "src/main/typescript/test.ts" it works. If I leave "files" out (and just use "include": [ "src/main/typescript/*.ts" ] ) it does fail with C:\Users\xyz\AppData\Local\Temp\junit3377288995823290344\target\spotless-node-modules-tsfmt-format\node_modules\typescript-formatter\lib\utils.js:64: Error: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/main/typescript/*.ts"]' and 'exclude' paths were '["nothing.xml"]'. -> [Help 1]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters