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

fix: load non relative tsconfig #270

Closed
wants to merge 3 commits into from

Conversation

FRSgit
Copy link
Contributor

@FRSgit FRSgit commented May 17, 2024

fixes #267 (at least in some cases)

Currently, the loadTSCompilerOptions method does not handle correctly tsconfig.json "extends" field when it contains reference to an npm package.

Examples of such "extends":
"extends": "@something/my-config/tsconfig.json"
"extends": "@something/my-config/base.json"
"extends": "@something/my-config"

With this change the script handles those cases correctly and (at least for me) fixes issue #267

@FRSgit
Copy link
Contributor Author

FRSgit commented May 17, 2024

Another solution would be to use tsconfck for tsconfig resolution - it resolves extends automatically and without issues.

@danielroe
Copy link
Member

Let's use tsconfck 🙏

@JiuRanYa
Copy link

JiuRanYa commented May 22, 2024

Is there anyone following up this?

Same issue here #267

@FRSgit
Copy link
Contributor Author

FRSgit commented May 22, 2024

I'll update the PR with new implementation today

@danielroe
Copy link
Member

Oops, just implemented. Apologies!

@FRSgit
Copy link
Contributor Author

FRSgit commented May 22, 2024

Not a problem, it wasn't that easy for me to squeeze that one today - I guess I'll do the maintenance somewhere else 😄
Thanks!

@FRSgit FRSgit deleted the fix/load-non-relative-tsconfig branch May 22, 2024 10:16
@JiuRanYa
Copy link

Oops, just implemented. Apologies!

Not matter, Thanks for your great work!

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.

stuck at Cleaning dist directory: ./dist
3 participants