devtools icon indicating copy to clipboard operation
devtools copied to clipboard

adding options of package managers when installing modules

Open Gianthard-cyh opened this issue 2 years ago • 4 comments

installing modules is currently using npm, but it will be better to show something like a dialog before running the scripts for users to choose the pakage manager they want to use.

image

Gianthard-cyh avatar Jun 08 '23 09:06 Gianthard-cyh

May add a global option for pakage managers

Gianthard-cyh avatar Jun 08 '23 11:06 Gianthard-cyh

It seems that devtools is based on nypm, which only supports three major pakage managers. image Is it possible to add a customise configuration to allow users user their own pakage managers like cnpm?

Gianthard-cyh avatar Jun 08 '23 12:06 Gianthard-cyh

@Gianthard-cyh you can change this by setting "packageManager": "cnpm" in your project's package.json file.

@antfu is it a good idea to have a option in user's setting to change this behaviour? what do you think

arashsheyda avatar Jul 05 '23 10:07 arashsheyda

I think if needed, changes should be done in nypm instead of in devtools.

antfu avatar Jul 05 '23 10:07 antfu