From d60156a3a3f3011608f6e19ce06d7fb4af44127f Mon Sep 17 00:00:00 2001 From: "knight.chen" Date: Tue, 11 Jul 2023 22:50:34 +0800 Subject: [PATCH] chore: publish @cxjs/wangeditor-core and @cxjs/wangeditor-editor --- packages/core/package.json | 6 +++--- packages/editor/package.json | 7 +++---- packages/editor/src/Boot.ts | 2 +- packages/editor/src/create.ts | 2 +- packages/editor/src/index.ts | 4 ++-- packages/editor/src/init-default-config/config/toolbar.ts | 2 +- packages/editor/src/locale/index.ts | 2 +- packages/editor/src/register-builtin-modules/register.ts | 2 +- 8 files changed, 13 insertions(+), 14 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 9d1f07c47..abd635e7f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { - "name": "@wangeditor/core", - "version": "1.1.19", + "name": "@cxjf/wangeditor-core", + "version": "1.1.20", "description": "wangEditor core", "author": "wangfupeng1988 ", "contributors": [], @@ -22,7 +22,7 @@ ], "publishConfig": { "access": "public", - "registry": "https://registry.npmjs.com/" + "registry": "http://49.234.156.39:8081/repository/npm-release/" }, "repository": { "type": "git", diff --git a/packages/editor/package.json b/packages/editor/package.json index fee734385..b1024f48e 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,5 +1,5 @@ { - "name": "@wangeditor/editor", + "name": "@cxjf/wangeditor-editor", "version": "5.1.23", "description": "Web rich text editor, Web 富文本编辑器", "keywords": [ @@ -28,8 +28,7 @@ "dist" ], "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.com/" + "access": "public" }, "repository": { "type": "git", @@ -53,7 +52,7 @@ "@uppy/xhr-upload": "^2.0.3", "@wangeditor/basic-modules": "^1.1.7", "@wangeditor/code-highlight": "^1.0.3", - "@wangeditor/core": "^1.1.19", + "@cxjf/wangeditor-core": "^1.1.20", "@wangeditor/list-module": "^1.0.5", "@wangeditor/table-module": "^1.1.4", "@wangeditor/upload-image-module": "^1.0.2", diff --git a/packages/editor/src/Boot.ts b/packages/editor/src/Boot.ts index d1d0da770..715f5c517 100644 --- a/packages/editor/src/Boot.ts +++ b/packages/editor/src/Boot.ts @@ -35,7 +35,7 @@ import { IParseElemHtmlConf, registerParseElemHtmlConf, registerParseStyleHtmlHandler, -} from '@wangeditor/core' +} from '@cxjf/wangeditor-core' import registerModule from './register-builtin-modules/register' type PluginType = (editor: T) => T diff --git a/packages/editor/src/create.ts b/packages/editor/src/create.ts index 7e79414c1..258927f91 100644 --- a/packages/editor/src/create.ts +++ b/packages/editor/src/create.ts @@ -13,7 +13,7 @@ import { coreCreateEditor, coreCreateToolbar, Toolbar, -} from '@wangeditor/core' +} from '@cxjf/wangeditor-core' export interface ICreateEditorOption { selector: string | DOMElement diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.ts index fe1761818..acac14a36 100644 --- a/packages/editor/src/index.ts +++ b/packages/editor/src/index.ts @@ -4,7 +4,7 @@ */ import './assets/index.less' -import '@wangeditor/core/dist/css/style.css' +import '@cxjf/wangeditor-core/dist/css/style.css' // 兼容性(要放在最开始就执行) import './utils/browser-polyfill' @@ -47,7 +47,7 @@ export { // 第三方模块 - 上传时用到 createUploader, IUploadConfig, -} from '@wangeditor/core' +} from '@cxjf/wangeditor-core' // 导出 slate API 和接口 (需重命名,加 `Slate` 前缀) export { diff --git a/packages/editor/src/init-default-config/config/toolbar.ts b/packages/editor/src/init-default-config/config/toolbar.ts index 56e070d6a..984156bdc 100644 --- a/packages/editor/src/init-default-config/config/toolbar.ts +++ b/packages/editor/src/init-default-config/config/toolbar.ts @@ -3,7 +3,7 @@ * @author wangfupeng */ -import { t } from '@wangeditor/core' +import { t } from '@cxjf/wangeditor-core' import { INDENT_RIGHT_SVG, JUSTIFY_LEFT_SVG, diff --git a/packages/editor/src/locale/index.ts b/packages/editor/src/locale/index.ts index 22f6ec6cb..23b460c52 100644 --- a/packages/editor/src/locale/index.ts +++ b/packages/editor/src/locale/index.ts @@ -3,7 +3,7 @@ * @author wangfupeng */ -import { i18nAddResources } from '@wangeditor/core' +import { i18nAddResources } from '@cxjf/wangeditor-core' import enResources from './en' import zhResources from './zh-CN' diff --git a/packages/editor/src/register-builtin-modules/register.ts b/packages/editor/src/register-builtin-modules/register.ts index 59773c396..00f40c4a4 100644 --- a/packages/editor/src/register-builtin-modules/register.ts +++ b/packages/editor/src/register-builtin-modules/register.ts @@ -4,7 +4,7 @@ */ import Boot from '../Boot' -import { IModuleConf } from '@wangeditor/core' +import { IModuleConf } from '@cxjf/wangeditor-core' function registerModule(module: Partial) { const {