-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add support for setting flags globally and as config in package.json #279
Comments
Any feedback on this @sindresorhus @SamVerschueren? I would be happy to help with a PR An additional reason for this is: Yarn + OTP + np = 😢 |
I'm willing to accept a PR for adding |
@sindresorhus I'll try to find time to take a look at it soon and could definitely help with maintaining it |
The config file should be named |
@IssueHunt has funded $40.00 to this issue. See it on IssueHunt |
@voxpelli Did you try adding a |
After reading Sindre's comment, I can see now why using config files is preferable in some cases. I'll start working on this 👌🏻 |
@sindresorhus @voxpelli Any specific reason to prefer |
It depends on whether you want np to function the same across all repos on your computer or whether you want it to function the same in your repo across all of your computers. For me: I have like 80 repos and I don’t want to maintain a config in each one. Though with cosmiconfig I can also share a config between 79 of them and have number 80 define its package specific way. |
I think we should separate global and local config. Global config, should only apply to the global |
That would prevent the scenario I described above from happening 👍🏻 |
@sindresorhus From what you're describing, it also seems like we should also use |
@sindresorhus has rewarded $36.00 to @itaisteinherz. See it on IssueHunt
|
We run across #248 (or something similar) repeatedly internally, so while we prefer
yarn
in most cases, we do want to avoid usingyarn
for the actual publishing of the package –npm
feels much more stable there.Using the
--no-yarn
flag solves that problem, but remembering to add it isn't as easy + it makes for a much more verbose command than justnp
.Of course one could add an alias for it or something to get around it, but maybe there could also be a global config, like
~/.npconfig
that could set such flags globally?IssueHunt Summary
itaisteinherz has been rewarded.
Sponsors (Total: $40.00)
Tips
The text was updated successfully, but these errors were encountered: