File update_npm_tarball.sh of Package nodejs10.10025

#!/bin/bash

#
# Fetch npm module tarball that is required to run unit tests
# which are not provided by upstream tarball
#
# This is only needed for NodeJS 10.x
#
set -e

tar Jxf node-v10.*.tar.xz
cd node-v10.*/tools/doc
npm i
cd ../..
exec tar Jcf ../node_modules.tar.xz tools/doc/node_modules