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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user