Skip to content

Better way to resolve binary path when node_modules/ doesn't exist #1170

Description

@folliehiyuki

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions