diff --git a/meet.sh b/meet.sh index 166514a..12f12aa 100755 --- a/meet.sh +++ b/meet.sh @@ -357,6 +357,20 @@ select_edition() { # Helper: Add common commands (components, typings, docs) add_common_dev_commands() { + OV_COMPONENTS_DIR="../openvidu/openvidu-components-angular" + OV_PACKAGE_JSON="$OV_COMPONENTS_DIR/package.json" + + # Check if the OpenVidu Angular components directory exists + if [ ! -d "$OV_COMPONENTS_DIR" ] || [ ! -f "$OV_PACKAGE_JSON" ]; then + echo -e "${RED}Error: OpenVidu Angular components not found or incomplete at:${NC} $OV_COMPONENTS_DIR" + echo -e "${YELLOW}Please clone the OpenVidu repository alongside meet to enable development mode.${NC}" + echo + echo -e " ${YELLOW}Run this command:${NC}" + echo -e " git clone https://github.com/OpenVidu/openvidu.git ../openvidu${NC}" + echo + exit 1 + fi + # Components watcher CMD_NAMES+=("components") CMD_COLORS+=("red") diff --git a/scripts/dev/watch-typings.sh b/scripts/dev/watch-typings.sh index 0fd1631..83dc237 100755 --- a/scripts/dev/watch-typings.sh +++ b/scripts/dev/watch-typings.sh @@ -4,6 +4,9 @@ FLAG_PATH="./meet-ce/typings/dist/typings-ready.flag" # Remove the flag file if it exists rm -f $FLAG_PATH +# Create an empty directory for the flag file if it doesn't exist +mkdir -p "$(dirname "$FLAG_PATH")" + echo "Starting typings watch mode..." echo "Waiting for initial compilation..."