www-apps/misskey: Run yarn cleanall in pkg_preinst()

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-05-21 17:21:14 +02:00
parent b8266c91ad
commit 752ac1a2d1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -96,10 +96,12 @@ src_install() {
} }
pkg_preinst() { pkg_preinst() {
pushd "${EROOT}"/opt/misskey/misskey || die
ebegin "Cleaning ${EROOT}/opt/misskey/misskey"
yarn cleanall || die
eend
ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}" ebegin "Removing ${EROOT}/opt/misskey/misskey/{built,node_modules,packages}"
rm -rf "${EROOT}"/opt/misskey/misskey/built || die rm -rf {built,node_modules,packages} || die
rm -rf "${EROOT}"/opt/misskey/misskey/node_modules || die
rm -rf "${EROOT}"/opt/misskey/misskey/packages || die
eend eend
} }