Skip to content

Problem with required TS. #13656

Closed
Closed
@SergeySagan

Description

@SergeySagan

With the new version of Typescript, not sure how recent, if you define a tsconfig but have no ts files to compile you get a

No inputs were found in config file

error.

Actually:

error TS18003: Build:No inputs were found in config file 'C:/Code/TSTest/tsconfig.json'. Specified 'include' paths were '["**/"]' and 'exclude' paths were '["../wwwroot/app","node_modules/"]'.
1> The command exited with code 1.
1> Done executing task "VsTsc" -- FAILED.

As I said, this is a fairly recent change and looking at the config options, I do not see a way to disable this requirement. My organization is building a large (30+ web and API projects) solution and instead of having each web have its own copy of the tsconfig, we prefer to have a single copy that gets injected into each of the web projects. However, not all of the projects have a need for custom JS so not all of them will have TS files... but now, all of our builds without a TS file fail! Why was this change made without allowing an option to disable this requirement? How do I work around this issue without having to reengineer our whole build process?!? These kinds of changes should not be made without considering how this will impact others!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions