From 5a445ae35da0bfc462225142d1759181ecf34699 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 9 Sep 2024 17:24:12 -0400 Subject: [PATCH] pyright: update to 1.1.379. --- srcpkgs/pyright/template | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/srcpkgs/pyright/template b/srcpkgs/pyright/template index 3dff36d3ee4..31d52bff289 100644 --- a/srcpkgs/pyright/template +++ b/srcpkgs/pyright/template @@ -1,6 +1,6 @@ # Template file for 'pyright' pkgname=pyright -version=1.1.377 +version=1.1.379 revision=1 build_wrksrc="packages/pyright" hostmakedepends="nodejs python3-setuptools pkg-config" @@ -12,12 +12,20 @@ license="MIT" homepage="https://microsoft.github.io/pyright" changelog="https://github.com/microsoft/pyright/releases" distfiles="https://github.com/microsoft/pyright/archive/refs/tags/${version}.tar.gz" -checksum=7319b48c6ed0d4b19c68c26cb47d0d24bee08b3e04f30c1d3c1e64629267bc38 +checksum=889918751288b04514cfe067fd07f70ba7fd5aaa41b021a971dc292a8117afb6 case "$XBPS_TARGET_MACHINE" in i686*) broken="lerna doesn't support i686" ;; esac +post_extract() { + # causes build fail in vsce-sign when doing npm ci + # unnecessary for standalone packaging + rm -r packages/vscode-pyright + # test references vscode-pyright files + rm packages/pyright-internal/src/tests/diagnosticOverrides.test.ts +} + do_configure() { cd "$wrksrc" export npm_config_arch="${XBPS_TARGET_MACHINE%-musl}" @@ -28,6 +36,11 @@ do_build() { npm run build } +do_check() { + cd ../pyright-internal + npm test +} + do_install() { local _targetdir="/usr/lib/pyright" vmkdir "$_targetdir"