www-apps/misskey: fix pnpm wrapper and install node_modules
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2023-01-16 19:45:30 +01:00
parent 887db10ad3
commit 95caf70dd1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,8 @@ QA_PREBUILT="
pnpm() {
# use the pnpm from nodejs if it isn't available otherwise
if type pnpm > /dev/null 2>&1; then
pnpm "${@}"
if [[ -x /usr/bin/pnpm ]] > /dev/null 2>&1; then
/usr/bin/pnpm "${@}"
else
/usr/$(get_libdir)/node_modules/corepack/dist/pnpm.js "${@}"
fi
@ -105,7 +105,7 @@ src_install() {
if use source; then
doins -r .
else
doins -r package.json .node-version .config built packages
doins -r package.json .node-version .config built node_modules packages
fi
# insopts doesn't affect directories