Skip to content

Commit dc030c8

Browse files
authored
Rename output files from rich-text-editor to index (#7940)
#### What type of PR is this? /area ui /kind cleanup /milestone 2.22.x #### What this PR does / why we need it: Rename output files from rich-text-editor to index #### Does this PR introduce a user-facing change? ```release-note None ```
1 parent b434574 commit dc030c8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ui/packages/editor/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"exports": {
1818
".": {
1919
"types": "./dist/index.d.ts",
20-
"import": "./dist/rich-text-editor.es.js"
20+
"import": "./dist/index.es.js"
2121
},
2222
"./dist/style.css": "./dist/style.css"
2323
},
24-
"main": "./dist/rich-text-editor.iife.js",
25-
"jsdelivr": "./dist/rich-text-editor.iife.js",
26-
"unpkg": "./dist/rich-text-editor.iife.js",
27-
"module": "./dist/rich-text-editor.es.js",
24+
"main": "./dist/index.iife.js",
25+
"jsdelivr": "./dist/index.iife.js",
26+
"unpkg": "./dist/index.iife.js",
27+
"module": "./dist/index.es.js",
2828
"types": "./dist/index.d.ts",
2929
"files": [
3030
"dist"

ui/packages/editor/vite.lib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default ({ mode }: { mode: string }) => {
4444
entry: path.resolve(__dirname, "src/index.ts"),
4545
name: "RichTextEditor",
4646
formats: ["es", "iife"],
47-
fileName: (format) => `rich-text-editor.${format}.js`,
47+
fileName: (format) => `index.${format}.js`,
4848
cssFileName: "style",
4949
},
5050
minify: isProduction,

ui/src/vite/library-external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const setupLibraryExternal = (
9393
rename: `console-shared.[hash].js`,
9494
},
9595
{
96-
src: "./node_modules/@halo-dev/richtext-editor/dist/rich-text-editor.iife.js",
96+
src: "./node_modules/@halo-dev/richtext-editor/dist/index.iife.js",
9797
dest: "assets/editor",
9898
rename: `editor.[hash].js`,
9999
},

0 commit comments

Comments
 (0)