Use thelounge instead of lounge when it comes to external packages

This commit is contained in:
Jérémie Astori 2017-09-29 00:03:01 -04:00
parent da31317156
commit 1e10cc66a6
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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) {