Skip to content

Commit

Permalink
fixes dpa99c#832
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanhasni authored and Erad committed Nov 30, 2023
1 parent 746fad4 commit f4f1ff7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ Utilities.setContext = function(context){
};

Utilities.parsePackageJson = function(){
return JSON.parse(fs.readFileSync(path.resolve('./package.json')));
try {
return JSON.parse(fs.readFileSync(path.resolve('./package.json')));
}
catch (error) {
if(error.code === "ENOENT") {
return {}
}
throw error;
}
};

Utilities.parseConfigXml = function(){
Expand Down

0 comments on commit f4f1ff7

Please sign in to comment.