You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
521 B

// @flow
import demonpatcher from "demonpatcher"
import webpack from "./api/webpack.js"
import common from "./api/common.js"
import commands from "./api/commands.js"
import plugins from "./api/plugins.js"
async function init(obj: Object): Promise<void> {
obj.demon = {
patcher: demonpatcher,
webpack,
common,
commands: {
add: commands.add
},
__DO_NOT_USE_OR_YOU_WILL_BE_FIRED_UNTO_THE_DEPTHS_OF_HELL: {
plugins
}
}
commands.init(obj)
plugins.init(obj)
}
export default init;