fix npmextra.json not present error

This commit is contained in:
2016-09-25 13:12:16 +02:00
parent d5fea19831
commit 00855e3d63
5 changed files with 10 additions and 4 deletions

View File

@ -47,7 +47,7 @@ export class KeyValueStore {
* computes the identity
*/
private initIdentity(identityStringArg: string) {
}
/**

View File

@ -8,7 +8,7 @@ export class Npmextra {
cwd: string
lookupPath: string
npmextraJsonExists: boolean
npmextraJsonData: boolean
npmextraJsonData: any
/**
* creates instance of Npmextra
@ -62,6 +62,8 @@ export class Npmextra {
private checkNpmextraJsonData() {
if (this.npmextraJsonExists) {
this.npmextraJsonData = plugins.smartfile.fs.toObjectSync(this.lookupPath)
} else {
this.npmextraJsonData = {}
}
}