1
0
Fork 0
firefox/taskcluster/scripts/misc/generic-node-modules.sh
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
345 B
Bash
Executable file

#!/bin/bash -vex
set -x -e
echo "running as" $(id)
set -v
cd $GECKO_PATH
export PATH=$PATH:$MOZ_FETCHES_DIR/node/bin
rm -rf $2/node_modules
npm ci --prefix $2
# We have $2/{node_modules,...} and want $1/{node_modules}.
mkdir -p /builds/worker/artifacts
cd $2
cd ..
tar caf /builds/worker/artifacts/$1-node-modules.tar.zst $1/node_modules