You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change in dependant does not trigger target with --affected run in the main app.
I have one app and one library in JS moon workspace. Both have test task and app depends on package (both explicitly <moon.yml> and implicitly <through package.json and workspace:^ dependency>).
Set up 1 application and 1 library, both with test task.
Import library as dependency to the application AKA make application depends on library
Introduce some changes to the library
Run moon :test --affected
Only library's tests are run, even though this change affects the app
Expected behavior
Once shared library has any change also apps/other packages using this one should be triggered in affected way.
Usually introducing changes to shared code requires rebuild of the main app
Yeah right now --affected is purely a match against touched files and doesn't take project relations into account. We can look into that for the next release.
Describe the bug
Change in dependant does not trigger target with
--affected
run in the main app.I have one app and one library in JS moon workspace. Both have
test
task and app depends on package (both explicitly <moon.yml> and implicitly <through package.json andworkspace:^
dependency>).apps/webApp/moon.yml
packlages/simple/moon.yml
Steps to reproduce
test
task.moon :test --affected
Expected behavior
Once shared library has any change also apps/other packages using this one should be triggered in
affected
way.Usually introducing changes to shared code requires rebuild of the main app
Screenshots
Environment
Additional context
The text was updated successfully, but these errors were encountered: