Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying path to watchman executable #154

Open
felipecrs opened this issue Aug 27, 2023 · 1 comment
Open

Specifying path to watchman executable #154

felipecrs opened this issue Aug 27, 2023 · 1 comment

Comments

@felipecrs
Copy link

I will bundle watchman with my application, and I wonder how can I tell @parcel/watcher to use it from a given path.

@felipecrs
Copy link
Author

felipecrs commented Aug 27, 2023

For reference, my workaround is:

// Set PATH to include bundled watchman binaries
const watchmanBinDir = path.resolve(
  path.join(
    __dirname,
    "../binaries/win32/x64/watchman/bin"
  )
);

// ; on Windows, : on Unix
process.env.PATH = `${process.env.PATH};${watchmanBinDir}`;

felipecrs/clipboard-sync@8892824

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

No branches or pull requests

1 participant