anki/ts/yarn.sh
2023-03-31 13:08:59 +10:00

15 lines
336 B
Bash
Executable File

#!/bin/bash
# Execute subcommand (eg 'yarn <cmd> ...') and update licenses.
set -e
PATH=$(realpath ../out/extracted/node/bin)
../out/extracted/node/bin/yarn $*
cd ..
./node_modules/.bin/license-checker-rseidelsohn --production --json \
--excludePackages anki --relativeLicensePath \
--relativeModulePath > ts/licenses.json