fix build

This commit is contained in:
peter
2019-10-30 17:54:04 +01:00
parent 0857f1ec25
commit 4afc627c23
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
import { Plugin } from "frontblock-generic/Plugin"
import { getLogger } from "frontblock-generic/Types"
import { FrontworkAdmin } from "./Admin";
var exec = require('child-process-promise').exec;
const logger = getLogger("installer", 'info')
@@ -16,7 +17,8 @@ export const installAdmin = (plugins: Plugin[] = []) => {
exec("npm i " + deps).then(async process => {
logger.debug(process.stdout)
const Admin = require("./Admin").FrontworkAdmin
const fbAdmin = new Admin(plugins)
const fbAdmin:FrontworkAdmin = new Admin(plugins)
fbAdmin.start()
})
}