fix(storybook): add --no-dev to prevent init from starting dev server

storybook v10 starts the dev server after init by default, causing the
install script to hang forever
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 12:46:25 +01:00
parent 6a5e7b88fd
commit 8dc0295f13

View File

@@ -20,7 +20,7 @@ mkdir -p /opt/storybook
cd /opt/storybook
msg_ok "Important: Interactive configuration will start now."
npx -y storybook@latest init --yes
npx -y storybook@latest init --yes --no-dev
PROJECT_PATH=$(find /opt/storybook -maxdepth 2 -name ".storybook" -type d 2>/dev/null | head -n1 | xargs dirname)
if [[ -z "$PROJECT_PATH" ]]; then