Fix not being able to uninstall packages

This commit is contained in:
Pavel Djundik 2020-02-27 19:21:01 +02:00
parent d99d56fe81
commit 8f15548770

View File

@ -15,7 +15,7 @@ program
const path = require("path");
const packagesConfig = path.join(Helper.getPackagesPath(), "package.json");
const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")).dependencies;
const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8"));
if (
!packages.dependencies ||