finally fixed import errors

This commit is contained in:
Palanikannan1437 2023-09-20 19:03:06 +05:30
parent 28697e3c0e
commit 8e71ce0c50
3 changed files with 24 additions and 20 deletions

View File

@ -2,19 +2,22 @@
"name": "@plane/editor", "name": "@plane/editor",
"version": "0.0.1", "version": "0.0.1",
"description": "Rich Text Editor that powers Plane", "description": "Rich Text Editor that powers Plane",
"main": "dist/index.js", "main": "dist/index",
"types": "dist/index",
"source": "src/index.ts", "source": "src/index.ts",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [ "files": [
"dist" "dist"
], ],
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.mts", "import": {
"import": "./dist/index.mjs", "types": "./dist/index.d.mts",
"module": "./dist/index.mjs", "default": "./dist/module.mjs"
"require": "./dist/index.js" },
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/main.js"
}
} }
}, },
"scripts": { "scripts": {
@ -81,12 +84,5 @@
"markdown", "markdown",
"nextjs", "nextjs",
"react" "react"
], ]
"typesVersions": {
"*": {
"*": [
"src/*"
]
}
}
} }

View File

@ -1,12 +1,20 @@
{ {
"extends": "tsconfig/react.json", "extends": "tsconfig/react.json",
"include": ["."], "include": [
"exclude": ["dist", "build", "node_modules"], "src/**/*",
"index.d.ts"
],
"exclude": [
"dist",
"build",
"node_modules"
],
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["src/*"] "@/*": [
"src/*"
]
} }
} }
} }

View File

@ -9,7 +9,7 @@ import { useDebouncedCallback } from "use-debounce";
import { TextArea } from "components/ui"; import { TextArea } from "components/ui";
// types // types
import { IIssue } from "types"; import { IIssue } from "types";
import { TiptapEditor } from "@plane/editor" import { TiptapEditor } from "@plane/editor";
import fileService from "services/file.service"; import fileService from "services/file.service";
export interface IssueDescriptionFormValues { export interface IssueDescriptionFormValues {