[arch-commits] Commit in ts-node/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun May 23 22:56:46 UTC 2021
Date: Sunday, May 23, 2021 @ 22:56:45
Author: felixonmars
Revision: 943550
upgpkg: ts-node 10.0.0-1
Modified:
ts-node/trunk/PKGBUILD
----------+
PKGBUILD | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-23 22:55:26 UTC (rev 943549)
+++ PKGBUILD 2021-05-23 22:56:45 UTC (rev 943550)
@@ -15,7 +15,7 @@
sha512sums=('44e59e38852f7c56cf664a038acd0bff9e4593eea0150359c3028f2e29da71197ab6cc6cb531750db01c2ca928bf09e928c56f38c1cfd5321b9f05f0b4b83582')
package() {
- npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+ npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
@@ -24,6 +24,9 @@
# npm installs package.json owned by build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
+
+ # Dedup typescript
+ rm -r "$pkgdir"/usr/bin/{tsc,tsserver} "$pkgdir"/usr/lib/node_modules/typescript
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list