2022-04-13 23:41:14 +12:00
|
|
|
echo "Linking backend-core"
|
|
|
|
cd packages/backend-core
|
2022-12-13 11:02:32 +13:00
|
|
|
yarn unlink
|
2022-04-13 23:41:14 +12:00
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
|
|
|
|
echo "Linking string-templates"
|
2022-12-13 11:02:32 +13:00
|
|
|
cd packages/string-templates
|
|
|
|
yarn unlink
|
2022-04-13 23:41:14 +12:00
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
|
2022-05-29 08:38:22 +12:00
|
|
|
echo "Linking types"
|
2022-12-13 11:02:32 +13:00
|
|
|
cd packages/types
|
|
|
|
yarn unlink
|
2022-05-29 08:38:22 +12:00
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
|
2022-06-13 21:51:29 +12:00
|
|
|
echo "Linking bbui"
|
2022-12-13 11:02:32 +13:00
|
|
|
cd packages/bbui
|
|
|
|
yarn unlink
|
2022-06-13 21:51:29 +12:00
|
|
|
yarn link
|
|
|
|
cd -
|
2022-05-29 08:38:22 +12:00
|
|
|
|
2022-09-14 21:53:14 +12:00
|
|
|
echo "Linking frontend-core"
|
|
|
|
cd packages/frontend-core
|
2022-12-13 11:02:32 +13:00
|
|
|
yarn unlink
|
2022-09-14 21:53:14 +12:00
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
|
2023-03-09 21:50:26 +13:00
|
|
|
echo "Linking shared-core"
|
|
|
|
cd packages/shared-core
|
|
|
|
yarn unlink
|
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
|
2023-06-20 05:34:51 +12:00
|
|
|
if [ -d packages/pro/src ]; then
|
2023-04-21 06:30:48 +12:00
|
|
|
pro_loaded_locally=true
|
|
|
|
else
|
|
|
|
pro_loaded_locally=false
|
|
|
|
fi
|
2023-04-19 21:09:12 +12:00
|
|
|
|
2023-04-21 06:30:48 +12:00
|
|
|
if [ $pro_loaded_locally = true ]; then
|
2023-04-19 21:09:12 +12:00
|
|
|
echo "Linking pro"
|
2023-06-20 05:34:51 +12:00
|
|
|
cd packages/pro
|
2023-04-19 21:09:12 +12:00
|
|
|
yarn unlink
|
|
|
|
yarn link
|
|
|
|
cd -
|
|
|
|
fi
|
2022-04-13 23:41:14 +12:00
|
|
|
|
|
|
|
if [ -d "../account-portal" ]; then
|
2022-09-01 02:19:57 +12:00
|
|
|
cd ../account-portal
|
|
|
|
echo "Bootstrapping account-portal"
|
|
|
|
yarn bootstrap
|
|
|
|
|
|
|
|
cd packages/server
|
2022-04-13 23:41:14 +12:00
|
|
|
echo "Linking backend-core to account-portal"
|
|
|
|
yarn link "@budibase/backend-core"
|
|
|
|
|
|
|
|
echo "Linking string-templates to account-portal"
|
2022-04-22 20:43:51 +12:00
|
|
|
yarn link "@budibase/string-templates"
|
|
|
|
|
2022-05-29 08:38:22 +12:00
|
|
|
echo "Linking types to account-portal"
|
|
|
|
yarn link "@budibase/types"
|
|
|
|
|
2023-04-21 06:30:48 +12:00
|
|
|
if [ $pro_loaded_locally = true ]; then
|
2022-04-22 20:43:51 +12:00
|
|
|
echo "Linking pro to account-portal"
|
|
|
|
yarn link "@budibase/pro"
|
|
|
|
fi
|
2022-04-13 23:41:14 +12:00
|
|
|
|
2022-06-13 21:51:29 +12:00
|
|
|
cd ../ui
|
|
|
|
echo "Linking bbui to account-portal"
|
|
|
|
yarn link "@budibase/bbui"
|
2022-09-14 21:53:14 +12:00
|
|
|
|
2023-04-24 20:31:48 +12:00
|
|
|
echo "Linking frontend-core to account-portal"
|
|
|
|
yarn link "@budibase/frontend-core"
|
2022-04-13 23:41:14 +12:00
|
|
|
fi
|