Skip to content

Commit

Permalink
feat(cli): export built-in plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 15, 2020
1 parent 644c6b3 commit e9c3b9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/koishi-cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as commonPlugin from 'koishi-plugin-common'
import * as schedulePlugin from 'koishi-plugin-schedule'
export { commonPlugin, schedulePlugin }

export * from 'koishi-core'
export * from 'koishi-utils'
export { AppConfig } from './worker'
export { AppConfig, PluginConfig } from './worker'

const { version } = require('../package')
export { version }
2 changes: 1 addition & 1 deletion packages/koishi-cli/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function loadEcosystem (type: string, name: string) {
throw new Error(`cannot resolve ${type} ${name}`)
}

type PluginConfig = (string | [string | Plugin, any])[]
export type PluginConfig = (string | [string | Plugin, any])[]

export interface AppConfig extends AppOptions {
plugins?: PluginConfig | Record<string, PluginConfig>
Expand Down

0 comments on commit e9c3b9c

Please sign in to comment.