Skip to content

Commit bd7e35d

Browse files
authored
feat(dart_frog_cli): report external path dependencies (#342)
1 parent de65c69 commit bd7e35d

File tree

4 files changed

+123
-3
lines changed

4 files changed

+123
-3
lines changed

packages/dart_frog_cli/lib/src/commands/build/templates/dart_frog_prod_server_bundle.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dart_frog_cli/lib/src/commands/dev/dev.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,14 @@ class DevCommand extends DartFrogCommand {
177177
progress.complete('Running on $localhost');
178178

179179
final entrypoint = path.join(cwd.path, 'main.dart');
180+
final pubspec = path.join(cwd.path, 'pubspec.yaml');
180181
final public = path.join(cwd.path, 'public');
181182
final routes = path.join(cwd.path, 'routes');
182183

183184
bool shouldReload(WatchEvent event) {
184185
logger.detail('[watcher] $event');
185186
return path.equals(entrypoint, event.path) ||
187+
path.equals(pubspec, event.path) ||
186188
path.isWithin(routes, event.path) ||
187189
path.isWithin(public, event.path);
188190
}

0 commit comments

Comments
 (0)