Skip to content

Commit

Permalink
pnpm: update to 8.12.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Dec 11, 2023
1 parent 30befa2 commit 48f1168
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions srcpkgs/pnpm/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -10,17 +10,13 @@ maintainer="Bnyro <[email protected]>"
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

Expand Down

0 comments on commit 48f1168

Please sign in to comment.