Skip to content

Please add support for pkg manager pnpm #4654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
paxperscientiam opened this issue May 28, 2019 · 3 comments
Closed

Please add support for pkg manager pnpm #4654

paxperscientiam opened this issue May 28, 2019 · 3 comments
Labels
build Describes issues related to build operations debug feature preview Describes issues related to preview command run Describes issues related to run command
Milestone

Comments

@paxperscientiam
Copy link

Describe the solution you'd like
Please add support for pnpm

pnpm uses hard links and symlinks to save one version of a module only ever once on a disk. When using npm or Yarn for example, if you have 100 projects using the same version of lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be saved in a single place on the disk and a hard link will put it into the node_modules where it should be installed.

@rosen-vladimirov rosen-vladimirov added build Describes issues related to build operations debug feature preview Describes issues related to preview command run Describes issues related to run command labels May 29, 2019
@farfromrefug
Copy link
Contributor

@rosen-vladimirov did you make any progress on this? I use pnpm for all my N apps but I am facing issues when using some tns commands whic force the use of npm. Could we simply have a option or something to set the actual "npm" command to be run for install. For me for example it would be "pnpm i - - shamefully-hoist"

@rosen-vladimirov
Copy link
Contributor

Hey @farfromrefug ,
We've not worked on this feature request. One way to implement it is to add a new package manager support in NativeScript CLI, similar to the way yarn is supported. To achieve this you'll have to provide an implementation similar to these ones:

And after that you can add the package manager in the selection used by CLI here
And in the set command for selection of package manager:

@rosen-vladimirov rosen-vladimirov added this to the 6.4.0 milestone Jan 23, 2020
@dtopuzov
Copy link
Contributor

Available in nativescript@next, will be officially shipped with [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Describes issues related to build operations debug feature preview Describes issues related to preview command run Describes issues related to run command
Projects
None yet
Development

No branches or pull requests

4 participants