diff --git a/ppx/README.md b/ppx/README.md index 9f5c6db..045df9b 100644 --- a/ppx/README.md +++ b/ppx/README.md @@ -12,15 +12,15 @@ configuration to your project: ```dune (executable ... - (preprocess (pps melange-json.native))) + (preprocess (pps melange-json.ppx-native))) (library (modes melange) - (preprocess (pps melange-json.js))) + (preprocess (pps melange-json.ppx))) ``` -Note that you need to use the `melange-json.native` preprocessor for OCaml -native and the `melange-json.js` preprocessor for Melange. +Note that you need to use the `melange-json.ppx-native` preprocessor for OCaml +native and the `melange-json.ppx` preprocessor for Melange. ## Usage diff --git a/ppx/browser/dune b/ppx/browser/dune index e9661bd..4e428d4 100644 --- a/ppx/browser/dune +++ b/ppx/browser/dune @@ -1,5 +1,5 @@ (library - (public_name melange-json.js) + (public_name melange-json.ppx) (name ppx_deriving_json_js) (modules :standard @@ -7,13 +7,13 @@ ppx_deriving_json_runtime ppx_deriving_json_js_test) (libraries ppxlib) - (ppx_runtime_libraries melange-json.js_runtime) + (ppx_runtime_libraries melange-json.ppx-runtime) (preprocess (pps ppxlib.metaquot)) (kind ppx_deriver)) (library - (public_name melange-json.js_runtime) + (public_name melange-json.ppx-runtime) (name ppx_deriving_json_js_runtime) (modules ppx_deriving_json_runtime) (wrapped false) @@ -22,7 +22,7 @@ (executable (name ppx_deriving_json_js_test) (modules ppx_deriving_json_js_test) - (libraries melange-json.js ppxlib)) + (libraries melange-json.ppx ppxlib)) (rule (target ppx_deriving_json_js.mli) diff --git a/ppx/native/dune b/ppx/native/dune index 184b444..fcd5039 100644 --- a/ppx/native/dune +++ b/ppx/native/dune @@ -1,5 +1,5 @@ (library - (public_name melange-json.native) + (public_name melange-json.ppx-native) (name ppx_deriving_json_native) (modules :standard @@ -7,13 +7,13 @@ ppx_deriving_json_runtime ppx_deriving_json_native_test) (libraries ppxlib) - (ppx_runtime_libraries melange-json.native_runtime) + (ppx_runtime_libraries melange-json.ppx-native-runtime) (preprocess (pps ppxlib.metaquot)) (kind ppx_deriver)) (library - (public_name melange-json.native_runtime) + (public_name melange-json.ppx-native-runtime) (name ppx_deriving_json_native_runtime) (wrapped false) (modules ppx_deriving_json_runtime) @@ -22,7 +22,7 @@ (executable (name ppx_deriving_json_native_test) (modules ppx_deriving_json_native_test) - (libraries melange-json.native ppxlib)) + (libraries melange-json.ppx-native ppxlib)) (rule (target ppx_deriving_json_native.mli) diff --git a/ppx/test/ppx_deriving_json_js.e2e.t b/ppx/test/ppx_deriving_json_js.e2e.t index 03c7561..2eecde5 100644 --- a/ppx/test/ppx_deriving_json_js.e2e.t +++ b/ppx/test/ppx_deriving_json_js.e2e.t @@ -8,7 +8,7 @@ > (modes melange) > (modules example main) > (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives) - > (preprocess (pps melange.ppx melange-json.js))) + > (preprocess (pps melange.ppx melange-json.ppx))) > (melange.emit > (alias js) > (target output) diff --git a/ppx/test/ppx_deriving_json_native.e2e.t b/ppx/test/ppx_deriving_json_native.e2e.t index 29e1d44..074c5f1 100644 --- a/ppx/test/ppx_deriving_json_native.e2e.t +++ b/ppx/test/ppx_deriving_json_native.e2e.t @@ -5,7 +5,7 @@ > (name main) > (libraries yojson) > (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives) - > (preprocess (pps melange-json.native)))' > dune + > (preprocess (pps melange-json.ppx-native)))' > dune $ echo ' > open Example