refactor: tsconfig for all packages

This commit is contained in:
Aaryan Khandelwal
2025-10-08 15:24:07 +05:30
parent ba92d83d0c
commit fe5bf7b1c0
6 changed files with 3 additions and 23 deletions

View File

@@ -29,9 +29,7 @@ import type { TEditorCommands } from "@/types";
import { TextAlignmentSelector } from "./alignment-selector";
import { BubbleMenuLinkSelector } from "./link-selector";
type EditorBubbleMenuProps = Omit<BubbleMenuProps, "children" | "editor"> & {
editor: Editor;
};
type EditorBubbleMenuProps = Omit<BubbleMenuProps, "children">;
export type EditorStateType = {
code: boolean;

View File

@@ -6,7 +6,6 @@
"module": "ES2022",
"moduleResolution": "Bundler",
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"sourceMap": true,
"baseUrl": ".",

View File

@@ -1,13 +0,0 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm", "cjs"],
dts: true,
clean: true,
minify: true,
splitting: true,
treeshake: true,
external: ["react"],
});

View File

@@ -6,9 +6,6 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
],
"exports": {
".": {
"import": "./dist/index.mjs",

View File

@@ -6,7 +6,7 @@
"esModuleInterop": true,
"incremental": false,
"isolatedModules": true,
"lib": ["es2022", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "NodeNext",

View File

@@ -3,7 +3,6 @@
"include": ["src"],
"exclude": ["dist", "build", "node_modules"],
"compilerOptions": {
"noEmit": true,
"esModuleInterop": true
"noEmit": true
}
}