abinfo "Copying files ..."
mkdir -v /tmp/typescript
cp -Rv "$SRCDIR"/* /tmp/typescript
mkdir -pv "$PKGDIR"/usr/share/node_modules/typescript
cp -Rv /tmp/typescript/* "$PKGDIR"/usr/share/node_modules/typescript

abinfo "Creating symlinks ..."
mkdir -p "$PKGDIR"/usr/bin
ln -sv ../share/node_modules/typescript/bin/tsc "$PKGDIR"/usr/bin/tsc
ln -sv ../share/node_modules/typescript/bin/tsserver "$PKGDIR"/usr/bin/tsserver

abinfo "Removing unused files ..."
rm -rv "$PKGDIR"/usr/share/node_modules/typescript/tests
