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",
"version": "0.0.1",
"description": "Rich Text Editor that powers Plane",
"main": "dist/index.js",
"main": "dist/index",
"types": "dist/index",
"source": "src/index.ts",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"module": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/module.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/main.js"
}
}
},
"scripts": {
@ -81,12 +84,5 @@
"markdown",
"nextjs",
"react"
],
"typesVersions": {
"*": {
"*": [
"src/*"
]
}
}
]
}

View File

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

View File

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