From ceeb138a65d1bbb50b6234e3b6d76982d6384139 Mon Sep 17 00:00:00 2001 From: cycleccc <2991205548@qq.com> Date: Wed, 16 Oct 2024 13:23:39 +0800 Subject: [PATCH] fix: fix path resolve warning (#258) --- .changeset/brown-pots-remain.md | 14 ++++++++++++++ packages/basic-modules/package.json | 4 +++- packages/code-highlight/package.json | 4 +++- packages/core/package.json | 4 +++- packages/editor/package.json | 4 +++- packages/list-module/package.json | 4 +++- packages/table-module/package.json | 4 +++- packages/upload-image-module/package.json | 4 +++- packages/video-module/package.json | 4 +++- packages/yjs-for-react/package.json | 4 +++- packages/yjs/package.json | 4 +++- tsconfig.json | 3 ++- 12 files changed, 46 insertions(+), 11 deletions(-) create mode 100644 .changeset/brown-pots-remain.md diff --git a/.changeset/brown-pots-remain.md b/.changeset/brown-pots-remain.md new file mode 100644 index 00000000..8713f81c --- /dev/null +++ b/.changeset/brown-pots-remain.md @@ -0,0 +1,14 @@ +--- +'@wangeditor-next/upload-image-module': patch +'@wangeditor-next/code-highlight': patch +'@wangeditor-next/basic-modules': patch +'@wangeditor-next/yjs-for-react': patch +'@wangeditor-next/table-module': patch +'@wangeditor-next/video-module': patch +'@wangeditor-next/list-module': patch +'@wangeditor-next/editor': patch +'@wangeditor-next/core': patch +'@wangeditor-next/yjs': patch +--- + +fix path resolve warning diff --git a/packages/basic-modules/package.json b/packages/basic-modules/package.json index eafdbb81..48e3c247 100644 --- a/packages/basic-modules/package.json +++ b/packages/basic-modules/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/packages/basic-modules/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/code-highlight/package.json b/packages/code-highlight/package.json index 6182ef93..0d010ea0 100644 --- a/packages/code-highlight/package.json +++ b/packages/code-highlight/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/code-highlight/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/core/package.json b/packages/core/package.json index 63d86c83..28384141 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/core/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/editor/package.json b/packages/editor/package.json index 1c2f3f36..93400f08 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -19,9 +19,11 @@ "exports": { ".": { "types": "./dist/editor/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/list-module/package.json b/packages/list-module/package.json index 10ed6a9a..351737da 100644 --- a/packages/list-module/package.json +++ b/packages/list-module/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/list-module/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/table-module/package.json b/packages/table-module/package.json index ed9eef27..434c22ea 100644 --- a/packages/table-module/package.json +++ b/packages/table-module/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/table-module/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/upload-image-module/package.json b/packages/upload-image-module/package.json index ecc1636e..529e0204 100644 --- a/packages/upload-image-module/package.json +++ b/packages/upload-image-module/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/upload-image-module/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/video-module/package.json b/packages/video-module/package.json index adb6c585..cef4bead 100644 --- a/packages/video-module/package.json +++ b/packages/video-module/package.json @@ -12,9 +12,11 @@ "exports": { ".": { "types": "./dist/video-module/src/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/packages/yjs-for-react/package.json b/packages/yjs-for-react/package.json index 9f1cd3f0..b774517f 100644 --- a/packages/yjs-for-react/package.json +++ b/packages/yjs-for-react/package.json @@ -20,9 +20,11 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "files": [ "dist" diff --git a/packages/yjs/package.json b/packages/yjs/package.json index 256f2a52..dc6ff944 100644 --- a/packages/yjs/package.json +++ b/packages/yjs/package.json @@ -19,9 +19,11 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", "require": "./dist/index.js" - } + }, + "./dist/css/style.css": "./dist/css/style.css" }, "directories": { "lib": "dist", diff --git a/tsconfig.json b/tsconfig.json index d2042cac..c62886f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,8 @@ "baseUrl": ".", "paths": { "@wangeditor-next/*": [ - "packages/*/src" + "packages/*/src", + "packages/*/dist" ] }, },