Skip to content

Commit b723841

Browse files
authored
fix: use opam-check-npm-deps compatible with OPAM 2.5 (#74)
1 parent a0766f3 commit b723841

File tree

7 files changed

+324
-9
lines changed

7 files changed

+324
-9
lines changed

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
break-infix=fit-or-vertical
22
margin=74
33
parens-tuple=multi-line-only
4-
version=0.27.0
4+
version=0.28.1

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ init: create-switch install ## Configure everything to develop this repository i
2222
install: ## Install development dependencies
2323
yarn
2424
opam update
25-
opam install -y . --deps-only --with-test
26-
opam-check-npm-deps
25+
opam install -y . --deps-only --with-test --with-dev-setup
26+
opam exec -- opam-check-npm-deps
2727

2828
.PHONY: build
2929
build: ## Build the project

melange-json.opam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ build: [
3838
]
3939
]
4040
dev-repo: "git+https://github.com/melange-community/melange-json.git"
41+
pin-depends: [
42+
[ "opam-check-npm-deps.dev" "git+https://github.com/ahrefs/opam-check-npm-deps.git#12e63761842c71dc3a688257f7827580ebe2b7f1"]
43+
]
44+

melange-json.opam.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pin-depends: [
2+
[ "opam-check-npm-deps.dev" "git+https://github.com/ahrefs/opam-check-npm-deps.git#12e63761842c71dc3a688257f7827580ebe2b7f1"]
3+
]
4+

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"devDependencies": {
3-
"jest": "^26.5.2"
3+
"jest": "^26.5.2",
4+
"@testing-library/jest-dom": "^5.10.0"
45
}
56
}

src/native/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
(library
22
(name melange_json)
33
(public_name melange-json-native)
4-
(libraries (re_export yojson)))
4+
(libraries
5+
(re_export yojson)))
56

67
(copy_files
78
(files ../errors.ml))

0 commit comments

Comments
 (0)