@@ -10,21 +10,22 @@ let runtime_module_path =
1010 |> List. rev
1111 with
1212 (* 1. Packages installed via pnpm
13- - bin: node_modules/.pnpm/@[email protected] /node_modules/@rescript/darwin-arm64/bin 14- - stdlib : node_modules/@rescript/runtime/lib/ocaml (symlink)
13+ - bin: node_modules/.pnpm/@[email protected] /node_modules/@rescript/darwin-arm64/bin 14+ - runtime : node_modules/.pnpm/node_modules/ @rescript/runtime (symlink)
1515 *)
1616 | " bin" :: _platform :: " @rescript" :: " node_modules" :: _package :: " .pnpm"
1717 :: " node_modules" :: rest ->
18- build_path rest [" node_modules" ; " @rescript" ; " runtime" ]
18+ build_path rest
19+ [" node_modules" ; " .pnpm" ; " node_modules" ; " @rescript" ; " runtime" ]
1920 (* 2. Packages installed via npm
20- - bin: node_modules/@rescript/{platform}/bin
21- - stdlib : node_modules/@rescript/runtime/lib/ocaml
21+ - bin: node_modules/@rescript/{platform}/bin
22+ - runtime : node_modules/@rescript/runtime
2223 *)
2324 | "bin" :: _platform :: "@rescript" :: "node_modules" :: rest ->
2425 build_path rest [" node_modules" ; " @rescript" ; " runtime" ]
2526 (* 3. Several other cases that can occur in local development, e.g.
26- - bin: <repo>/packages/@rescript/{platform}/bin, <repo>/_build/install/default/bin
27- - stdlib : <repo>/packages/@rescript/runtime/lib/ocaml
27+ - bin: <repo>/packages/@rescript/{platform}/bin, <repo>/_build/install/default/bin
28+ - runtime : <repo>/packages/@rescript/runtime
2829 *)
2930 | _ :: _ :: _ :: _ :: rest ->
3031 build_path rest [" packages" ; " @rescript" ; " runtime" ]
0 commit comments