-
Notifications
You must be signed in to change notification settings - Fork 504
tsconfig exclude from an extends not working #663
Description
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 the exclude 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:
yarn install
yarn workspace @innocuous/components add @innocuous/hooks
yarn workspace @innocuous/hooks run build
yarn workspace @innocuous/components run buildand 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
| Software | Version(s) |
|---|---|
| TSDX | latest |
| TypeScript | latest |
| Browser | Chrome latest |
| npm/Yarn | yarn latest |
| Node | node latest |
| Operating System | MacOS latest |