Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
node_modules and node_test support yarnpkg as package manager #4255
Yarnpkg is a new package manager for Node.js community, which can be an alternative to npm. It solves the uncertainty of using npm to solve the dependency graph.
Read package manager settings from either 'pants.ini:node-distribution:package_manager or node_module target. Using the yarnpkg command if it is set to 'yarn'
I have some coworkers that will be very intrigued by this!
This adds a good bit of code duplication that forks based on package manager details. Perhaps consider adding properties to NodeDistribution or even a NodePackageManager object. They could hold references to name, version, path, and lockfile.