Description
As discussed compileOnSave
support in tsconfig.json
is due to ship with TS 1.8.
However compileOnSave
is just for stopping compiling on save as I understand. Are there plans to support for buildOnSave
as well?
My use case is this:
I have a web app which has been built using TypeScript (since TS was 0.9!) The older part of the codebase works and uses global scope with namespaces and is written in ES5. The newer part of the codebase is written using ES6 / modules and is compiled using Webpack with ts-loader and babel-loader.
Each part of the code base is driven by a separate tsconfig.json
; however - deactivating the Visual Studio build by adding <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
to the .csproj
(see here) is an all or nothing affair.
So if I turn it off I have to manually run tsc
against the old code in order that it is generated. Do-able but clunky. It'd be nice to be able to control both build and file level compilation from tsconfig.json