Add package deprecation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm
2020-08-01 00:15:10 +02:00
parent 81213a9aba
commit 5337b44b11
3 changed files with 5 additions and 1 deletions

View File

@ -103,6 +103,7 @@ async function uploadPackage(ctx: ABC.Context) {
name: packageName,
author: meta.author,
description: meta.description,
deprecated: false,
versions: [],
};
@ -149,6 +150,7 @@ async function uploadPackage(ctx: ABC.Context) {
versions: [...packageMeta.versions, packageVersion],
author: meta.author || packageMeta.author,
description: meta.description || packageMeta.description,
deprecated: meta.deprecated === true,
},
}
);