Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of all I'm glad to see a real life user of mdx!
I took the liberty to open a PR to slightly improve the mdx invocation in your dune file as it won't survive the next mdx release!
It was using the
--direction
option which is unnecessary given that option is used for ocaml blocks synchronized with external files and there weren't any such blocks in theREADME.md
.I ran into this when trying to release
mdx.1.5.0
in which we removed theinfer-timestamp
direction as it wasn't working properly. I updated the constraints on themdx
dependency so thatroutes.0.5.2
can still properly be installed and tested through opam. You can see the release PR over there if you want to know more: ocaml/opam-repository#15415We did that in a minor release because we believed it was unused outside of RealWorldOCaml but it turns out it was here! Sorry for the inconvenience!
I also added a dependency on the
routes
package so thatdune runtest
works from scratch and don't require a previousdune build
so hopefully you'll enjoy that small improvement.We're currently working on a future
2.0.0
release ofmdx
with proper integration to dune so that this kind of quirks don't show up again and you won't have to care too much about such CLI options.Let me know what you think!