add git module and kvStore
This commit is contained in:
@@ -3,10 +3,17 @@ import * as q from 'q'
|
||||
import * as plugins from './npmci.plugins'
|
||||
import * as paths from './npmci.paths'
|
||||
|
||||
import { repo } from './npmci.env'
|
||||
|
||||
import { KeyValueStore } from 'npmextra'
|
||||
|
||||
export interface INpmciOptions {
|
||||
globalNpmTools: string[]
|
||||
}
|
||||
|
||||
// instantiate a kvStorage for the current directory
|
||||
export let kvStorage = new KeyValueStore('custom', repo.user + repo.repo)
|
||||
|
||||
export let getConfig = async (): Promise<INpmciOptions> => {
|
||||
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
|
||||
let defaultConfig: INpmciOptions = {
|
||||
|
||||
Reference in New Issue
Block a user