From 1e10cc66a687f938ae83d50519bbc6095fd8a1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Fri, 29 Sep 2017 00:03:01 -0400 Subject: [PATCH] Use thelounge instead of lounge when it comes to external packages --- src/command-line/install.js | 2 +- src/plugins/themes.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command-line/install.js b/src/command-line/install.js index 59507f45..9333719b 100644 --- a/src/command-line/install.js +++ b/src/command-line/install.js @@ -24,7 +24,7 @@ program packageJson(packageName, { fullMetadata: true }).then((json) => { - if (!("lounge" in json)) { + if (!("thelounge" in json)) { log.error(`${colors.red(packageName)} does not have The Lounge metadata.`); process.exit(1); diff --git a/src/plugins/themes.js b/src/plugins/themes.js index 8c90cdd9..c2231dd6 100644 --- a/src/plugins/themes.js +++ b/src/plugins/themes.js @@ -62,11 +62,11 @@ function getModuleInfo(packageName) { log.warn(`Specified theme ${colors.yellow(packageName)} is not installed in packages directory`); return; } - if (!module.lounge) { + if (!module.thelounge) { log.warn(`Specified theme ${colors.yellow(packageName)} doesn't have required information.`); return; } - return module.lounge; + return module.thelounge; } function makePackageThemeObject(moduleName) {