From 95e5a306147ee7a0783455d200a799913a84ad4e Mon Sep 17 00:00:00 2001 From: Palanikannan1437 <73993394+Palanikannan1437@users.noreply.github.com> Date: Tue, 3 Oct 2023 09:32:16 +0530 Subject: [PATCH] removed absolute imports from rich-text-editor --- packages/editor/rich-text-editor/src/index.ts | 6 +++--- .../src/ui/menus/bubble-menu/link-selector.tsx | 2 +- packages/editor/rich-text-editor/tsconfig.json | 7 +------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/editor/rich-text-editor/src/index.ts b/packages/editor/rich-text-editor/src/index.ts index dd8f35791..36d0a95f9 100644 --- a/packages/editor/rich-text-editor/src/index.ts +++ b/packages/editor/rich-text-editor/src/index.ts @@ -1,4 +1,4 @@ -import "@/styles/github-dark.css"; +import "./styles/github-dark.css"; -export { RichTextEditor, RichTextEditorWithRef } from "@/ui"; -export { RichReadOnlyEditor, RichReadOnlyEditorWithRef } from "@/ui/read-only"; +export { RichTextEditor, RichTextEditorWithRef } from "./ui"; +export { RichReadOnlyEditor, RichReadOnlyEditorWithRef } from "./ui/read-only"; diff --git a/packages/editor/rich-text-editor/src/ui/menus/bubble-menu/link-selector.tsx b/packages/editor/rich-text-editor/src/ui/menus/bubble-menu/link-selector.tsx index cf347cf3b..ba53608c5 100644 --- a/packages/editor/rich-text-editor/src/ui/menus/bubble-menu/link-selector.tsx +++ b/packages/editor/rich-text-editor/src/ui/menus/bubble-menu/link-selector.tsx @@ -1,7 +1,7 @@ import { Editor } from "@tiptap/core"; import { Check, Trash } from "lucide-react"; import { Dispatch, FC, SetStateAction, useCallback, useEffect, useRef } from "react"; -import isValidHttpUrl from "@/ui/menus/bubble-menu/utils"; +import isValidHttpUrl from "./utils"; import { cn } from "@plane/editor-core"; interface LinkSelectorProps { diff --git a/packages/editor/rich-text-editor/tsconfig.json b/packages/editor/rich-text-editor/tsconfig.json index f83a493ea..c6fe47fe3 100644 --- a/packages/editor/rich-text-editor/tsconfig.json +++ b/packages/editor/rich-text-editor/tsconfig.json @@ -10,11 +10,6 @@ "node_modules" ], "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": [ - "src/*" - ] - } + "baseUrl": "." } }