Setting yarn
as the default
#301
Replies: 7 comments
-
Looks like it's not possible now but would be a nice addition so feel free to send a pull request 👾 One note though: What if make a |
Beta Was this translation helpful? Give feedback.
-
Yeah, I thought about that. However, if we call:
it doesn't actually call yarn. I'd have to also put logic into If this is OK, I'll see if I can do that... |
Beta Was this translation helpful? Give feedback.
-
This sounds like a bug or we don't really need this parameter there ;-) |
Beta Was this translation helpful? Give feedback.
-
So, here's a couple of work-arounds: First
where Second
|
Beta Was this translation helpful? Give feedback.
-
This might work as well as a workaround:
|
Beta Was this translation helpful? Give feedback.
-
I'm using mrm task with programming api Currently To solve this issue, can we officially add an env variable, then in for example with programming apiprocess.env.MRM_INSTALL_USE_YARN = '1'
// ...then invoke mrm task with cliMRM_INSTALL_USE_YARN=1 mrm [task] I can send a PR if needed |
Beta Was this translation helpful? Give feedback.
-
Just flying by this issue and would like to comment that we should not have yarn be the default, IMHO.... Defaulting to a tool that is not always available on a users system seems like a wrong direction. I would suggest that a smart resolution of package manager be used or stick with defaulting to For instance, I have adopted Just my $0.02 as a casual |
Beta Was this translation helpful? Give feedback.
-
OK, this may be another easy one I'm missing, but here goes: Assume you have a new project with this as your
~/.mrm/config.json
:If you run
mrm default
,prettier
begins installing usingnpm
.It seems like
getTaskOptions
inmrm/packages/mrm/src/index.js
is only using the default options if there are no parameters to the task.Or, should
mrm/packages/mrm-core/src/npm.js
re-read the globalconfig.json
to get theyarn
flag?Beta Was this translation helpful? Give feedback.
All reactions