@koishi-ce/client 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bin.mjs +2 -2
- package/lib/index.mjs +1 -1
- package/lib/{src-C9CZhQz5.mjs → src-dERcS8wI.mjs} +8 -2
- package/package.json +3 -3
- package/src/index.ts +17 -2
package/lib/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as build } from "./src-
|
|
2
|
+
import { t as build } from "./src-dERcS8wI.mjs";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
//#endregion
|
|
@@ -16,7 +16,7 @@ import { resolve } from "node:path";
|
|
|
16
16
|
const { version } = {
|
|
17
17
|
name: "@koishi-ce/client",
|
|
18
18
|
description: "Koishi Console Client",
|
|
19
|
-
version: "1.2.
|
|
19
|
+
version: "1.2.2",
|
|
20
20
|
type: "module",
|
|
21
21
|
main: "client/index.ts",
|
|
22
22
|
exports: {
|
package/lib/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createServer, t as build } from "./src-
|
|
1
|
+
import { n as createServer, t as build } from "./src-dERcS8wI.mjs";
|
|
2
2
|
export { build, createServer };
|
|
@@ -172,9 +172,15 @@ async function createServer(baseDir, config = {}) {
|
|
|
172
172
|
"@vueuse/core",
|
|
173
173
|
"@popperjs/core",
|
|
174
174
|
"marked",
|
|
175
|
-
"xss"
|
|
175
|
+
"xss",
|
|
176
|
+
"reggol"
|
|
176
177
|
],
|
|
177
|
-
exclude: [
|
|
178
|
+
exclude: [
|
|
179
|
+
"@koishi-ce/client",
|
|
180
|
+
"@koishi-ce/components",
|
|
181
|
+
"schemastery-vue",
|
|
182
|
+
"schemastery-vue/client"
|
|
183
|
+
]
|
|
178
184
|
},
|
|
179
185
|
build: { rollupOptions: { input: `${root}/index.html` } }
|
|
180
186
|
}, config));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koishi-ce/client",
|
|
3
3
|
"description": "Koishi Console Client",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "client/index.ts",
|
|
7
7
|
"exports": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@koishi-ce/components": "^1.0.
|
|
51
|
+
"@koishi-ce/components": "^1.0.4",
|
|
52
52
|
"@satorijs/protocol": "^1.7.0",
|
|
53
53
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
54
54
|
"@vueuse/core": "^14.4.0",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@koishi-ce/koishi": "^1.0.11",
|
|
69
|
-
"@koishi-ce/plugin-console": "^1.3.
|
|
69
|
+
"@koishi-ce/plugin-console": "^1.3.1"
|
|
70
70
|
}
|
|
71
71
|
}
|
package/src/index.ts
CHANGED
|
@@ -357,16 +357,31 @@ export async function createServer(
|
|
|
357
357
|
"@popperjs/core",
|
|
358
358
|
"marked",
|
|
359
359
|
"xss",
|
|
360
|
+
// logger 的前端值导入 reggol,其 browser 入口 external 了
|
|
361
|
+
// CJS 依赖 object-inspect;不经预打包裸 ESM 导入 CJS 会
|
|
362
|
+
// 报「does not provide an export named 'default'」
|
|
363
|
+
"reggol",
|
|
360
364
|
],
|
|
361
365
|
// 宿主与组件库以 TS 源码 + .yml 词典的形态发布,必须走
|
|
362
|
-
// dev transform
|
|
366
|
+
// dev transform 管线逐文件服务(yaml 插件在此生效);
|
|
363
367
|
// 一旦落入依赖预打包,rolldown 会把 .yml 当 JS 解析,
|
|
364
368
|
// 直接报 PARSE_ERROR。工作区内两者经工作区别名映射为
|
|
365
369
|
// 绝对路径、天然不进 optimizer;下游 npm 安装形态下别名
|
|
366
|
-
//
|
|
370
|
+
// 表为空、以裸包名参与解析,须在此显式排除。
|
|
371
|
+
// schemastery-vue 同理(裸名与 form 所用的 /client 子路径
|
|
372
|
+
// 都要排除):它以 TS 源码 + .vue 发布,optimizer 对其
|
|
373
|
+
// 预打包会产出指向不存在产物的引用(server 控制台报
|
|
374
|
+
// does not exist ... deps/schemastery-vue.js),而 /client
|
|
375
|
+
// 子路径经 alias 预打包成功时又会把整套 cosmokit 以另一
|
|
376
|
+
// 份实例内联进 deps 产物——组件库入口的 star 导出因此在
|
|
377
|
+
// 浏览器端被判 conflicting star exports,全部 webui 插件
|
|
378
|
+
// 前端加载失败(侧栏空白)。排除后统一走源码 transform,
|
|
379
|
+
// cosmokit 全链单实例单 URL。
|
|
367
380
|
exclude: [
|
|
368
381
|
"@koishi-ce/client",
|
|
369
382
|
"@koishi-ce/components",
|
|
383
|
+
"schemastery-vue",
|
|
384
|
+
"schemastery-vue/client",
|
|
370
385
|
],
|
|
371
386
|
},
|
|
372
387
|
build: {
|