antfu-collective / ni

💡 Use the right package manager
MIT License
6.27k stars 208 forks source link

Export command generators #156

Open Zeko369 opened 1 year ago

Zeko369 commented 1 year ago

Clear and concise description of the problem

Export i.e. yarnInstall(packages: string[]) which would generate yarn install foo, and a generic install(pm: PackageManager, packages: string [])

Suggested solution

Simply extract and export internal functionality

Alternative

No response

Additional context

No response

Validations

HawtinZeng commented 8 months ago

Why u use install(pm: PackageManager, packages: string []) instead of ni packageA packageB...? The latter command is more concise.