pnpm: update to 8.12.0.

This commit is contained in:
Bnyro 2023-12-11 20:41:45 +01:00 committed by classabbyamp
parent 4a66ced3e4
commit f61fd93459

View file

@ -1,6 +1,6 @@
# Template file for 'pnpm'
pkgname=pnpm
version=8.11.0
version=8.12.0
revision=1
build_style=fetch
hostmakedepends="nodejs jq"
@ -10,17 +10,13 @@ maintainer="Bnyro <bnyro@tutanota.com>"
license="MIT"
homepage="https://pnpm.io/"
distfiles="https://registry.npmjs.org/pnpm/-/pnpm-${version}.tgz"
checksum=5858806c3b292cbec89b5533662168a957358e2bbd86431516d441dc1aface89
checksum=553e4eb0e2a2c9abcb419b3262bdc7aee8ae3c42e2301a1807d44575786160c9
python_version=3
do_install() {
npm install -g --user root --prefix "${DESTDIR}/usr" "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tgz"
local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}"
# Sort and cleanup package.json
jq '.|=with_entries(select(.key|test("_.+")|not))' "$_npmdir/package.json" > "$_npmdir/package.json"
chmod 644 "$_npmdir/package.json"
# Delete JS SourceMaps
find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete