Skip to content

Conversation

@ovikk13
Copy link

@ovikk13 ovikk13 commented Jul 22, 2025

Since the full path of subdirectories are passed to the watch function, the path.join with process.cwd() will result in the wrong path to files in the subdirectory.

Steps to reproduce

  1. Create a directory to watch test
  2. Create a subdirectory test/sub with a file hello.txt
  3. Watch the directory watch({ dir: "test" })

Since the full path of subdirectories are passed to the watch function,
the path.join with process.cwd() will result in the wrong path to files
in the subdirectory.
cirrahn added a commit to cirrahn/foundry-weather-color-settings that referenced this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant