-
Notifications
You must be signed in to change notification settings - Fork 85
chore: remove spec files from runtime package #236
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
chore: remove spec files from runtime package #236
Conversation
|
Thanks for looking into this!
Oh wow, this is the case indeed. As soon as It would be great to figure out why exactly this is happening. 🤔 |
Anytime! Thank you all for the project ❤️. I was shocked as well!
If someone doesn't get to it, I'll try to dig in this evening (it's going to be non-obvious). My first instinct is to dig into |
Hey @PhearZero, thanks for investigating! This is indeed really odd. I wonder if this is a bug with the fact that the package is marked as composite but project reference default to the |
ffa2890
to
4378412
Compare
Thanks for the hint @Nemikolh ❤️, I was able to update the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Do you think you could update the reference everywhere? There's also the tsconfig.json
in the same folder as the file you modified and the one in astro
.
Those aren't used by the build script but they're used by VSCode and so I think it might also get those files to be transpiled? In any case, it's probably less error prone to always reference the correct config everywhere.
b54ea08
to
f1d18d8
Compare
@Nemikolh Makes total sense, I've updated the the references to point to the build configurations |
@PhearZero the CI is failing on lint step. Could you run Or check the |
f1d18d8
to
840c92f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! But Github won't allow me to merge this as the branch is not up-to-date with main
.
@PhearZero could you check this checkbox on from the right side of the page and I can proceed with this PR?
@AriPerkkio it looks like I was able to use the Update branch button to merge in |
Oh right, you forked TutorialKit repo to another Github organization instead of personal account. That makes sense. Thanks for the fix! |
Overview
Looking at the package, everything seemed like it should not include the spec files. After some investigation I found some strange behavior with the components package being included in the build 🤔.
Summary
Package does not respect the
tsconfig.build.json
when@tutorialkit/components-react
is included in the--filter
.Fix
The quick and dirty fix is to just exclude the
@tutorial/components-react
from the filter and have a two step build. It may need further triage with pnpm/typescript. Happy to dig deeper!@tutorialkit/runtime
release includes test files #158