Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm: update to 8.12.0. #47696

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

Bnyro marked this conversation as resolved.
Show resolved Hide resolved
# Delete JS SourceMaps
find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete

Expand Down