-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(watch): correctly derive opts from watch mode args (#9761)
### Description I forgot to derive the `Opts` struct from the watch mode command. This PR does that and adds a test. ### Testing Instructions <!-- Give a quick description of steps to test your changes. -->
- Loading branch information
1 parent
a3c3cad
commit f577739
Showing
9 changed files
with
91 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...turborepo-lib/src/snapshots/turborepo_lib__opts__test__turbo_boundaries_--filter_foo.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/turborepo-lib/src/opts.rs | ||
expression: "json!({\n \"tasks\": opts.run_opts.tasks, \"filter_patterns\":\n opts.scope_opts.filter_patterns\n})" | ||
--- | ||
{ | ||
"tasks": [], | ||
"filter_patterns": [ | ||
"foo" | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
crates/turborepo-lib/src/snapshots/turborepo_lib__opts__test__turbo_ls_--filter_foo.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/turborepo-lib/src/opts.rs | ||
expression: "json!({\n \"tasks\": opts.run_opts.tasks, \"filter_patterns\":\n opts.scope_opts.filter_patterns\n})" | ||
--- | ||
{ | ||
"tasks": [], | ||
"filter_patterns": [ | ||
"foo" | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
crates/turborepo-lib/src/snapshots/turborepo_lib__opts__test__turbo_run_build.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/turborepo-lib/src/opts.rs | ||
expression: "json!({\n \"tasks\": opts.run_opts.tasks, \"filter_patterns\":\n opts.scope_opts.filter_patterns\n})" | ||
--- | ||
{ | ||
"tasks": [ | ||
"build" | ||
], | ||
"filter_patterns": [] | ||
} |
10 changes: 10 additions & 0 deletions
10
crates/turborepo-lib/src/snapshots/turborepo_lib__opts__test__turbo_watch_build.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/turborepo-lib/src/opts.rs | ||
expression: "json!({\n \"tasks\": opts.run_opts.tasks, \"filter_patterns\":\n opts.scope_opts.filter_patterns\n})" | ||
--- | ||
{ | ||
"tasks": [ | ||
"build" | ||
], | ||
"filter_patterns": [] | ||
} |
5 changes: 0 additions & 5 deletions
5
crates/turborepo-lib/src/task_graph/visitor/.command.rs.pending-snap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.