fix: resolve timi-web from published package instead of local source
Release / release (pull_request) Successful in 33s
Release / release (pull_request) Successful in 33s
This commit is contained in:
+2
-2
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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";
|
||||
|
||||
+1
-4
@@ -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"
|
||||
]
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user