-
Notifications
You must be signed in to change notification settings - Fork 508
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
tsconfig exclude
from an extends
not working
#663
Comments
exlude
not adhered too in subdirectories of a monorepoexclude
not adhered to in subdirectories of a monorepo
This is a follow-up from #646 (comment)
There's nothing special, the source code just adds some defaults and passes to rpts2: tsdx/src/createRollupConfig.ts Lines 146 to 177 in f58de19
I'd need to check your repo and see how |
Yeah. I was surprised as well. Sure enough running TSC won’t compile storybook files, but TSDX build will. |
exclude
not adhered to in subdirectories of a monorepoexclude
from an extends
not working
Current Behavior
When using a monorepo, I'd like to minify the amount
tsconfig
I am defining per package. To that end, the value of theexclude
property at the root config is being ignored when building TSDX packages in their own subdirectories.You can test for yourself thru this example project by doing:
and noticing that storybook files are compiled, despite being ignored from the root config extended by the package's config.
It seems like running
tsc
with my tsconfigs works as expected, but the build step continues to compile things I am excluding.Expected behavior
In the example repo, stories are not compiled.
Suggested solution(s)
Unsure... I'd love to resolve this myself. @agilgur5 has DMs disabled on Twitter, but I was curious if anybody would be down to pair for a short chat about how files/folders are chosen for the build step in
tsdx
.Additional context
Similar issue resolved: #61
Your environment
The text was updated successfully, but these errors were encountered: