jetbrains-npm icon indicating copy to clipboard operation
jetbrains-npm copied to clipboard

I create yarn version.

Open tanmen opened this issue 5 years ago • 2 comments

I usually use it with yarn. When installing with jetbrains-npm, package-lock.json was created and I wanted to create a yarn version. So I created jetbrains-yarn. Is it okay?

tanmen avatar Jun 05 '20 16:06 tanmen

Would you be interested in opening a pull request? I would be interested in having the yarn shim included in this project as well. The only difference is that we'd want the yarn shim to be opt-in. Since npm is included automatically with node, it's assumed that npm exists in PATH. However, inserting a yarn shim into PATH automatically could potentially be adding a bin for users that don't already have yarn installed. So we'll have to figure out a way to allow users to opt-in to the yarn shim. But I like the idea of having it all in one plugin.

Sidenote: I strongly recommend adding .idea to your user gitignore so that those files aren't accidentally committed to a repo. These should be excluded: https://github.com/tanmen/jetbrains-yarn/tree/master/.idea

jasonkarns avatar Jul 22 '20 16:07 jasonkarns

Thank you for your reply! I already know the problem with opt-in. I didn't know how to solve that problem, so I split the repository. Once I know how to opt-in, I create a PR :)

Sidenote: I was only thinking about sharing the same settings with anyone using the jetbrains product. I didn't understand why I strongly denied it.

tanmen avatar Jul 23 '20 06:07 tanmen