-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Handle warn output for packager.list #1994
Conversation
What's Left:
|
@@ -104,7 +103,6 @@ export default { | |||
// generate the project | |||
startSpinner("Igniting app") | |||
await spawnProgress(log(expoCLIString), { | |||
env: cliEnv, |
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 removed this argument because it is not currently used in spawnProgress
const packageListOptions: PackageOptions = { | ||
global: false, | ||
} |
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.
Since this is only used by one function, I moved this option into a default argument on listCmd
const packageInstallOptions: PackageRunOptions = { | ||
dev: false, | ||
expo: false, | ||
onProgress: (out: string) => console.log(out), | ||
} |
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.
Not deleted, but moved lower in file
These changes should be implemented in gluegun instead of ignite: infinitered/gluegun#762 |
Please verify the following:
yarn ci:test
jest tests pass with new tests, if relevantREADME.md
has been updated with your changes, if relevantDescribe your PR
Resolves #1993 by parsing
spawn
output as chunks of strings instead of one joined stringspawnChunked
tool, to grab command output from a spawned process as a array of string chunks instead of one joined stringlist
function inpackager
tool to use dependency injection for services, in order to make it easier to test specific use caseslistCmd
can handle unexpectedyarn list
ornpm list
outputs