-
Notifications
You must be signed in to change notification settings - Fork 279
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
[React] Add status message during install #1451
Conversation
@@ -78,12 +80,12 @@ const initializeApps = async (noInstall: boolean) => { | |||
watch = await import(path.resolve('watch.json')); | |||
const initializers = watch.initializers || []; | |||
await initRunner(initializers, { ...watch.args, templates: initializers, noInstall }); | |||
if (watch.args.restoreLockfile) { |
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.
Now seems like I understand why I had an error that I logged in our inbox
On this line you have fs.unlink
- so this operation is asynchronous, but it should be synchronous (currently this step can be started, but yarn.lock will not be removed).
fs.unlinkSync
can be used. Otherwise for some reasons on some machines it can take more time to remove this file (like it's happened probably on my machine) and result will be unexpected
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.
Makes sense to me.
@sc-addypathania Don't forget to update CHANGELOG |
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.
👍
While scaffolding a react app in monorepo while regenerating the
yarn.lock
the console waits until the dependencies are installed leaving the user confused about the status of the process.Description / Motivation
Testing Details
Types of changes