Skip to content

Enable useTsconfigDeclarationDir when declarationDir #465

@etienne-dldc

Description

@etienne-dldc

Current Behavior

The useTsconfigDeclarationDir in typescript2 rollup plugin is set to false.

Desired Behavior

When declarationDir is set in tsconfig.json set useTsconfigDeclarationDir to true.

Suggested Solution

useTsconfigDeclarationDir: tsconfigJSON && tsconfigJSON.declarationDir

Who does this impact? Who is this for?

This would fix #135 and in general improve experience in Monorepos (making "Go To Definition" work).

Describe alternatives you've considered

Using tsdx.config.js but the config is not easy to change and it's needed in every package of the monorepo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions