add .license to npm class

This commit is contained in:
2016-02-21 17:17:31 +01:00
parent 44a0c05ebb
commit a5baae60c9
5 changed files with 17 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ class ProjectinfoNPM {
name:string;
version:string;
status:string;
license:string;
constructor(cwdArg:string){
this.packageJson = plugins.smartfile.readFileToObject(
@@ -15,6 +16,7 @@ class ProjectinfoNPM {
);
this.name = this.packageJson.name;
this.version = this.packageJson.version;
this.license = this.packageJson.license;
this.status = "ok";
}
}