Skip to content

Commit

Permalink
fix: watch the project file for changes
Browse files Browse the repository at this point in the history
The project file does not necessarily have to be the project source tree.
  • Loading branch information
dairiki committed May 6, 2023
1 parent ec4c71d commit e58a2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lektor/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def watch_project(
deemed not to be Lektor source files.
"""
watch_paths = [env.root_path, *env.theme_paths]
watch_paths = [env.root_path, env.project.project_file, *env.theme_paths]
ignore_paths = [os.path.abspath(p) for p in (get_cache_dir(), output_path)]
watch_filter = WatchFilter(env, ignore_paths=ignore_paths)

Expand Down

0 comments on commit e58a2c3

Please sign in to comment.