The issue is similar to #638.
Affected setup
- Native Deno project, where packages are only installed into Deno's global cache and no
node_modules/ compatibility directory is exposed.
- Yarn-berry project in PnP mode (pnpm also supports this setup) where all dependencies are installed into Yarn's global cache as ZIP archives and they are resolved using a JS loader file at project root.
- The user might want to use
rescript/rewatch binary packaged by a downstream distribution (.e.g Nixpkgs)
Setting a custom value for settings.platformPath / settings.binaryPath is undesirable since the parent directory of the binary might not be obvious (in case 2 and 3 above).
Suggestion
We could have special logic to deal with Deno and PnP cases, and optionally search the user's PATH for the binary if they want to.
The issue is similar to #638.
Affected setup
node_modules/compatibility directory is exposed.rescript/rewatchbinary packaged by a downstream distribution (.e.g Nixpkgs)Setting a custom value for
settings.platformPath/settings.binaryPathis undesirable since the parent directory of the binary might not be obvious (in case 2 and 3 above).Suggestion
We could have special logic to deal with Deno and PnP cases, and optionally search the user's PATH for the binary if they want to.