Merge pull request #3783 from thelounge/xpaw/uninstall
Fix not being able to uninstall packages
This commit is contained in:
commit
d2e4f56219
@ -15,7 +15,7 @@ program
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const packagesConfig = path.join(Helper.getPackagesPath(), "package.json");
|
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 (
|
if (
|
||||||
!packages.dependencies ||
|
!packages.dependencies ||
|
||||||
|
Loading…
Reference in New Issue
Block a user