Commit 88bcb972 authored by nanahira's avatar nanahira

fix schema missing

parent 25ed237d
import { App, segment } from 'koishi'; import { App, segment } from 'koishi';
import TargetPlugin from '../dist'; import TargetPlugin from '../src';
import * as Help from '@koishijs/plugin-help'; import * as Help from '@koishijs/plugin-help';
import ExtrasInDev from './extras'; import ExtrasInDev from './extras';
import fs from 'fs'; import fs from 'fs';
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"prettier": "^2.8.1", "prettier": "^2.8.1",
"raven": "^2.6.4", "raven": "^2.6.4",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3",
"ts-loader": "^9.4.2", "ts-loader": "^9.4.2",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",
"scripts": { "scripts": {
"lint": "eslint --fix .", "lint": "eslint --fix .",
"build": "webpack", "build": "rimraf dist && tsc",
"start": "ts-node ./dev", "start": "ts-node ./dev",
"test": "jest --passWithNoTests" "test": "jest --passWithNoTests"
}, },
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
"prettier": "^2.8.1", "prettier": "^2.8.1",
"raven": "^2.6.4", "raven": "^2.6.4",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3", "ts-jest": "^29.0.3",
"ts-loader": "^9.4.2", "ts-loader": "^9.4.2",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
......
...@@ -3,6 +3,7 @@ import { ...@@ -3,6 +3,7 @@ import {
DefinePlugin, DefinePlugin,
InjectLogger, InjectLogger,
PluginDef, PluginDef,
PluginSchema,
RegisterSchema, RegisterSchema,
Reusable, Reusable,
SchemaProperty, SchemaProperty,
...@@ -45,6 +46,7 @@ export class WechatyBotConfig { ...@@ -45,6 +46,7 @@ export class WechatyBotConfig {
} }
@Reusable() @Reusable()
@PluginSchema(WechatyBotConfig)
@DefinePlugin() @DefinePlugin()
export default class WechatyBot extends Bot<Partial<WechatyBotConfig>> { export default class WechatyBot extends Bot<Partial<WechatyBotConfig>> {
internal: WechatyInstance; internal: WechatyInstance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment