aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-12 14:10:48 +0000
committerLibravatar GitHub <noreply@github.com>2021-08-12 19:40:48 +0530
commitb2164aa7c0aaf42afda09c00254d99a67b888fdd (patch)
treee0faae791ed51c9233af94680a3d1c4694834970 /scripts/package.js
parentEnabled darkmode for (diff)
downloadferdium-recipes-b2164aa7c0aaf42afda09c00254d99a67b888fdd.tar.gz
ferdium-recipes-b2164aa7c0aaf42afda09c00254d99a67b888fdd.tar.zst
ferdium-recipes-b2164aa7c0aaf42afda09c00254d99a67b888fdd.zip
Recipes now have aliases!!!! (#607)
fixes getferdi/ferdi#1614, getferdi/ferdi#1615, getferdi/ferdi#1291
Diffstat (limited to 'scripts/package.js')
-rw-r--r--scripts/package.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/package.js b/scripts/package.js
index 8410247..236cdff 100644
--- a/scripts/package.js
+++ b/scripts/package.js
@@ -119,7 +119,7 @@ const compress = (src, dest) => new Promise((resolve, reject) => {
119 } 119 }
120 }); 120 });
121 121
122 const knownTopLevelKeys = ['id', 'name', 'version', 'license', 'repository', 'config']; 122 const knownTopLevelKeys = ['id', 'name', 'version', 'license', 'repository', 'aliases', 'config'];
123 const unrecognizedKeys = topLevelKeys.filter(x => !knownTopLevelKeys.includes(x)); 123 const unrecognizedKeys = topLevelKeys.filter(x => !knownTopLevelKeys.includes(x));
124 if (unrecognizedKeys.length > 0) { 124 if (unrecognizedKeys.length > 0) {
125 configErrors.push(`The recipe's package.json contains the following keys that are not recognized: ${unrecognizedKeys}`); 125 configErrors.push(`The recipe's package.json contains the following keys that are not recognized: ${unrecognizedKeys}`);
@@ -189,6 +189,7 @@ const compress = (src, dest) => new Promise((resolve, reject) => {
189 "id": config.id, 189 "id": config.id,
190 "name": config.name, 190 "name": config.name,
191 "version": config.version, 191 "version": config.version,
192 "aliases": config.aliases,
192 "icons": { 193 "icons": {
193 "svg": `${repo}${config.id}/icon.svg`, 194 "svg": `${repo}${config.id}/icon.svg`,
194 }, 195 },