mirror of
https://github.com/social-tw/social-tw-website.git
synced 2026-01-10 07:58:16 -05:00
17 lines
574 B
Bash
17 lines
574 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Pass an argument to this script that is the unirep monorepo directory
|
|
# this argument must be absolute
|
|
# e.g. yarn linkUnirep $(pwd)/../unirep
|
|
|
|
rm -rf node_modules/@unirep/core
|
|
rm -rf node_modules/@unirep/contracts
|
|
rm -rf node_modules/@unirep/utils
|
|
rm -rf node_modules/@unirep/circuits
|
|
ln -s $1/packages/core/build $(pwd)/node_modules/@unirep/core
|
|
ln -s $1/packages/contracts/build $(pwd)/node_modules/@unirep/contracts
|
|
ln -s $1/packages/utils/build $(pwd)/node_modules/@unirep/utils
|
|
ln -s $1/packages/circuits/dist $(pwd)/node_modules/@unirep/circuits
|