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
Remodel of node subsystem #5698
There are two package managers that are currently supported by Pants, npm and yarn. The codes to invoke those two package manager are scattered in various task and usually invokes a pattern of codes looks like:
Remodel node subsystem code to provide better package manager support. PackageManagers are used to remove package manager selection logic from task level. It also isolates npm/yarn specific codes into separate classes that is easier to understand.
There should be no end user impact, while the codes should be more readable and easier to add future package manager related functionalities. It should also be easier to add more tools for node if necessary.