deps are hard coded in Installer
This commit is contained in:
@@ -18,10 +18,12 @@ const logger = Logger.getLogger("installer")
|
||||
export type NPMPkgName = string
|
||||
export type NPMVersion = string
|
||||
|
||||
export const install = (plugins: Plugin[] = [], npmPkgs: [NPMPkgName, NPMVersion][] = []) => {
|
||||
export const install = (plugins: Plugin[] = []) => {
|
||||
|
||||
logger.info("Checking npm dependencies...")
|
||||
const npmPkgs = [['sqlite3', '4.1.0'], ['knex', '0.19.2']]
|
||||
const deps = npmPkgs.map((pkg) => {return pkg[0] + '@' + pkg[1]} )
|
||||
logger.info("Checking npm dependencies..." + deps)
|
||||
|
||||
exec("npm i --prefix ./plugins " + deps.join(' ')).then(process => {
|
||||
|
||||
logger.debug(process.stdout)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
import { install } from "./Installer";
|
||||
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
|
||||
install([])
|
||||
|
||||
Reference in New Issue
Block a user