mirror of https://github.com/certd/certd
refactor: 1
parent
ed8b9cd5e9
commit
540981e071
|
@ -3,16 +3,16 @@ import PluginAliyun from '@certd/plugin-aliyun'
|
|||
import PluginTencent from '@certd/plugin-tencent'
|
||||
import PluginHost from '@certd/plugin-host'
|
||||
|
||||
// import options
|
||||
import { createRequire } from 'module'
|
||||
|
||||
// 安装默认插件和授权提供者
|
||||
PluginAliyun.install()
|
||||
PluginTencent.install()
|
||||
PluginHost.install()
|
||||
|
||||
// import options
|
||||
import { createRequire } from 'module'
|
||||
const require = createRequire(import.meta.url)
|
||||
const options =require('./options.json')
|
||||
const options = require('./options.json')
|
||||
|
||||
//开始执行
|
||||
// 开始执行
|
||||
const executor = new Executor()
|
||||
await executor.run(options)
|
||||
|
|
Loading…
Reference in New Issue