-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[bug] Typescript Project References are created for unnecessary implicit dependencies #1561
Comments
This still an issue in 1.27.1? |
The issue is fixed! Thanks a lot! But there's a side effect that will probably become a feature request. Now when I remove the dependency in tsconfig.json it doesn't get recreated, which is good. But it's very easy to lose track of all the places you need to remove. And the So maybe there could be a flag like |
That makes sense, but the issue is that moon doesn't know what the previous state was. If there was 5 projects before, but only 4 now, moon doesn't know which 1 was removed. For |
That's why the opt-in flag. If you use this flag you assume the content will be fully overwritten. The normal behaviour would keep the same. This would save lots of time to keep up with changes in a growing monorepo. |
Fixed. Follow up in #1579 |
Describe the bug
I have the following structure:
In
tool-cd
(a commander CLI) that's themoon.yml
:In
library-b
that's themoon.yml
:In
/.moon/tasks/typescript.yml
:My toolchain file:
Because of those dependencies, the library-b gets an implicit dependency of scope
build
on tool-cd and thesyncProjectReferences
config add references intsconfig.json
. But this is actually not needed since I don't need the CLI to build the library withtsc
, which increases time spent in runningmoon ci
. This also generates issues with circular dependencies if tool-cd depends on the library to run and the library needs to run a command in order to initialize unit tests.The only way to solve this is by splitting the tasks in moon.yml for library-b:
The text was updated successfully, but these errors were encountered: