mirror of
https://github.com/danbulant/bpm
synced 2026-06-16 04:51:07 +00:00
Fetch repo from config
This commit is contained in:
parent
c1bd3f2c90
commit
3db7b4d204
1 changed files with 4 additions and 2 deletions
|
|
@ -2,8 +2,9 @@ const fs = require("fs");
|
|||
const path = require("path");
|
||||
const request = require("./requests");
|
||||
const Console = require("./console");
|
||||
const config = require("./config")();
|
||||
const console = new Console;
|
||||
const REPO = "https://registry.npmjs.org/";
|
||||
const REPO = config.repository;
|
||||
const Parser = require("./parser");
|
||||
var parser = new Parser;
|
||||
|
||||
|
|
@ -101,6 +102,7 @@ module.exports = class Package {
|
|||
}
|
||||
|
||||
install(flags, ...packages){
|
||||
|
||||
parser.load();
|
||||
parser.install((flags.dev | false));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue