diff --git a/package.json b/package.json index 91d0a59..21de3bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "timi-tdesign-mobile", "main": "./dist/timi-tdesign-mobile.umd.js", - "types": "./dist/timi-tdesign-mobile/src/index.d.ts", + "types": "./dist/index.d.ts", "module": "./dist/timi-tdesign-mobile.mjs", "style": "./dist/timi-tdesign-mobile.css", "private": false, @@ -24,7 +24,7 @@ ], "exports": { ".": { - "types": "./dist/timi-tdesign-mobile/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/timi-tdesign-mobile.mjs", "require": "./dist/timi-tdesign-mobile.umd.js" }, diff --git a/src/components/attachment-selector/index.vue b/src/components/attachment-selector/index.vue index ad51297..778e31c 100644 --- a/src/components/attachment-selector/index.vue +++ b/src/components/attachment-selector/index.vue @@ -63,7 +63,7 @@ import type { AttachmentSelectorViewerItem } from "./types"; import { getMediaKind, getMediaPreviewURL } from "./utils"; -import { CenterTips } from "../../../../timi-web"; +import { CenterTips } from "timi-web"; defineOptions({ name: "AttachmentSelector", diff --git a/src/index.ts b/src/index.ts index e665e76..c1d64a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,6 @@ import "./assets/style/entrance-transition.less"; import "./assets/style/page-layout.less"; import "./components/tiptap-content.less"; import "timi-web/style.css"; -import "../../timi-web/src/components/prism-code-block.less"; export * from "./components"; export * from "./directives"; diff --git a/tsconfig.json b/tsconfig.json index c1a2381..a7f20f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "Bundler", "useDefineForClassFields": true, "jsx": "preserve", "strict": true, @@ -17,9 +17,6 @@ "DOM.Iterable" ], "paths": { - "timi-web/editor": [ - "../timi-web/src/editor/index.ts" - ], "timi-tdesign-mobile": [ "./src/index.ts" ] diff --git a/vite.config.ts b/vite.config.ts index 7f09cf9..2217e15 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,10 +7,6 @@ import { TDesignResolver } from "unplugin-vue-components/resolvers"; import dts from "vite-plugin-dts"; const alias: Alias[] = [ - { - find: /^timi-web\/editor$/, - replacement: resolve(__dirname, "../timi-web/src/editor/index.ts") - }, { find: /^timi-tdesign-mobile(\/(es|lib))?$/, replacement: resolve(__dirname, "./src/index.ts")