File update_npm_tarball.sh of Package nodejs16

#!/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 xf node-git.*.tar
cd node-git.*/tools/doc
npm i
cd ../..
exec tar Jcf ../node_modules.tar.xz tools/doc/node_modules
openSUSE Build Service is sponsored by