Files
welshman/build_and_link.sh
T

19 lines
492 B
Bash
Executable File

#!/bin/bash
upstream=$1
npm run fix -w @welshman/$upstream
npm run build -w @welshman/$upstream
for downstream in $(./get_packages.py); do
n=@welshman/$upstream
f=packages/$downstream/package.json
v=$(jq '.dependencies["'$n'"] // empty' $f)
if [[ ! -z $v ]]; then
mkdir -p packages/$downstream/node_modules/@welshman
cp -r packages/$upstream/build packages/$downstream/node_modules/@welshman/build
cp -r packages/$upstream/build node_modules/@welshman/build
fi
done