fabric8-analytics-vscode-extension icon indicating copy to clipboard operation
fabric8-analytics-vscode-extension copied to clipboard

Support Yarn package manager for node

Open arajkumar opened this issue 6 years ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe. Currently we support only npm based node ecosystem. yarn is also a popular one we should consider it too.

yarn does uses the same set of packages from npm registry., it just an another tool to manage & resolve dependencies.

https://yarnpkg.com/lang/en/

arajkumar avatar Sep 18 '19 07:09 arajkumar

@arajkumar @mathur07 any updates on this ?

n0mer avatar Jan 17 '22 10:01 n0mer

I'll be happy to help also :)

From my understanding, we should

  • add an option to use yarn instead of npm as a package provider
  • In this file, instead of using npm list -json, find the alternative with yarn
  • If the report created by yarn is the same as the one created by npm, things should work,
  • otherwise, modify this file to adapt report format of yarn to npm

Is it right ?

Ressources

  • doc on npm list available here
  • doc on yarn list available here

ajubin avatar Jan 20 '22 11:01 ajubin

Please, also add pnpm, because it is frecuently used too (as yarn / npm)

abbytec avatar Nov 08 '23 16:11 abbytec

I disabled the extension because of this. It was popping up all the time with a warning, trying to use npm to install modules, when we use yarn (and we have a yarn.lock file).

digeomel avatar Nov 09 '23 18:11 digeomel