Enable useTsconfigDeclarationDir when declarationDir
See original GitHub issueCurrent 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closed by #468
Whoops, wrong issue number: #135 Yeah, I can create a PR 😃