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
Allow for building individual packages #436
Comments
Could you tell me a little bit more about how it behaves right now for you? I've taken a quick look and it seems that if you invoke preconstruct from non-root directory then it will "focus" on that directory but won't be able to resolve the root options, Babel config, and stuff like that. This is because there is no directory lookup to search for the "monorepo root" and the cwd is just treated as the root in such a scenario. Would that somewhat match what you have experienced? |
Hi, Sorry for reviving an old open issue. |
I'm afraid that without having a repro case for this it might be super hard to fix this. It would even be good enough - to start the investigation - if a sample repo could be provided with a script that would just loop until it fails to build the thing correctly. The point is to prove that it can fail and to have some way of reproducing it - even if it's not as simple as calling |
@Andarist this is exactly what I ran into in trying to accomplish this with Preconstruct's current
|
@Andarist would y'all be open to a pull request for this? I'd be happy to give it a go if so. |
@jrolfs I think so. I'm not overly familiar with this codebase but I don't see any particular major blockers for this feature. Maybe there is some nuance in the |
For instance,
preconstruct build <package-name>
.My use case is that with turborepo, you can cache the result of individual package builds. This means you can rebuild only what changed. With preconstruct, I currently need to rebuild everything all at once, which is inefficient.
The text was updated successfully, but these errors were encountered: