question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable useTsconfigDeclarationDir when declarationDir

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
agilgur5commented, Mar 9, 2020

Closed by #468

1reaction
etienne-dldccommented, Jan 29, 2020

Whoops, wrong issue number: #135 Yeah, I can create a PR 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

@rollup/plugin-typescript - npm
This setup will produce dist/index.mjs and dist/src/index.d.ts . To correctly place the declaration file, add an exclude setting in tsconfig and ...
Read more >
TSConfig Reference - Docs on every TSConfig option
# Declaration Dir - declarationDir. Offers a way to configure the root directory for where declaration files are emitted. example ├── index ...
Read more >
Rollup Plugin Typescript2: Compile TypeScript V2.0+. - Morioh
Only enable this if you need it ( Error: Unknown object type "xxx" for ... this behavior and instead use the declarationDir set...
Read more >
rollup esm and umd builds, with typescript plugin and ...
... TS5023: Unknown compiler option 'useTsconfigDeclarationDir'." ... So I also commented out "declarationDir" in the tsconfig ... no more ...
Read more >
declarationDir not used in extended tsconfig.json - Bountysource
Javascript Required. Kindly enable Javascript. ... Coming soon: A brand new website interface for an even better experience!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found