Skip to content

Commit

Permalink
Update .opam file to use with-dev-setup instead of with-test (#38)
Browse files Browse the repository at this point in the history
* Update .opam file to use with-dev-setup instead of with-test

* Upgrade ocaml/setup-ocaml from v2 to v3
  • Loading branch information
feihong authored Oct 29, 2024
1 parent 9d3a47b commit a2b9b08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-sample-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: current

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

Expand Down
6 changes: 3 additions & 3 deletions melange-opam-template.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ depends: [
"melange" {>= "2.0.0"}
"reason-react" {>= "0.13.0"}
"reason-react-ppx"
"opam-check-npm-deps" {with-test} # todo: use with-dev-setup once opam 2.2 is out
"ocaml-lsp-server" {with-test} # todo: use with-dev-setup once opam 2.2 is out
"dot-merlin-reader" {with-test} # todo: use with-dev-setup once opam 2.2 is out
"opam-check-npm-deps" {with-dev-setup}
"ocaml-lsp-server" {with-dev-setup}
"dot-merlin-reader" {with-dev-setup}
"odoc" {with-doc}
]
dev-repo: "git+https://github.com/your/project.git"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "melange-opam-template",
"scripts": {
"preinstall-opam": "opam update",
"install-opam": "opam install -y . --deps-only --with-test",
"install-opam": "opam install -y . --deps-only --with-dev-setup",
"check-npm-deps": "opam exec opam-check-npm-deps",
"init": "opam switch create . 5.2.0 -y --deps-only && npm run install-opam-npm",
"install-opam-npm": "npm install && npm run install-opam && npm run check-npm-deps",
Expand Down

0 comments on commit a2b9b08

Please sign in to comment.