Conditionally output serve instructions
Created by: evenstensberg
Is this a bug report?
No, Enhancement Request
Summary
If you've got serve
already installed globally, asking users to install it becomes redundant.
Example:
Current Implementation
Current implementation is that the same instruction gets outputted, even though you'd have serve
installed after running yarn build
Proposed
- Check global prefix and where the users global folder is installed
- Print stdout message if it doesn't exist
Use process.argv
to map back to where the global folder is, or you could add global-prefix as a dependency.