@karimsa/mdxserve 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +19 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2836,17 +2836,29 @@ function sharedViteConfig(options) {
|
|
|
2836
2836
|
const dateFnsEntry = path11.dirname(resolveFromPkg("date-fns/package.json"));
|
|
2837
2837
|
const jotaiEntry = path11.dirname(resolveFromPkg("jotai/package.json"));
|
|
2838
2838
|
const tiptapPackages = [
|
|
2839
|
+
"@tiptap/core",
|
|
2839
2840
|
"@tiptap/react",
|
|
2840
2841
|
"@tiptap/starter-kit",
|
|
2841
2842
|
"@tiptap/markdown",
|
|
2842
2843
|
"@tiptap/extension-list",
|
|
2843
2844
|
"@tiptap/extension-table",
|
|
2844
|
-
"@tiptap/extension-image"
|
|
2845
|
+
"@tiptap/extension-image",
|
|
2846
|
+
"@tiptap/suggestion"
|
|
2845
2847
|
];
|
|
2846
2848
|
const tiptapAliases = tiptapPackages.map((name) => ({
|
|
2847
2849
|
find: name,
|
|
2848
2850
|
replacement: packageDir(name)
|
|
2849
2851
|
}));
|
|
2852
|
+
const tiptapPmEntry = path11.resolve(resolveFromPkg("@tiptap/pm/state"), "../../..");
|
|
2853
|
+
const editorParserPackages = [
|
|
2854
|
+
"mdast-util-from-markdown",
|
|
2855
|
+
"mdast-util-mdx",
|
|
2856
|
+
"micromark-extension-mdxjs"
|
|
2857
|
+
];
|
|
2858
|
+
const editorParserAliases = editorParserPackages.map((name) => ({
|
|
2859
|
+
find: name,
|
|
2860
|
+
replacement: packageDir(name)
|
|
2861
|
+
}));
|
|
2850
2862
|
const reactQueryEntry = path11.dirname(resolveFromPkg("@tanstack/react-query/package.json"));
|
|
2851
2863
|
const trpcClientEntry = path11.dirname(resolveFromPkg("@trpc/client/package.json"));
|
|
2852
2864
|
const trpcTanstackReactQueryEntry = path11.dirname(
|
|
@@ -2880,6 +2892,8 @@ function sharedViteConfig(options) {
|
|
|
2880
2892
|
{ find: "bytes", replacement: resolveFromPkg("bytes") },
|
|
2881
2893
|
{ find: "jotai", replacement: jotaiEntry },
|
|
2882
2894
|
...tiptapAliases,
|
|
2895
|
+
{ find: "@tiptap/pm", replacement: tiptapPmEntry },
|
|
2896
|
+
...editorParserAliases,
|
|
2883
2897
|
{ find: "@tanstack/react-query", replacement: reactQueryEntry },
|
|
2884
2898
|
{ find: "@trpc/client", replacement: trpcClientEntry },
|
|
2885
2899
|
{ find: "@trpc/tanstack-react-query", replacement: trpcTanstackReactQueryEntry },
|
|
@@ -2940,6 +2954,10 @@ function sharedViteConfig(options) {
|
|
|
2940
2954
|
"jotai",
|
|
2941
2955
|
"jotai/utils",
|
|
2942
2956
|
...tiptapPackages,
|
|
2957
|
+
"@tiptap/pm/state",
|
|
2958
|
+
"@tiptap/pm/view",
|
|
2959
|
+
"@tiptap/pm/history",
|
|
2960
|
+
...editorParserPackages,
|
|
2943
2961
|
"@tanstack/react-query",
|
|
2944
2962
|
"@trpc/client",
|
|
2945
2963
|
"@trpc/tanstack-react-query",
|