Skip to content

buildOnSave support in tsconfig.json #7091

Closed
@johnnyreilly

Description

@johnnyreilly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptVisual StudioIntegration with Visual Studio

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions