Skip to content

Commit 277f7f6

Browse files
committed
manage dependency list in opam template
1 parent e902dda commit 277f7f6

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

rescript.opam

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@ authors: ["Hongbo Zhang <[email protected]>"]
66
license: "LGPL-3.0-or-later"
77
homepage: "https://github.com/rescript-lang/rescript-compiler"
88
bug-reports: "https://github.com/rescript-lang/rescript-compiler/issues"
9-
depends: [
10-
"ocaml" {>= "4.14"}
11-
"ocamlformat" {with-test & = "0.27.0"}
12-
"yojson" {with-test & = "2.2.2"}
13-
"ocaml-lsp-server" {with-dev-setup & = "1.22.0"}
14-
"cppo" {= "1.8.0"}
15-
"js_of_ocaml" {= "6.0.1"}
16-
"js_of_ocaml-ppx" {= "6.0.1"}
17-
"wasm_of_ocaml-compiler" {= "6.0.1"}
18-
"ounit2" {= "2.2.7"}
19-
"dune" {>= "3.17"}
20-
"odoc" {with-doc}
21-
]
229
build: [
2310
["dune" "subst"] {dev}
2411
[
@@ -33,3 +20,17 @@ build: [
3320
"@doc" {with-doc}
3421
]
3522
]
23+
depends: [
24+
"ocaml" {>= "4.14"}
25+
"ocamlformat" {with-test & = "0.27.0"}
26+
"yojson" {with-test & = "2.2.2"}
27+
"ocaml-lsp-server" {with-dev-setup & = "1.22.0"}
28+
"cppo" {= "1.8.0"}
29+
"ounit2" {= "2.2.7"}
30+
"dune" {>= "3.17"}
31+
"odoc" {with-doc}
32+
# Dependencies that could be broken on Windows runners
33+
"js_of_ocaml" {= "6.0.1" & os != "win32"}
34+
"js_of_ocaml-ppx" {= "6.0.1" & os != "win32"}
35+
"wasm_of_ocaml-compiler" {= "6.0.1" & os != "win32"}
36+
]

rescript.opam.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
depends: [
2+
"ocaml" {>= "4.14"}
3+
"ocamlformat" {with-test & = "0.27.0"}
4+
"yojson" {with-test & = "2.2.2"}
5+
"ocaml-lsp-server" {with-dev-setup & = "1.22.0"}
6+
"cppo" {= "1.8.0"}
7+
"ounit2" {= "2.2.7"}
8+
"dune" {>= "3.17"}
9+
"odoc" {with-doc}
10+
# Dependencies that could be broken on Windows runners
11+
"js_of_ocaml" {= "6.0.1" & os != "win32"}
12+
"js_of_ocaml-ppx" {= "6.0.1" & os != "win32"}
13+
"wasm_of_ocaml-compiler" {= "6.0.1" & os != "win32"}
14+
]

0 commit comments

Comments
 (0)