Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ttypescript instead of typescript for TS paths aliases? #819

Closed
mdeljavan opened this issue Aug 23, 2020 · 1 comment
Closed
Labels
kind: question This is a usage or similar question kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause scope: integration Related to an integration, not necessarily to core (but could influence core) scope: upstream Issue in upstream dependency solution: duplicate This issue or pull request already exists solution: workaround available There is a workaround available for this issue topic: TS Paths Aliases Related to using aliases with TypeScript paths

Comments

@mdeljavan
Copy link

mdeljavan commented Aug 23, 2020

I am using alias paths in my library and after building it, these paths in declaration files do not resolve. So i want to use ttypescript instead typescript in rollup config to solve this issue.
But i don't find a way to replace typescript with ttypescript in tsdx.config.js file.
How can do it?

@agilgur5 agilgur5 added the problem: removed issue template OP removed the issue template without good cause label Aug 23, 2020
@agilgur5 agilgur5 changed the title How to use ttypescript instead of typescript How to use ttypescript instead of typescript? Aug 23, 2020
@agilgur5 agilgur5 added solution: duplicate This issue or pull request already exists kind: question This is a usage or similar question kind: support Asking for support with something or a specific use case topic: TS Paths Aliases Related to using aliases with TypeScript paths scope: upstream Issue in upstream dependency labels Aug 23, 2020
@agilgur5
Copy link
Collaborator

Please don't remove the issue template, it is there for a reason. Please do search the issues, as there are several regarding TS Paths Aliases with #91 being the central issue.

To answer the question though, TSDX uses rollup-plugin-typescript2 under-the-hood and it has typescript and transformers options you can pass to it. It is non-trivial to override its options however.

@agilgur5 agilgur5 changed the title How to use ttypescript instead of typescript? How to use ttypescript instead of typescript for TS paths aliases? Aug 23, 2020
@agilgur5 agilgur5 added the solution: workaround available There is a workaround available for this issue label Aug 25, 2020
Repository owner locked as resolved and limited conversation to collaborators Sep 14, 2020
@agilgur5 agilgur5 added the scope: integration Related to an integration, not necessarily to core (but could influence core) label Sep 14, 2020
@agilgur5 agilgur5 added problem: stale Issue has not been responded to in some time and removed problem: stale Issue has not been responded to in some time labels Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: question This is a usage or similar question kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause scope: integration Related to an integration, not necessarily to core (but could influence core) scope: upstream Issue in upstream dependency solution: duplicate This issue or pull request already exists solution: workaround available There is a workaround available for this issue topic: TS Paths Aliases Related to using aliases with TypeScript paths
Projects
None yet
Development

No branches or pull requests

2 participants