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

Fix npx chromatic timing out on build-storybook #305

Merged
merged 19 commits into from Apr 29, 2021
Merged

Fix npx chromatic timing out on build-storybook #305

merged 19 commits into from Apr 29, 2021

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Mar 11, 2021

This uses yarn-or-npm to decide which client to use. It appears the original method doesn't work because I couldn't get it to use Yarn while running yarn chromatic. So rather than trying to detect the currently used client, this looks at the presence of yarn.lock (among other things) to determine the correct client.

Important detail: this means we'll be executing npm run build-storybook instead of node /path/to/npm-cli.js run build-storybook. It remains to be seen whether that will have an impact.

@ghengeveld ghengeveld changed the title Report the client we're using to run npm scripts with Attempt at fixing npm 7 Mar 11, 2021
@ghengeveld
Copy link
Member Author

Available as a pre-release: chromatic@5.8.0-canary.0

@ghengeveld ghengeveld changed the title Attempt at fixing npm 7 Fix npx chromatic timing out on build-storybook Apr 28, 2021
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I believe the original code was copied from another tool, but if yarn-or-npm works I am good with that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants