update nodejs-tern to version 0.24.3-2 per packaging fix

This commit is contained in:
Trent Palmer 2021-06-27 04:34:02 -07:00
parent 8fe10f7eb7
commit ad69482d47
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = nodejs-tern
pkgdesc = A JavaScript code analyzer for deep, cross-editor language support
pkgver = 0.24.3
pkgrel = 1
pkgrel = 2
url = http://ternjs.net/
arch = any
license = MIT

View File

@ -3,7 +3,7 @@ _npmname=tern
_npmver=0.24.3
pkgname=nodejs-tern # All lowercase
pkgver=0.24.3
pkgrel=1
pkgrel=2
pkgdesc="A JavaScript code analyzer for deep, cross-editor language support"
arch=(any)
url='http://ternjs.net/'
@ -19,7 +19,9 @@ package() {
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$_npmver
# npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$_npmver
npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
chown -R root:root "${pkgdir}"
}