diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16e529d..3e6d78a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: ocaml-compiler: ${{ matrix.ocaml-compiler }} - name: Install all deps - run: make install + run: make install-ci - name: Build the project run: make build diff --git a/Makefile b/Makefile index e1f6c34..0bfa606 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,13 @@ install: ## Install development dependencies opam install -y . --deps-only --with-test ## install the Melange and OCaml dependencies opam exec opam-check-npm-deps ## check that the versions of the JavaScript packages installed match the requirements defined by Melange libraries +.PHONY: install-ci +install-ci: ## Install development dependencies + yarn install ## install JavaScript packages that the project might depend on, like `react` or `react-dom` + opam update ## make sure that opam has the latest information about published libraries in the opam repository https://opam.ocaml.org/packages/ + opam install -y . --deps-only --with-test ## install the Melange and OCaml dependencies + opam exec opam-check-npm-deps ## check that the versions of the JavaScript packages installed match the requirements defined by Melange libraries + .PHONY: build build: ## Build the project $(DUNE) build @main diff --git a/src/dune b/src/dune index 273400d..5cbf82a 100644 --- a/src/dune +++ b/src/dune @@ -1,5 +1,6 @@ (library (name bsDecode) + (public_name bs-decode) (wrapped false) (libraries bastet relude) (modes melange)