Commit cd6bbe19 authored by nanahira's avatar nanahira

fix schema export

parent 75573db7
Pipeline #6063 passed with stages
in 2 minutes
{ {
"name": "koishi-plugin-fortune", "name": "koishi-plugin-fortune",
"version": "2.0.0", "version": "2.0.1",
"description": "Koishi 的算卦插件", "description": "Koishi 的算卦插件",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/src/index.d.ts", "typings": "dist/src/index.d.ts",
......
...@@ -4,6 +4,8 @@ import { Config, MyPlugin } from './plugin'; ...@@ -4,6 +4,8 @@ import { Config, MyPlugin } from './plugin';
export { Config } from './plugin'; export { Config } from './plugin';
export const name = 'fortune'; export const name = 'fortune';
const plugin = new MyPlugin();
export const schema = plugin.schema;
export function apply(ctx: Context, config: Config) { export function apply(ctx: Context, config: Config) {
ctx.plugin(new MyPlugin(), config); ctx.plugin(plugin, config);
} }
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