@koishi-ce/client 1.2.0 → 1.2.1

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-C9CZhQz5.mjs";
2
+ import { t as build } from "./src-D1GR_-AS.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.0",
19
+ version: "1.2.1",
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-C9CZhQz5.mjs";
1
+ import { n as createServer, t as build } from "./src-D1GR_-AS.mjs";
2
2
  export { build, createServer };
@@ -172,7 +172,8 @@ 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
178
  exclude: ["@koishi-ce/client", "@koishi-ce/components"]
178
179
  },
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.0",
4
+ "version": "1.2.1",
5
5
  "type": "module",
6
6
  "main": "client/index.ts",
7
7
  "exports": {
@@ -66,6 +66,6 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@koishi-ce/koishi": "^1.0.11",
69
- "@koishi-ce/plugin-console": "^1.3.0"
69
+ "@koishi-ce/plugin-console": "^1.3.1"
70
70
  }
71
71
  }
package/src/index.ts CHANGED
@@ -357,6 +357,10 @@ 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
366
  // dev transform 管道逐文件服务(yaml 插件在此生效);