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

Option to use outDir instead of baseUrl as prefix #2

Open
Ansraer opened this issue Aug 20, 2018 · 4 comments
Open

Option to use outDir instead of baseUrl as prefix #2

Ansraer opened this issue Aug 20, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@Ansraer
Copy link

Ansraer commented Aug 20, 2018

In my tsconifg file I have the following lines:

        "outDir": "dist",
        "baseUrl": "src",

This allows me to keep all my ts code in one folder (src) and the entire project after compiling in another (dist). Which is great to avoid uploading useless files to git. However, I have now run into the problem that your TypescriptGenerator.ts always uses the baseUrl as a prefix (which messes up all my paths).
The easiest fix for this would be a way to allow users to use the outDir as a prefix instead. A simple boolean during the setup would be enough.

@DanyelMorales
Copy link
Contributor

DanyelMorales commented Aug 20, 2018 via email

@DanyelMorales DanyelMorales added enhancement New feature or request help wanted Extra attention is needed labels Aug 27, 2018
@DanyelMorales DanyelMorales self-assigned this Aug 27, 2018
@DanyelMorales DanyelMorales added this to the v1 milestone Aug 27, 2018
@Paradoxia
Copy link

In my tsconifg file I have the following lines:

        "outDir": "dist",
        "baseUrl": "src",

This allows me to keep all my ts code in one folder (src) and the entire project after compiling in another (dist). Which is great to avoid uploading useless files to git. However, I have now run into the problem that your TypescriptGenerator.ts always uses the baseUrl as a prefix (which messes up all my paths).
The easiest fix for this would be a way to allow users to use the outDir as a prefix instead. A simple boolean during the setup would be enough.

I got the same issue. My typescript is compiled to js and deployed to "outDir".

@Paradoxia
Copy link

In my tsconifg file I have the following lines:

        "outDir": "dist",
        "baseUrl": "src",

This allows me to keep all my ts code in one folder (src) and the entire project after compiling in another (dist). Which is great to avoid uploading useless files to git. However, I have now run into the problem that your TypescriptGenerator.ts always uses the baseUrl as a prefix (which messes up all my paths).
The easiest fix for this would be a way to allow users to use the outDir as a prefix instead. A simple boolean during the setup would be enough.

I made a temporary solution which you can find here

@DanyelMorales
Copy link
Contributor

@Paradoxia Sorry for given a response too late. Let me see your solution and create a patch for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants