diff --git a/modules/parser.js b/modules/parser.js index c1d74f9..c8828a8 100644 --- a/modules/parser.js +++ b/modules/parser.js @@ -3,7 +3,9 @@ var console = new Console; module.exports = class PackageParser { load(path){ - if (!fs.existsSync(path)) throw Error("Path doesn't exists!"); + if(!path) path = process.cwd() + "/package.json"; + + if (!fs.existsSync(path)) throw Error("Package.json doesn't exists!"); try { var json = JSON.parse(fs.readFileSync(path));