File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,24 @@ let standard_library =
12
12
|> List. rev
13
13
with
14
14
(* 1. Packages installed via pnpm
15
- - bin: node_modules/.pnpm/@rescript+darwin-arm64@12.0.0-alpha.13 /node_modules/@rescript/darwin-arm64/bin
16
- - stdlib: node_modules/rescript/ lib/ocaml (symlink)
15
+ - bin: node_modules/.pnpm/@rescript+darwin-arm64@12.0.0-alpha.15 /node_modules/@rescript/darwin-arm64/bin
16
+ - stdlib: node_modules/.pnpm/ rescript@12.0.0-alpha.15/node_modules/rescript/ lib/ocaml
17
17
*)
18
- | " bin" :: _platform :: " @rescript" :: " node_modules" :: _package :: " .pnpm"
19
- :: " node_modules" :: rest ->
20
- build_path rest [" node_modules" ; " rescript" ; " lib" ; " ocaml" ]
18
+ | " bin" :: _platform :: " @rescript" :: " node_modules" :: binPackage :: " .pnpm"
19
+ :: " node_modules" :: rest -> (
20
+ match binPackage |> String. split_on_char '@' with
21
+ | [" " ; _packageName; version] ->
22
+ build_path rest
23
+ [
24
+ " node_modules" ;
25
+ " .pnpm" ;
26
+ " rescript@" ^ version;
27
+ " node_modules" ;
28
+ " rescript" ;
29
+ " lib" ;
30
+ " ocaml" ;
31
+ ]
32
+ | _ -> " " )
21
33
(* 2. Packages installed via npm
22
34
- bin: node_modules/@rescript/{platform}/bin
23
35
- stdlib: node_modules/rescript/lib/ocaml
You can’t perform that action at this time.
0 commit comments