File create_node_modules.sh of Package python-pythreejs

#!/bin/sh
#
# Script to create node_modules.tar.xz for the tests.
# Adapted from .github/workflows/ci.yml
# Execute this in an extracted github archive/cloned repository
# Note: The pathname MUST NOT include any ':' as is common
# in checked out obs package directories.

# requires: yarn

pushd js
yarn --ignore-optional
popd

tar cJf node_modules.tar.xz \
  js/node_modules \
  js/yarn.lock
openSUSE Build Service is sponsored by