[arch-commits] Commit in npm-check-updates/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jun 10 21:41:50 UTC 2021


    Date: Thursday, June 10, 2021 @ 21:41:50
  Author: felixonmars
Revision: 961793

upgpkg: npm-check-updates 11.6.0-2

Modified:
  npm-check-updates/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-10 21:41:45 UTC (rev 961792)
+++ PKGBUILD	2021-06-10 21:41:50 UTC (rev 961793)
@@ -3,11 +3,11 @@
 pkgname=npm-check-updates
 pkgdesc='Find newer versions of dependencies than what your package.json or bower.json allows'
 pkgver=11.6.0
-pkgrel=1
+pkgrel=2
 arch=('any')
 url='https://github.com/tjunnone/npm-check-updates'
 license=('Apache')
-depends=('npm' 'semver')
+depends=('nodejs-nopt' 'npm' 'semver')
 source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
 noextract=($pkgname-$pkgver.tgz)
 sha512sums=('fe5e12ec687ef3e460e62b56b2a1726b9451487b4fcf0e677b20256d63497c17c47915fa9585712a0b3ce5014138aad98f778be4c1816945bcdb6f139a3321af')
@@ -16,10 +16,8 @@
   npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
 
   # Experimental dedup
-  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
-  for dep in semver; do
-    rm -r $dep;
-  done
+  rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/{,.bin/}nopt
+  rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/{,.bin/}semver
 
   # Non-deterministic race in npm gives 777 permissions to random directories.
   # See https://github.com/npm/npm/issues/9359 for details.



More information about the arch-commits mailing list