Skip to content

Please provide an option for combining only declaration files #192

Closed

Description

Hi,

We have this particular use-case.

Say we have two projects: MyLib.csproj and MyClient.csproj.

For each project we'd like to

  • Generate a single declarations file and have it created in the bin directory, e.g. MyLib.d.ts
  • Redirect all JavaScript output to the bin directory.
  • Not have the JavaScript files combined, instead we have a matching .js file for each .ts file.

This would enable the following

  • The ability to reference types in another project using a single include,
    e.g.
<reference path="MyLib.d.ts" />
  • The ability to debug JavaScript files individually in the browser.

At present the "Combine JavaScript output into file" option combines both the JavaScript and the declarations file.

I suggest another check box for "Combine declarations output into file".

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionOut of ScopeThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions