-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
How can I disable emojis output by default ? #3660
Comments
Perform an IoC on the CLI and pass flags every time. |
you could do |
Or you can add |
@arcanis on old yarn version this will fail #2009 (comment) |
@FDiskas we don't support this on older versions of yarn. |
Newest version (Stable: v1.0.1) on windows looks like same error ⭕ "scripts": {
"start": "webpack --watch"
}, and then i run yarn start the output is yarn start v1.0.1
error No command specified.
info Commands available from binary scripts: acorn, acorn.cmd, errno, errno.cmd, json5, json5.cmd, loose-envify, loose-envify.cmd, miller-rabin, miller-rabin.cmd, mkdirp, mkdirp.cmd,
semver, semver.cmd, sha.js, sha.js.cmd, tsc, tsc.cmd, tsserver, tsserver.cmd, uglifyjs, uglifyjs.cmd, webpack, webpack.cmd, which, which.cmd
info Project commands
- start
webpack --watch
question Which command would you like to run?: And if I remove the
Got an error
|
Looks like a missing feature to me: Would you be interested in adding this in a PR? |
For me it would be cool |
If anyone is interested in a PR, I'd be more than happy to support the effort. |
EDIT: Looked at this more while @BrooklyJS. Found some interesting issue, i.e. precedence of settings. Scenarios found:
Given that, @BYK what precedence should be preferred:
? cc @courajs |
@olingern thanks for pairing and showing me some yarn internals! I think that precedence looks right. There's one main hard part to this feature. The Reporter is what needs to know whether to show emoji or not, but it's instantiated before configuration is loaded (here), and actually is required for instantiating the There's also a small wrinkle in that right now commander is defaulting the emoji flag to true, unless |
This should be fine on master now (latest nightlies or v1.1.0). Commander is pretty tricky so right now the "proper" way to do this is to pass |
I am using:
macOS Sierra 10.12.5
node v8.1.2
yarn v0.24.5
When I pass '--no-emoji' flag to a command explicitly, it works.
Then I tried config a default setting to my global
.yarnrc
file.But it doesn't works.
So how can I disable emojis output by default setting ?
The text was updated successfully, but these errors were encountered: