diff --git a/package.json b/package.json index 86f219d6..66602c08 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "packageManager": "yarn@4.0.2", "license": "MIT", "scripts": { - "client": "yakumo client", - "build": "tsc -b packages/client && yakumo build", + "client": "yakumo --import tsx client", + "build": "yakumo --import tsx build", "bump": "yakumo version", "dep": "yakumo upgrade", "pub": "yakumo publish", @@ -51,9 +51,9 @@ "shx": "^0.3.4", "typescript": "^5.3.2", "yakumo": "^1.0.0-beta.2", - "yakumo-esbuild": "^1.0.0-beta.1", - "yakumo-mocha": "^1.0.0-beta.1", - "yakumo-tsc": "^1.0.0-beta.0", + "yakumo-esbuild": "^1.0.0-beta.2", + "yakumo-mocha": "^1.0.0-beta.2", + "yakumo-tsc": "^1.0.0-beta.1", "yml-register": "^1.1.0" } } diff --git a/packages/client/client/context.ts b/packages/client/client/context.ts index c312a8a9..6a2e7af9 100644 --- a/packages/client/client/context.ts +++ b/packages/client/client/context.ts @@ -150,12 +150,22 @@ export function useMenu(id: K) { export const routeCache = reactive>({}) export class Context extends cordis.Context { + // workaround injection check + // eslint-disable-next-line @typescript-eslint/naming-convention + __v_isRef = undefined + app: App extension?: LoadResult internal = new Internal() constructor() { super() + this.on('internal/error', (error) => { + console.error(error) + }) + this.on('internal/warning', (error) => { + console.warn(error) + }) this.app = createApp(defineComponent({ setup() { return () => [ diff --git a/packages/client/package.json b/packages/client/package.json index 20ff6ef8..3b2f5721 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,13 +1,14 @@ { "name": "@koishijs/client", "description": "Koishi Console Client", - "version": "5.26.0", + "version": "5.27.1", "main": "client/index.ts", "exports": { ".": "./client/index.ts", "./bin": "./lib/bin.js", "./lib": "./lib/index.js", - "./yakumo": "./lib/yakumo.js", + "./lib/yakumo": "./lib/yakumo.js", + "./lib/yakumo.js": "./lib/yakumo.js", "./package.json": "./package.json" }, "files": [