Skip to content

Commit

Permalink
add npm depexts (#760)
Browse files Browse the repository at this point in the history
* add npm depexts

* add opam-check-npm-deps to deps

* remove peerDeps
  • Loading branch information
jchavarri authored Aug 24, 2023
1 parent eeb3628 commit e819f35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
reason-react-ppx
(reason
(>= 3.6.0))
(ocaml-lsp-server :with-test)))
(ocaml-lsp-server :with-test)
(opam-check-npm-deps
(= 1.0.0 :with-dev-setup))))

(package
(name reason-react-ppx)
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
"react-dom": "^16.8.1",
"react-test-renderer": "^16.13.1"
},
"peerDependencies": {
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"jest": {
"moduleDirectories": [
"node_modules"
Expand Down
5 changes: 5 additions & 0 deletions reason-react.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ depends: [
"reason-react-ppx"
"reason" {>= "3.6.0"}
"ocaml-lsp-server" {with-test}
"opam-check-npm-deps" {"1.0.0" = with-dev-setup}
"odoc" {with-doc}
]
build: [
Expand All @@ -40,3 +41,7 @@ build: [
]
]
dev-repo: "git+https://github.com/reasonml/reason-react.git"
depexts: [
["react"] {npm-version = "^16.0.0"}
["react-dom"] {npm-version = "^16.0.0"}
]
4 changes: 4 additions & 0 deletions reason-react.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
depexts: [
["react"] {npm-version = "^16.0.0"}
["react-dom"] {npm-version = "^16.0.0"}
]

0 comments on commit e819f35

Please sign in to comment.