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