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 issue where generate scaffold would crash if using double quotes #3040

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

zackdotcomputer
Copy link
Contributor

yarn rw g scaffold Something would crash if your Prettier config was set up to use " instead of ' because of a regex that assumed ' throughout the codebase.

This both corrects that regex so it is flexible between the quotation styles and also adds a guard so that the scaffold process will complete even if that regex fails to match in the future.

Resolves #3027

@jtoar jtoar merged commit be5b3c3 into redwoodjs:main Jul 15, 2021
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jul 15, 2021
@jtoar
Copy link
Contributor

jtoar commented Jul 15, 2021

@zackdotcomputer thanks for all your hard work here!

thedavidprice pushed a commit that referenced this pull request Jul 15, 2021
…3040)

* Fix issues where generate scaffold would crash if using double quotes

* Failure to add set import should be skip, not pass
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.

Scaffold breaks with some custom Prettier configs
3 participants