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

Tolerate lack of node_modules when checking if directory is writable #20

Merged
merged 1 commit into from Dec 12, 2019

Conversation

coreyfarrell
Copy link
Contributor

Do not return undefined when node_modules does not exist but can be
created.


nyc testing found this issue.

Do not return undefined when `node_modules` does not exist but can be
created.
Comment on lines +31 to +32
if (!isWritable(nodeModules)) {
if (fs.existsSync(nodeModules) || !isWritable(path.join(directory))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry if this is not the wanted style. I can combine the two if statements if desired, I'm not sure what you want for maximum line length or how you want an if conditional split over multiple lines.

@ndelangen
Copy link
Contributor

This would resolve: storybookjs/storybook#8863

@ndelangen
Copy link
Contributor

ndelangen commented Dec 10, 2019

Could this be moved along if possible 🙇🙇🙇 ? Do the maintainers need help? I'd be happy to assist.

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