Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Fix sb init to use spawn.sync if creating package.json #9359

Merged
merged 2 commits into from
Jan 9, 2020

Conversation

atanasster
Copy link
Member

Issue: #9358

What I did

Not familiar with it, but seems the cross-spawn has changed?

I moved to use the sync method and also there were multiple unneeded parameters being returned

How to test

like in the issue, sb init --type html or other storybook types

@vercel
Copy link

vercel bot commented Jan 8, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/1u5j8ewwh
✅ Preview: https://monorepo-git-fork-atanasster-cli-npm-init-error.storybook.now.sh

@atanasster
Copy link
Member Author

it turns out the newly created package.json was never re-read after a yarn/npm init spawn.
Not sure how it used to work. I also now added a new VSCode debug profile so we can easier debug the cli.

@shilman shilman added this to the 5.3.0 milestone Jan 9, 2020
@shilman shilman changed the title use spawn,sync and limit the return parameters CLI: Fix sb init to use spawn.sync if creating package.json Jan 9, 2020
@shilman shilman merged commit 29b6928 into storybookjs:next Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants