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

feat: add support for configDir #393

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ThibautMarechal
Copy link

Fixes #346

src/utils.ts Outdated
@@ -26,8 +26,8 @@ export function normalizePath(id: string): string {
return posix.normalize(slash(id))
}

export function resolve(...paths: string[]) {
return normalizePath(_resolve(...paths))
export function resolve(root: string, path: string) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I'm not sure if it's the right place, or if I should add one more helper function to do that.
But this implementation work for my use case where I use ${configDir} in include, exclude, basePath, outDir.

Let me know if you think I should do it differently

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qmhc, any suggestion?
I'm currently waiting this fix to remove a bunch of workaround on my side.
Open to any feedback :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the general utility methods should not be modified. There should be a dedicated step to handle this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Support ${configDir} template variable in tsconfig.json (added in typescript 5.5)
2 participants