@koishi-ce/client 1.2.1 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as build } from "./src-D1GR_-AS.mjs";
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.1",
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-D1GR_-AS.mjs";
1
+ import { n as createServer, t as build } from "./src-dERcS8wI.mjs";
2
2
  export { build, createServer };
@@ -175,7 +175,12 @@ async function createServer(baseDir, config = {}) {
175
175
  "xss",
176
176
  "reggol"
177
177
  ],
178
- exclude: ["@koishi-ce/client", "@koishi-ce/components"]
178
+ exclude: [
179
+ "@koishi-ce/client",
180
+ "@koishi-ce/components",
181
+ "schemastery-vue",
182
+ "schemastery-vue/client"
183
+ ]
179
184
  },
180
185
  build: { rollupOptions: { input: `${root}/index.html` } }
181
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.1",
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.3",
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",
package/src/index.ts CHANGED
@@ -363,14 +363,25 @@ export async function createServer(
363
363
  "reggol",
364
364
  ],
365
365
  // 宿主与组件库以 TS 源码 + .yml 词典的形态发布,必须走
366
- // dev transform 管道逐文件服务(yaml 插件在此生效);
366
+ // dev transform 管线逐文件服务(yaml 插件在此生效);
367
367
  // 一旦落入依赖预打包,rolldown 会把 .yml 当 JS 解析,
368
368
  // 直接报 PARSE_ERROR。工作区内两者经工作区别名映射为
369
369
  // 绝对路径、天然不进 optimizer;下游 npm 安装形态下别名
370
- // 表为空、以裸包名参与解析,须在此显式排除
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。
371
380
  exclude: [
372
381
  "@koishi-ce/client",
373
382
  "@koishi-ce/components",
383
+ "schemastery-vue",
384
+ "schemastery-vue/client",
374
385
  ],
375
386
  },
376
387
  build: {