Browse Source

Merge branch 'master' of ssh://gitea.frontblock.me:2222/fb-vendor/admin

master
peter 2 years ago
parent
commit
fc0bae15ed
2 changed files with 5 additions and 3 deletions
  1. 4
    2
      src/backend/Installer.ts
  2. 1
    1
      src/backend/Launcher.ts

+ 4
- 2
src/backend/Installer.ts View File

@@ -19,10 +19,12 @@ const logger = Logger.getLogger("installer")
19 19
 export type NPMPkgName = string
20 20
 export type NPMVersion = string
21 21
 
22
-export const install = (plugins: Plugin[] = [], npmPkgs: [NPMPkgName, NPMVersion][] = []) => {
22
+export const install = (plugins: Plugin[] = []) => {
23 23
     
24
-    logger.info("Checking npm dependencies...")
24
+    const npmPkgs = [['sqlite3', '4.1.0'], ['knex', '0.19.2']]
25 25
     const deps = npmPkgs.map((pkg) => {return pkg[0] + '@' + pkg[1]} )
26
+    logger.info("Checking npm dependencies..." + deps)
27
+
26 28
     exec("npm i --prefix ./plugins " + deps.join(' ')).then(process => {
27 29
     
28 30
         logger.debug(process.stdout)    

+ 1
- 1
src/backend/Launcher.ts View File

@@ -1,2 +1,2 @@
1 1
 import { install } from "./Installer";
2
-install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
2
+install([])

Loading…
Cancel
Save