#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules/storybook/bin/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules/storybook/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/node_modules"
else
  export NODE_PATH="/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules/storybook/bin/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules/storybook/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/storybook@8.6.18_prettier@3.8.1/node_modules:/opt/bytelyst/learning_ai_common_plat/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../storybook/bin/index.cjs" "$@"
else
  exec node  "$basedir/../storybook/bin/index.cjs" "$@"
fi
