Skip to content

Commit 9c49689

Browse files
committed
manage dependency list in opam template
1 parent e902dda commit 9c49689

File tree

3 files changed

+29
-40
lines changed

3 files changed

+29
-40
lines changed

dune-project

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,7 @@
1616

1717
(package
1818
(name rescript)
19-
(synopsis "ReScript compiler")
20-
(depends
21-
(ocaml
22-
(>= 4.14))
23-
(ocamlformat
24-
(and
25-
:with-test
26-
(= 0.27.0)))
27-
(yojson
28-
(and
29-
:with-test
30-
(= 2.2.2)))
31-
(ocaml-lsp-server
32-
(and
33-
:with-dev-setup
34-
(= 1.22.0)))
35-
(cppo
36-
(= 1.8.0))
37-
(js_of_ocaml
38-
(= 6.0.1))
39-
(js_of_ocaml-ppx
40-
(= 6.0.1))
41-
(wasm_of_ocaml-compiler
42-
(= 6.0.1))
43-
(ounit2
44-
(= 2.2.7))
45-
dune))
19+
(synopsis "ReScript compiler"))
4620

4721
(package
4822
(name analysis)

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)