-
-
Notifications
You must be signed in to change notification settings - Fork 622
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(scaffold): config file is always generated at the project root #801
Conversation
config file is generated at the project root
Looking into CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at suggestion 😃
Also, commit |
Sure thing, on it. 👍 |
add package-lock for utils as new dep was introduced
fix ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to not add another package. This package basically uses findup-sync
, which is already installed in the core cli.
A nice refactoring would be to move this package inside the utility package and expose proper functions to whatever package wants to use it
@anshumanv Thanks for your update. I labeled the Pull Request so reviewers will review it again. @ematipico Please review the new changes. |
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
@ematipico this approach looks amazing ✨ Thanks for suggesting this, looks way more maintainable and cleaner. 👍 |
ad54acb
to
9ad3c15
Compare
migrated to use find-up sync to determine project root, removed additional packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Few changes to do
added findup-sync to utils package
do not pass process.cwd()
@ematipico fixed the issues, can we go ahead with this once builds are green? Will start working on the follow-up PR soon. ✨ |
Looks good to go. Nice work. 💯 |
…ebpack#801) * fix(scaffold): config file is always generated at the project root config file is generated at the project root * chore(scaffold): add package-lock for utils add package-lock for utils as new dep was introduced * chore(utils): fix ci fix ci * fix(scaffold): migrated to findup-sync to find the project root migrated to use find-up sync to determine project root, removed additional packages * chore(utils): added findup-sync package to utils package added findup-sync to utils package * chore(scaffold): do not pass process.cwd() do not pass process.cwd()
config file is generated at the project root
What kind of change does this PR introduce?
bugfix
Did you add tests for your changes?
yes
If relevant, did you update the documentation?
NA
Summary
Determine project root and create the file there.
Does this PR introduce a breaking change?
No
Other information
Ref - #709